From owner-freebsd-arm@freebsd.org Wed Jan 13 12:01:55 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9CEFC4DA557; Wed, 13 Jan 2021 12:01:55 +0000 (UTC) (envelope-from mihai.carabas@gmail.com) Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DG5dt6DCRz4ZRZ; Wed, 13 Jan 2021 12:01:54 +0000 (UTC) (envelope-from mihai.carabas@gmail.com) Received: by mail-lj1-x231.google.com with SMTP id f17so2195536ljg.12; Wed, 13 Jan 2021 04:01:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q+GkIxyP3KkX3NJtJCxwGmKLUT63/2x+qzpgmGpfLtc=; b=Un4TU2um/dfgTFhyFDyOotQVDvq13CeU5Hyysbc2fvqqZRS1S7Ue0tpg/k4jaRCD8h G0zzgakYejZnzeuYBE7gtyzyov3NPRgHgMJo8AJ48cN4Yrs3IDOBROxOV3eyajIlg/On 7yNkzIFIno4ow+kDxMZzlopxzzqFBv0b3MVcZ+jyseEbkWDNckE+2nq4R3bi4djt6Vw+ cwm9yEM5y6uJq8tN0usq+W9NnNboPGRuG5YTnlu/9S0J6x9l40tsVcoAy7InCWRm5tBQ q3SS1S8ixIHTISJ+WQtXqTkpSZAmCBP4KWcsUos5MDIk+zY7V1Vz7vLfdwKQdXyEuCNy J8IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q+GkIxyP3KkX3NJtJCxwGmKLUT63/2x+qzpgmGpfLtc=; b=qyEIOx6a91qbbKbFK3SZ7K9aqnnv9GfrXJ3FiYApbqXEnF7vd0FLrzJHFMm95Rs8Jz GEanqb1fmbEjs91dGbFcd23VsQswCiFHPXwhcRc3xOgidzxAga38NHL2WXvWxFwRZ2X3 Q+XOs0qKKFniqytXb3+x/AKGR1pMMEJD+plkxWIrJxug+agQxSri/RvBU4TGm8bnp76v 3VHRZidtKNWyD62VVXDlc99AWdgI7BJzKvxYoFm/8hmDDV2Ow6O1Fz2ENcmnUHnu+iZu R0w1hKg9wByW5gIsYCFztXwZQQCdt/3oGsXjUEbfrFgHQhHxaKIBjvPqX1hYWW+PKOl6 acVQ== X-Gm-Message-State: AOAM533f4BjmvL1MaaFgsL/gcTcUisOnoKp5uYPuTDcLKH1vbFjj1cCs GxbptXcuPaGPPCXQeFmZFQVMANuuvLBZY8XMd7k= X-Google-Smtp-Source: ABdhPJy48+rjv6MkVW7Z/1yF5fEtckrYWYRau7NScACS3YjXwaToWJgXbbsqvkSC9GUM5xOLKwa8WAW97MxKRZ61TdQ= X-Received: by 2002:a2e:3619:: with SMTP id d25mr811609lja.378.1610539312751; Wed, 13 Jan 2021 04:01:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Mihai Carabas Date: Wed, 13 Jan 2021 14:01:43 +0200 Message-ID: Subject: Re: [bhyve][arm64] Number of allowed vcpus To: Andrei Martin Cc: freebsd-arm@freebsd.org, freebsd-virtualization@freebsd.org, Darius Mihai , Elena Mihailescu X-Rspamd-Queue-Id: 4DG5dt6DCRz4ZRZ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Un4TU2um; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mihaicarabas@gmail.com designates 2a00:1450:4864:20::231 as permitted sender) smtp.mailfrom=mihaicarabas@gmail.com X-Spamd-Result: default: False [-0.75 / 15.00]; MAILMAN_DEST(0.00)[freebsd-arm,freebsd-virtualization]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCPT_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::231:from]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.75)[0.754]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::231:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::231:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[]; FREEMAIL_CC(0.00)[freebsd.org,gmail.com] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2021 12:01:55 -0000 Hello, >From my perspective bhyve should use what is stated in the device tree if no parameter is given and throw an error when N is greater than the device tree value. Mihai On Wed, Jan 13, 2021 at 1:55 PM Andrei Martin wrote: > Hello, > > While working on enabling multiple virtual cpus for the arm64 virtual > machine > I used the bhyve's "-c N" parameter to create N cpus (it gets only the > cpus, in contrast to the amd64). If N is smaller than the number of cores > described in the device tree it will enable only N and if it's larger it > will enable only the number of cores from the device tree. > > I don't know if it is the best approach. Another way would be to enable > all the cpus from the device tree, no more, no less. > > Do you have any suggestions? > > Andrei >