]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hyperv: report nested virtualization setting in domain XML
authorJonathon Jongsma <jjongsma@redhat.com>
Thu, 26 Mar 2026 19:01:24 +0000 (14:01 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Wed, 3 Jun 2026 14:52:38 +0000 (09:52 -0500)
commit0f014efea391c934dd3a3f8db97b97eeb2c3eac8
tree8b539f42fc30b8eab5004fcf3109cbafa2433f47
parentc072aea5a9cf264c09de51fe378576b95bba94f0
hyperv: report nested virtualization setting in domain XML

When Hyper-V is configured to expose virtualization extensions to a
guest, report this in the domain XML by adding the vendor-appropriate
CPU feature flag:

- Intel hosts: <feature policy='require' name='vmx'/>
- AMD hosts: <feature policy='require' name='svm'/>

This requires adding ExposeVirtualizationExtensions and several other
fields introduced in Windows 10 to the Msvm_ProcessorSettingData WMI
class definition.

Resolves: https://redhat.atlassian.net/browse/RHEL-159129

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/hyperv/hyperv_driver.c
src/hyperv/hyperv_wmi_generator.input