* EDK2 + VT-x @ 2017-09-14 0:54 Patchmail 2017-09-14 9:23 ` Laszlo Ersek 0 siblings, 1 reply; 3+ messages in thread From: Patchmail @ 2017-09-14 0:54 UTC (permalink / raw) To: edk2-devel I cannot find anywhere how to enable VT-x in OVMF, if anyone can point me in the right direction, I'd greatly appreciate it. thanks, David Napier ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: EDK2 + VT-x 2017-09-14 0:54 EDK2 + VT-x Patchmail @ 2017-09-14 9:23 ` Laszlo Ersek 2017-09-14 13:30 ` Patchmail 0 siblings, 1 reply; 3+ messages in thread From: Laszlo Ersek @ 2017-09-14 9:23 UTC (permalink / raw) To: Patchmail; +Cc: edk2-devel, Ladi Prosek, Eduardo Habkost CC Ladi and Eduardo On 09/14/17 02:54, Patchmail wrote: > I cannot find anywhere how to enable VT-x in OVMF, if anyone can point me > in the right direction, I'd greatly appreciate it. If you are looking to do nested virt with OVMF, first of all I recommend the following blog to your attention: https://ladipro.wordpress.com/ I think Eduardo must have a bunch of blog posts on CPU models as well: https://habkost.net/ Second, if you add the +vmx flag to your CPU model on the QEMU command line, or in the libvirt domain XML, then QEMU will expose that to OVMF in a dedicated fw_cfg file ("etc/msr_feature_control"), and OVMF will set the Feature Control MSR accordingly, on all the CPUs in the guest. Please refer to the following: - TianoCore BZ <https://bugzilla.tianocore.org/show_bug.cgi?id=86> - edk2 commit dbab994991c7 ("OvmfPkg/PlatformPei: program MSR_IA32_FEATURE_CONTROL from fw_cfg", 2016-07-07). IOW, with the caveats described in Ladi's and Eduardo's blogs, just add the +vmx flag to your CPU model, and you should be good to go. Thanks Laszlo ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: EDK2 + VT-x 2017-09-14 9:23 ` Laszlo Ersek @ 2017-09-14 13:30 ` Patchmail 0 siblings, 0 replies; 3+ messages in thread From: Patchmail @ 2017-09-14 13:30 UTC (permalink / raw) To: Laszlo Ersek; +Cc: edk2-devel, Ladi Prosek, Eduardo Habkost Laszlo, Thanks a ton, that solution worked. In addition to that, I added 'nested=1' to the kernel flag for kvm_intel and changed virt-manager to match the host cpu profile rather than using host-passthrough. I really appreciate the help and am thankful people like you guys are around working on these kinds of projects. David Napier On Thu, Sep 14, 2017 at 5:23 AM, Laszlo Ersek <lersek@redhat.com> wrote: > CC Ladi and Eduardo > > On 09/14/17 02:54, Patchmail wrote: > > I cannot find anywhere how to enable VT-x in OVMF, if anyone can point me > > in the right direction, I'd greatly appreciate it. > > If you are looking to do nested virt with OVMF, first of all I recommend > the following blog to your attention: > > https://ladipro.wordpress.com/ > > I think Eduardo must have a bunch of blog posts on CPU models as well: > > https://habkost.net/ > > > Second, if you add the +vmx flag to your CPU model on the QEMU command > line, or in the libvirt domain XML, then QEMU will expose that to OVMF > in a dedicated fw_cfg file ("etc/msr_feature_control"), and OVMF will > set the Feature Control MSR accordingly, on all the CPUs in the guest. > > Please refer to the following: > > - TianoCore BZ <https://bugzilla.tianocore.org/show_bug.cgi?id=86> > > - edk2 commit dbab994991c7 ("OvmfPkg/PlatformPei: program > MSR_IA32_FEATURE_CONTROL from fw_cfg", 2016-07-07). > > > IOW, with the caveats described in Ladi's and Eduardo's blogs, just add > the +vmx flag to your CPU model, and you should be good to go. > > Thanks > Laszlo > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-09-14 13:27 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-09-14 0:54 EDK2 + VT-x Patchmail 2017-09-14 9:23 ` Laszlo Ersek 2017-09-14 13:30 ` Patchmail
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox