bhyve with AMD Ryzen 3900X and MSI MEG ACE X570

Anish akgupt3 at gmail.com
Sun Apr 26 19:16:20 UTC 2020


[Resending without screenshot to reduce message size]

Hi Christian,

This looks like BIOS issue, BIOS must not set Bit4/SVMDIS in VM_CR MSR
(0xC001_0114) if SVM is enabled. Bhyve checks for this bit before
enabling SVM, otherwise it can cause GP faults. You can read it using the
following steps:
$kldload cpuctl


$ cpucontrol -m 0xc0010114 /dev/cpuctlX <- Read VM_CR MSR
MSR 0xc0010114: 0x00000000 0x00000008

X is any CPU core number.

On my AMD/Ryzen system, bit4 is clear and I can load bhyve.

-Anish

On Sun, Apr 26, 2020 at 12:07 PM Anish <akgupt3 at gmail.com> wrote:

>
> Hi Christian,
>
> This looks like BIOS issue, BIOS must not set Bit4/SVMDIS in VM_CR MSR
> (0xC001_0114) if SVM is enabled. Bhyve checks for this bit before
> enabling SVM. You can read it using the following steps:
> $kldload cpuctl
>
>
> $ cpucontrol -m 0xc0010114 /dev/cpuctlX <- Read VM_CR MSR
> MSR 0xc0010114: 0x00000000 0x00000008
>
> X is any CPU core number.
>
> On my AMD/Ryzen system, bit4 is clear and I can load bhyve. I have
> attached a screenshot from AMD SDM Vol2, which you may find useful.
>
> [image: Screen Shot 2020-04-26 at 12.01.14 PM.png]
>
> -Anish
>
>
>
> On Sun, Apr 26, 2020 at 6:27 AM Christian Jeannot <info at os-plus.org>
> wrote:
>
>> I have checked MSI support page. The latest BIOS version is already
>> installed.
>>
>> Regards
>>
>> --Christian
>>
>> Am 26.04.20 um 15:11 schrieb M. Eisenhardt:
>> > I would suggest to update your bios.
>> > Kind regards
>> > Michael
>> >
>> >> Am 26.04.2020 um 14:00 schrieb
>> freebsd-virtualization-request at freebsd.org:
>> >>
>> >> Send freebsd-virtualization mailing list submissions to
>> >>     freebsd-virtualization at freebsd.org
>> >>
>> >> To subscribe or unsubscribe via the World Wide Web, visit
>> >>     https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>> >> or, via email, send a message with subject or body 'help' to
>> >>     freebsd-virtualization-request at freebsd.org
>> >>
>> >> You can reach the person managing the list at
>> >>     freebsd-virtualization-owner at freebsd.org
>> >>
>> >> When replying, please edit your Subject line so it is more specific
>> >> than "Re: Contents of freebsd-virtualization digest..."
>> >>
>> >>
>> >> Today's Topics:
>> >>
>> >>    1. bhyve with AMD Ryzen 3900X and MSI MEG ACE X570
>> >>       (Christian Jeannot)
>> >>    2. Re: bhyve with AMD Ryzen 3900X and MSI MEG ACE X570
>> >>       (Aryeh Friedman)
>> >>    3. Re: bhyve with AMD Ryzen 3900X and MSI MEG ACE X570
>> >>       (Christian Jeannot)
>> >>
>> >>
>> >> ----------------------------------------------------------------------
>> >>
>> >> Message: 1
>> >> Date: Sun, 26 Apr 2020 10:57:50 +0200
>> >> From: Christian Jeannot <info at os-plus.org>
>> >> To: freebsd-virtualization at freebsd.org
>> >> Subject: bhyve with AMD Ryzen 3900X and MSI MEG ACE X570
>> >> Message-ID: <2535c7f2-ef59-467e-779b-6c9c6db82005 at os-plus.org>
>> >> Content-Type: text/plain; charset=utf-8; format=flowed
>> >>
>> >> 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.
>> >>
>> >> When I try to start the VM with the example script I got the output
>> >>      vm_create device not configured
>> >>
>> >> Did I miss something to configure?
>> >>
>> >> Does anyone has a Ryzen CPU and a actual MSI mainboard successfully run
>> >> bhyve?
>> >>
>> >> Best regards
>> >>
>> >> ?Christian
>> >> --
>> >> --
>> >> christian jeannot
>> >> vogelmauer 17
>> >> 86152 augsburg
>> >> +49 821 81552861
>> >> info at os-plus.org
>> >>
>> >>
>> >> ------------------------------
>> >>
>> >> Message: 2
>> >> Date: Sun, 26 Apr 2020 05:32:36 -0400
>> >> From: Aryeh Friedman <aryeh.friedman at gmail.com>
>> >> To: Christian Jeannot <info at os-plus.org>
>> >> Cc: "freebsd-virtualization at freebsd.org"
>> >>     <freebsd-virtualization at freebsd.org>
>> >> Subject: Re: bhyve with AMD Ryzen 3900X and MSI MEG ACE X570
>> >> Message-ID:
>> >>     <CAGBxaX=u-rzZ4MM0as-enpUCsDs=
>> bx7oJAEmKsXigUbhf-9wrw at mail.gmail.com>
>> >> Content-Type: text/plain; charset="UTF-8"
>> >>
>> >>> On Sun, Apr 26, 2020 at 4:57 AM Christian Jeannot <info at os-plus.org>
>> 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.
>> >>>
>> >>
>> >> What happens if you load it from /boot/load.conf
>> >>
>> >> Also you shouldn't have to turn on kvm (I do have it turned on but it
>> >> should not be required).
>> >>
>> >> Bhyve has a upper limit of 16 vm's that it can run at once but I don't
>> >> think this is based on core count of the processor.
>> >>
>> >>
>> >>> When I try to start the VM with the example script I got the output
>> >>>      vm_create device not configured
>> >>>
>> >>> Did I miss something to configure?
>> >>>
>> >>> Does anyone has a Ryzen CPU and a actual MSI mainboard successfully
>> run
>> >>> bhyve?
>> >>>
>> >>
>> >> I have two Ryzen 5 2600X/MSI machines as far I can tell looking at the
>> >> specs (and what I remember when I was deciding to get a 3900X or 2600X)
>> >> there is no practical difference, except for core count, from the
>> point of
>> >> view of virtualization/bhyve.  One machine is a MSI B450 Tomahawk and
>> the
>> >> other is MSI B450 Gaming Pro.   Both machines run bhyve with out any
>> >> problem (one of them is my main home office server with 3 vm's on it
>> >> [windows and 2 FreeBSD]) and the other is my primary desktop machine
>> and
>> >> used for R&D on PetiteCloud (which is a web interface to bhyve and
>> qemu).
>> >>
>> >> Best regards
>> >>>
>> >>> ?Christian
>> >>> --
>> >>> --
>> >>> christian jeannot
>> >>> vogelmauer 17
>> >>> 86152 augsburg
>> >>> +49 821 81552861
>> >>> info at os-plus.org
>> >>> _______________________________________________
>> >>> freebsd-virtualization at freebsd.org mailing list
>> >>> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>> >>> To unsubscribe, send any mail to "
>> >>> freebsd-virtualization-unsubscribe at freebsd.org"
>> >>>
>> >>
>> >>
>> >> --
>> >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>> >>
>> >>
>> >> ------------------------------
>> >>
>> >> Message: 3
>> >> Date: Sun, 26 Apr 2020 11:56:39 +0200
>> >> From: Christian Jeannot <info at os-plus.org>
>> >> To: Aryeh Friedman <aryeh.friedman at gmail.com>
>> >> Cc: freebsd-virtualization at freebsd.org
>> >> Subject: Re: bhyve with AMD Ryzen 3900X and MSI MEG ACE X570
>> >> Message-ID: <fdee36b6-31cd-5b3e-e760-b83664e5472d at os-plus.org>
>> >> Content-Type: text/plain; charset=utf-8; format=flowed
>> >>
>> >>
>> >>
>> >>> Am 26.04.20 um 11:32 schrieb Aryeh Friedman:
>> >>>
>> >>>
>> >>> On Sun, Apr 26, 2020 at 4:57 AM Christian Jeannot <info at os-plus.org
>> >>> <mailto:info at os-plus.org>> 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.
>> >>>
>> >>>
>> >>> What happens if you load it from /boot/load.conf
>> >>
>> >> When I add
>> >>     vmm_load="YES"
>> >> in /boot/loader.conf I can see the following with dmesg after a reboot
>> >>
>> >> SVM: disabled by BIOS.
>> >> module_register_init: MOD_LOAD (vmm, 0xffffffff8264dd20, 0) error 6
>> >>
>> >>>
>> >>> Also you shouldn't have to turn on kvm (I do have it turned on but it
>> >>> should not be required).
>> >>>
>> >>> Bhyve has a upper limit of 16 vm's that it can run at once but I don't
>> >>> think this is based on core count of the processor.
>> >>>
>> >>>
>> >>>     When I try to start the VM with the example script I got the
>> output
>> >>>      ? ? ?vm_create device not configured
>> >>>
>> >>>     Did I miss something to configure?
>> >>>
>> >>>     Does anyone has a Ryzen CPU and a actual MSI mainboard
>> successfully run
>> >>>     bhyve?
>> >>>
>> >>>
>> >>> I have two Ryzen 5 2600X/MSI machines as far I can tell looking at the
>> >>> specs (and what I remember when I was deciding to get a 3900X or
>> 2600X)
>> >>> there is no practical difference, except for core count, from the
>> point
>> >>> of view of virtualization/bhyve.? One machine is a MSI B450 Tomahawk
>> and
>> >>> the other is MSI B450 Gaming Pro.?? Both machines run bhyve with out
>> any
>> >>> problem (one of them is my main home office server with 3 vm's on it
>> >>> [windows and 2 FreeBSD]) and the other is my primary desktop machine
>> and
>> >>> used for R&D on PetiteCloud (which is a web interface to bhyve and
>> qemu).
>> >>
>> >> Thank you. Good to know that bhye is working with AMD CPUs, Mainboards
>> >> and chipsets.
>> >>
>> >> --Christian
>> >>
>> >> --
>> >> --
>> >> christian jeannot
>> >> vogelmauer 17
>> >> 86152 augsburg
>> >> +49 821 81552861
>> >> info at os-plus.org
>> >>
>> >>
>> >> ------------------------------
>> >>
>> >> Subject: Digest Footer
>> >>
>> >> _______________________________________________
>> >> freebsd-virtualization at freebsd.org mailing list
>> >> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>> >> To unsubscribe, send any mail to "
>> freebsd-virtualization-unsubscribe at freebsd.org"
>> >>
>> >>
>> >> ------------------------------
>> >>
>> >> End of freebsd-virtualization Digest, Vol 490, Issue 5
>> >> ******************************************************
>> >
>> > _______________________________________________
>> > freebsd-virtualization at freebsd.org mailing list
>> > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>> > To unsubscribe, send any mail to "
>> freebsd-virtualization-unsubscribe at freebsd.org"
>> >
>>
>> --
>> --
>> christian jeannot
>> vogelmauer 17
>> 86152 augsburg
>> +49 821 81552861
>> info at os-plus.org
>> _______________________________________________
>> freebsd-virtualization at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>> To unsubscribe, send any mail to "
>> freebsd-virtualization-unsubscribe at freebsd.org"
>>
>


More information about the freebsd-virtualization mailing list