From nobody Sat Apr 22 19:08:51 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 4Q3gtB0VGmz468C3 for ; Sat, 22 Apr 2023 19:09:06 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) (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 4Q3gt91XJfz3pZk for ; Sat, 22 Apr 2023 19:09:04 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=I97N4Xr5; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::1136) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-54fae5e9ec7so32492437b3.1 for ; Sat, 22 Apr 2023 12:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1682190544; x=1684782544; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=XiHcPz4fXgA0istwtB+wNm2F2YJLFEBxIO1JACoblWc=; b=I97N4Xr5q9rJl/dbdx6ysSnkfTZMZ9+Oy5U5fglMm2KAqteqD0pnMYrdEfDubLz9Cg +0Q5p4JG9ZfQ2dlOdDURCzu/vACXvJYARgONqirCfbuW41rA8VBiNNROV3oI7/Ghymwx WEHoe+iCqsBgyiW6HzuXekBU0iZfdM5eO2Ug+5fRiyZL478NZsCS4xAtRQ4t8gskP6/U fQvyxVJ5YxEKNGvlDKLV4ddLvNLf5yxkPvmHZ7P2Q+pDPsVc1Gb911AHb6/PkgMhLyDq Sm9jvbn9OBHLwEeD/kFQr1ypml7D04Nq3w9FguV8jmkItX2DKVDppMX6C9TdcZEmBYGt sIkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682190544; x=1684782544; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XiHcPz4fXgA0istwtB+wNm2F2YJLFEBxIO1JACoblWc=; b=LyX/RzRm6/PfOl8tjGgOnH7C+GXhzLgiM3fhf1+tO0sUutUAlIcWG3UmwosL/hVQc+ e8U25BK/xtkmU2brJVC6Pp7CpjPH2/b3lp3w12XkvQh4Nlk3qNL0TJFwYdtQGNFsA+cF CAZFadTnpckrogzSEqA2N28Xw87Nyb0eWt7+O+fAKpSOWcunlS1Lrl/x26gQSbakcGyg wqGo+cAL2jn2s4VYQ7ksdClhSwQjyEHx0H33AMAMY+s/Mfu8yrXbajVR4XfFX4CahJ39 CVQVE3LbHm12GQal17eeA1vZ1ee1WEwr+vUSZbwRheiFr2w9yFaKlubRs1Xj/6IgyJHx c5XA== X-Gm-Message-State: AAQBX9d6uJnz97zQXfyZQoIL4eM9YvHKfoFJ9XM0+l3BQAMueco1XuZ/ v0WQRvdvDf3w6PLwJ/sDLOPbpg== X-Google-Smtp-Source: AKy350aNVGlw/NAt950D3gAlJ2VnS5DFdlJnwxsZJfeBfQUqqPniFoITrbfHeiGe+UPJOSJRrwW4oA== X-Received: by 2002:a0d:eb8b:0:b0:54e:989d:f2f4 with SMTP id u133-20020a0deb8b000000b0054e989df2f4mr4936943ywe.35.1682190543520; Sat, 22 Apr 2023 12:09:03 -0700 (PDT) Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com. [209.85.128.170]) by smtp.gmail.com with ESMTPSA id b129-20020a816787000000b00545a08184a7sm1815082ywc.55.2023.04.22.12.09.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Apr 2023 12:09:03 -0700 (PDT) Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-54f8e823e47so32448687b3.2; Sat, 22 Apr 2023 12:09:03 -0700 (PDT) X-Received: by 2002:a0d:cc83:0:b0:54f:bec1:c118 with SMTP id o125-20020a0dcc83000000b0054fbec1c118mr5065014ywd.38.1682190542673; Sat, 22 Apr 2023 12:09:02 -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 From: Tomek CEDRO Date: Sat, 22 Apr 2023 21:08:51 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: embedded emulation: bhyve + vt-x on amd fx-8320 To: FreeBSD Questions Mailing List , freebsd-emulation@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-emulation@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1136:from,209.85.128.170:received]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_COUNT_THREE(0.00)[4]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[cedro.info]; PREVIOUSLY_DELIVERED(0.00)[freebsd-emulation@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Q3gt91XJfz3pZk X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hello world :-) I have relatively old but still decent 8 core AMD FX-8320 CPU. I have switched to bhyve in order to do some testing. I am running Debian with Android Studio to test some mobile applications. The Virtual Device however does not want to start because there is no virtualization support (aka VT-D / NX missing). Yes they write the emulation will be slower but the emulation does not start at all (ave google lol). Three questions: 1. How to check if my CPU has the VT-D/NX support? Cannot find this information on a vendor site o_O 2. How to enable VT-D/NX emulation under bhyve (assuming that CPU supports it)? 3. Is it possible to "fake" this VT-D/NX (at reduced emulation speed) if CPU does not support it? Any hints appreciated :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info