From owner-freebsd-virtualization@freebsd.org Wed Jan 13 15:32:07 2021 Return-Path: Delivered-To: freebsd-virtualization@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 371434E04FE for ; Wed, 13 Jan 2021 15:32:07 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2k.ore.mailhop.org (outbound2k.ore.mailhop.org [54.148.219.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DGBJQ5M8Nz4pxZ for ; Wed, 13 Jan 2021 15:32:06 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1610551925; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=O/vDriKaQm1RWteyIOysa03VnwKBY+ILObSMo7pnHgJBiJrNZn0FqSyc5/edyxRyXaNiSEW985CLJ v3I+Q8035aeFprFXEoKafxRF2MmxxUm4pc59eIwOZQkzTc75BeFEEmTEg6xdXQYAKFGY7k8gYos5rG yA4786J8q6ebcegfzFKBFdZobo/XwnqlTOtt+ZAe8NOkd1hTppUVJURKlJmKlJLhgeC/V19v1bbLfe dgIHQpmegG49hi2TQOhHjPpX0UsNls5Ejw/s9ZMkd38lFjWQTu9vdobHD7kAW8RAsjF7ZbZXzPOhej H80AkBR8htSHZCAwnf6oNw3Jn4YQ4kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=OMhOJIkKfH+9cL+kXS6tqc7ntptXPrUC5SI4UatwLI8=; b=O1KZkKynYOs+HASB+nraikAlutf5gWofAfesoFf/WXDPRRxRzqigb08BSSaxGGFMF3AsJPxMVTFvj b37XMp2nEsqdgWf5kGDfb5Ao1efj67HLy/r8iApy84dGg0jPmevPKQ7pYI+NkplGPNF+XrictsbGMb 0DFE1JtT3imPDdO2IYbV+sYbPTdFvIDwyXyrO+VJ32xI2cwDaAUpt+h7YNqdnK61SmdT3SxC6iROGR xkRlsbddFDeTItMJl9cW8k0YXN2ijr8wjWcY64/iHkB8Gg98W0ktfzH0FCXwFDV3BkSGm6MBY5WrZt wec5Z1sieU3Lmm8Oxesb3iND8+BxUyA== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=OMhOJIkKfH+9cL+kXS6tqc7ntptXPrUC5SI4UatwLI8=; b=cwBweLMEnqvcNUejruylUZVRYIJOuqkWAKuWqLZHoGDWO5Qg2r2YOoyAUMTHWzAAtJrRdbOKE9tVD fEKeoCcnVUWZNauH6mvYYBS6Hd6qcZTJKGyI9NhpIqdoD5feBctHwPPmvZ/7bJ0KNKexsOFBx6DmYB jpAm3KEKjkyvxA9L8Y5Ez86xl4RSsH3kO7x8j1bH8/YT/9h5qOjF1XUQXUqO8ZVYzMvlfkMaxFslEk RvA4I4eya6Y3tm9IDMZGs4pHGWeX46AqSd0JvGlWUYc2odoPjrWUp0aROsKlhlvCYOMtBBOV9UFHwk pKDvRjhe7hOctXoc6UBkkUsDIrQUaDw== X-MHO-RoutePath: aGlwcGll X-MHO-User: 7c3b6466-55b4-11eb-9e76-df46ed8f892f X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (c-67-177-211-60.hsd1.co.comcast.net [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 7c3b6466-55b4-11eb-9e76-df46ed8f892f; Wed, 13 Jan 2021 15:32:04 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 10DFW2ga062026; Wed, 13 Jan 2021 08:32:02 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <8fe56acedba54911107cd97e6a4752701d0bd5a0.camel@freebsd.org> Subject: Re: [bhyve][arm64] Number of allowed vcpus From: Ian Lepore To: Mihai Carabas , "Rodney W. Grimes" Cc: freebsd-arm@freebsd.org, freebsd-virtualization@freebsd.org Date: Wed, 13 Jan 2021 08:32:02 -0700 In-Reply-To: References: <202101131455.10DEthxJ041740@gndrsh.dnsmgr.net> Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DGBJQ5M8Nz4pxZ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; local_wl_from(0.00)[freebsd.org] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2021 15:32:07 -0000 On Wed, 2021-01-13 at 17:00 +0200, Mihai Carabas wrote: > We are talking here about the device tree of the guest. If you boot > up a guest with a device tree of X vcpus, why specify something else > on the command line? Because typing a command line arg is a lot easier than recompiling a device tree. IMO, these sorts of situations should always be thought of in terms of "the source of info closest to the current/interactive user rules". In device drivers I often code logic to get paramters first from devicetree data, then it can be overriden with device hints, and then that can be overridden by sysctl or tunable info (when all 3 apply). -- Ian