Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Apr 2020 12:53:06 -0500
From:      Eric van Gyzen <eric@vangyzen.net>
To:        Christian Jeannot <info@os-plus.org>, freebsd-virtualization@freebsd.org
Subject:   Re: bhyve with AMD Ryzen 3900X and MSI MEG ACE X570
Message-ID:  <87c31320-c347-aa1b-adc3-7b36d6edeb38@vangyzen.net>
In-Reply-To: <2535c7f2-ef59-467e-779b-6c9c6db82005@os-plus.org>
References:  <2535c7f2-ef59-467e-779b-6c9c6db82005@os-plus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87c31320-c347-aa1b-adc3-7b36d6edeb38>