From owner-freebsd-virtualization@freebsd.org Mon Apr 27 09:17:13 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 745772B04D6 for ; Mon, 27 Apr 2020 09:17:13 +0000 (UTC) (envelope-from info@os-plus.org) Received: from mailserv.regfish.com (mailserv.regfish.com [52.57.101.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailserv.regfish.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 499fLJ4kkrz3DBj for ; Mon, 27 Apr 2020 09:17:12 +0000 (UTC) (envelope-from info@os-plus.org) Received: by mailserv.regfish.com (Postfix, from userid 706) id 9CD8A613BD; Mon, 27 Apr 2020 09:17:11 +0000 (UTC) X-Original-To: freebsd-virtualization@freebsd.org Received: from mbp2016.i.os-plus.de (p2E5E8F7A.dip0.t-ipconnect.de [46.94.143.122]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: 40815-0001) by mailserv.regfish.com (Postfix) with ESMTPSA id 8748A61397; Mon, 27 Apr 2020 09:17:11 +0000 (UTC) Subject: Re: bhyve with AMD Ryzen 3900X and MSI MEG ACE X570 To: Eric van Gyzen References: <2535c7f2-ef59-467e-779b-6c9c6db82005@os-plus.org> <87c31320-c347-aa1b-adc3-7b36d6edeb38@vangyzen.net> Cc: freebsd-virtualization@freebsd.org From: Christian Jeannot Message-ID: Date: Mon, 27 Apr 2020 11:17:10 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <87c31320-c347-aa1b-adc3-7b36d6edeb38@vangyzen.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 499fLJ4kkrz3DBj X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of info@os-plus.org has no SPF policy when checking 52.57.101.90) smtp.mailfrom=info@os-plus.org X-Spamd-Result: default: False [-1.08 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.965,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(-0.08)[ipnet: 52.57.0.0/16(0.60), asn: 16509(-0.97), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[os-plus.org]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.93)[-0.932,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[90.101.57.52.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16509, ipnet:52.57.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[122.143.94.46.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2020 09:17:13 -0000 Hello Eric, thank you for your information. I will first check if I can find a way in the BIOS to configure SVM. Fromy my point of view MSI should provie a BIOS where it is possible to configure this option. If this does not work I will look for your hint. Regards --Christian Am 26.04.20 um 19:53 schrieb Eric van Gyzen: > On 4/26/20 3:57 AM, Christian Jeannot wrote: >> Hi Community, >> >> I am testing bhyve from FreeBSD 12.1 RELEASE. >> >> My environment: >> - CPU: AMD Ryze 3900X >> - Mainboard: MSI MEG ACE X570, Default settings, latest BIOS 7C35v18 >> - RAM: G.Skill RipJaws V DIMM Kit 64GB, DDR4-3200, CL16-18-18-38 >> - GPU: Sapphire Nitro RX 5700XT >> >> I checked the settings in the BIOS. Virtualization options are >> enabled. SVM is enabled. >> >> I follow the instruction from the FreeBSD handbook „21.7. FreeBSD as a >> Host with bhyve“. >> >> When I run >>      kldload vmm >> I got an output that SVM is disabled by BIOS. When I check the BIOS it >> is enabled. > > I use bhyve on a Ryzen with an Asus Prime X470-PRO. > > I wonder if your BIOS is enabling SVM but failing to update the MSR to > say it's enabled.  Try commenting out the second "return (0);" in > svm_available() in sys/amd64/vmm/amd/svm.c and rebuilding the vmm > module.  If SVM is actually disabled, I have no idea what impact this > change will have, so beware.  If SVM is actually enabled and this hack > allows you to use it, we could probably commit a tunable to do this more > cleanly. > > Eric -- -- christian jeannot vogelmauer 17 86152 augsburg +49 821 81552861 info@os-plus.org