From nobody Mon Apr 24 09:53:02 2023 X-Original-To: freebsd-emulation@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 4Q4gRw2V1Rz46Zts for ; Mon, 24 Apr 2023 09:53:16 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q4gRw0nylz3mRY for ; Mon, 24 Apr 2023 09:53:15 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-54f8b46d031so46835207b3.3 for ; Mon, 24 Apr 2023 02:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1682329995; x=1684921995; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LFh17tFYuXzT7aEVzlesgG6YsyCatpyHVIXYAyWxFQI=; b=aP/NhwiUibdRsXjMT3UKPqIvU3qDoCwH6tlnR/yYVN4VwPWc3FprAOZfdIUdDFyjMp wY18hiYL9yJ9IoVWUm/HutwHDwv5I0NptOFUDeO2gc6Y2IzRSHYSnJcjtw5f+WILGP/M NRHL7Swm+uA6jvgs99558cv0KgMFPGDoUsulBV1DIUsI5NIgraKK6sWj57UbTl1D8tub fOmaBMx4PXVxdCYV3G3iwSdWLywhxI/Z7Ik7sNyPpU3kGBn8qC8K3hFeSis/Q/fk0ofO /l6n8Lh5WyPi1ZTLl7+13CLkp4fCI1z/dVsYnwhVYCE7cB6wSz84OuA5qMRfLBYIAXpp IULA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682329995; x=1684921995; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LFh17tFYuXzT7aEVzlesgG6YsyCatpyHVIXYAyWxFQI=; b=eihc3oRVhaddfSTMa2o6FBc5J/znLftKsEVcQ0ZLiWugCMnU+gSVZ20sUQL/BG5sJk eYPM8R8rWZT6/CU/YbbNyy8/c2uMuIbRZhV7kDqT2BOqAzyRfpgK6Z2xfF8DFakgjkrz fXBHHppCjY9nUHr0so28MQ/ZihgLH8/xDBoP5nn5plWwSZTAMllXXEjMIO66CwsKGvOP NGQnsepHxxEnlABYoVUz/1CivJVnJSdJ/pPnDd7DekTN2zHRqWvHXywoOggSbnPC3F3d dyLF8meabz7+TpvRdklkHBq26ZaOyvv5dVu6SeNDg+GnxvjNA2v+SPhJwwUqjs8hUjkz hVHQ== X-Gm-Message-State: AAQBX9eFSiSM3vjVpPitSRJ0001MtU7movABVFkMEs2k6EQRJ1CukH2M eZOjmXkQAHTlwEq+Al1z0722Yg== X-Google-Smtp-Source: AKy350aTnjjZUd3oDdPH7bPIfbX1DaVmtDqRci570zrQUhP4khAf2CXA0YtlTlNTqkhC1nMGN7jO/Q== X-Received: by 2002:a0d:da85:0:b0:550:e009:9951 with SMTP id c127-20020a0dda85000000b00550e0099951mr8447892ywe.33.1682329994831; Mon, 24 Apr 2023 02:53:14 -0700 (PDT) Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com. [209.85.128.180]) by smtp.gmail.com with ESMTPSA id z128-20020a818986000000b0054fba0d6a88sm2813412ywf.100.2023.04.24.02.53.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Apr 2023 02:53:14 -0700 (PDT) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-555d2b43a23so46962627b3.2; Mon, 24 Apr 2023 02:53:14 -0700 (PDT) X-Received: by 2002:a81:6ed5:0:b0:556:2d9c:3491 with SMTP id j204-20020a816ed5000000b005562d9c3491mr4642499ywc.46.1682329994083; Mon, 24 Apr 2023 02:53:14 -0700 (PDT) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 References: <1033603027.10889563.1682198162191.JavaMail.zimbra@shaw.ca> In-Reply-To: From: Tomek CEDRO Date: Mon, 24 Apr 2023 11:53:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: embedded emulation: bhyve + vt-x on amd fx-8320 To: Pete Wright Cc: Dale Scott , FreeBSD Questions Mailing List , freebsd-emulation@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Q4gRw0nylz3mRY X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mon, Apr 24, 2023 at 5:24=E2=80=AFAM Pete Wright wrote: > > 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. Thanks Pete, this is my main question if bhyve / vbox / kernel supports it at all :-) I got Android Studio running some time ago but there was problem with Gradle that did not want to detect FreeBSD as supported platform. Maybe I could make Android Emulator running on FreeBSD.. but also I need NDK and SDK for cross compilation.. and Google rejected my patches that reported FreeBSD as Linux in order to use Linux binaries, they say "this platform is unsupported" and by that they mean they won't even accept source code patches to make things work here. Thus my approach with virtualization.. but there Android Emulator does not start when no hardware acceleration is available. Some time ago I thought Microsoft sucked but Google sux even more.. not to mention Apple that does not even allow to virtualize macOS where XCode is the only tool to build iOS apps.. this whole brave new world of mobile applications is a good state of our current civilization ;-) I hoped someone on the list would know the current state of "nested virtualization" in FreeBSD.. if its currently supported and/or maybe a timeline when it may be available :-) --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info