From nobody Mon Apr 24 09:53:02 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 4Q4gRw2V2Cz46bMv for ; Mon, 24 Apr 2023 09:53:16 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (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 4Q4gRw0nvbz3mNy for ; Mon, 24 Apr 2023 09:53:16 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-555c8a12b26so47030847b3.0 for ; Mon, 24 Apr 2023 02:53:16 -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=BoyF7xp81P1vj4hHeY9ArpBRGS3maK7mdOybUbI2pkgIxdLIUgYo5ZpCyXKCbGWa9m HN+to/o4Vxts/AuuPqvKO7Mgfr+4lUhdutiSbO2iJCyEhA+Nstt3sRgUR/ntGi/bYWZR UMjvLSLGCvZtv36uvrrUoe+2HK2x5jQfoG9w36mPOJdSD6x4P1xIrP680RKiHaZHtljt sVk8dwzPr4W2drgcxASIBntUrWEnyYi4KB3nO/N/X3z6pJnT40A08vYy4jPBux1JyCgN jG0SDOhf1a5PRB9N5hNdUNJWXK8iZsLYfhnjfdjRl8zCBrtE+jtp4sq/DHgIA4yROlFA wSNg== X-Gm-Message-State: AAQBX9fE7Ns3/o1x5MHYyj5Dc4f71wzBnxrs136cCeB8c4GbbFyNJqMl 7UXwL8H3PH6Nzsi+mFuRZOVHM9yctrAi0p0AyA0= 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: 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 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: 4Q4gRw0nvbz3mNy 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