From nobody Mon Apr 24 03:24:17 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q4VqP3Szbz46tk7; Mon, 24 Apr 2023 03:24:33 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q4VqL4JFpz4XdC; Mon, 24 Apr 2023 03:24:30 +0000 (UTC) (envelope-from pete@nomadlogic.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nomadlogic.org header.s=04242021 header.b=jp0YKbLe; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 66.165.241.226 as permitted sender) smtp.mailfrom=pete@nomadlogic.org; dmarc=pass (policy=quarantine) header.from=nomadlogic.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomadlogic.org; s=04242021; t=1682306659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oaSm3hhMPIv61+B/CfBdvEkDMdicvmKFJeayv/FSelo=; b=jp0YKbLeYzc18qMq2nCfxXkqebbHB1MlvxRyXHZEAT8WJ0zx3oacBGggwNneGGxJakBBBA EYsp/J9u1QiF8aR2wL0RfDW0mu5nywf8SQWk0GIpc7lgoZ0nJx99VI51UvaMdmGL1bdmBg BpqSNphaCRWTpJLWHaMAsrj1p95Uuqo= Received: from topanga (cpe-24-24-168-214.socal.res.rr.com [24.24.168.214]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id d0933b4c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 24 Apr 2023 03:24:19 +0000 (UTC) Date: Sun, 23 Apr 2023 20:24:17 -0700 From: Pete Wright To: Tomek CEDRO Cc: Dale Scott , FreeBSD Questions Mailing List , freebsd-emulation@freebsd.org Subject: Re: embedded emulation: bhyve + vt-x on amd fx-8320 Message-ID: References: <1033603027.10889563.1682198162191.JavaMail.zimbra@shaw.ca> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[nomadlogic.org,quarantine]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_ALLOW(-0.20)[nomadlogic.org:s=04242021]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org,freebsd-emulation@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:29802, ipnet:66.165.240.0/22, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[nomadlogic.org:+]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Q4VqL4JFpz4XdC X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Sun, Apr 23, 2023 at 02:25:44AM +0200, Tomek CEDRO wrote: > installed Android Studio on that vm, then launched Virtual Android > Device and IT WORKED! o_O > > So my AMD FX-8320 CPU seems to support "nested virtualization" (its > called VT-D for Intel and AMD-V for AMD). > > Question is why Nested Virtualization does not work on FreeBSD? > > Should I set it up somehow? Is it supported here at all? I don't think nested hardware virt is supported by bhyve at the moment. a reading of the man pages seems to confirm this as well. i've done para-virt nesting before but thats all in software and very slow. you might want to see if you can use a new'ish QEMU though to emulate the hardware needed to get android studio running. -p -- Pete Wright pete@nomadlogic.org