From nobody Sat Apr 22 19:08:51 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 4Q3gtB0yrqz4692B for ; Sat, 22 Apr 2023 19:09:06 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) (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 4Q3gt9283xz3pcn for ; Sat, 22 Apr 2023 19:09:05 +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::112f) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-54fc6949475so32489477b3.3 for ; Sat, 22 Apr 2023 12:09:05 -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=fPHoUeIhblhgeqaXi3lWKvxFflghntayPHpjhp3PAgd+W8+f1wKv+pLx3BW9hAjGdb CuVU9mXafx+rVg1lHrB4HhaGulA1P2ROUvFIiDL4ro4mFsRIbllU8El7oMNxW2wTydxc y1Oq4gNc8B3iHxzIAh5FWibdgmr3+Ho/ufxG5kU/bjkB9eTenB5+bQITmEuUGnPX6wmb w+Zk/+KEspTqFbz9aeCdy2HUV99To+rtb1Mh3wrIR82ZgI861B4xULaCsLNvEJt6+OZm JFX66SXfHegOcKsjVl+6gXfRGntsFdKFdqKAUwn7KX9IO5fHbYda0RzMB2Oh+UY8VZTD GCdw== X-Gm-Message-State: AAQBX9f3Gb/zvGs952ug/xXfgdH5Rr6Ta7iVcygCLpMR7QBsn7kRhjlr vV/RaPXmEjL7vJ0VnOYU6sFXjY3kS/vVyD6J7Xw= 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: 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 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-questions@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::112f: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-questions@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Q3gt9283xz3pcn 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