]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_capabilities: Report Hyper-V Enlightenments in domcapabilities
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 21 Dec 2022 15:09:29 +0000 (16:09 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 5 Jan 2023 11:35:42 +0000 (12:35 +0100)
commit903ea9370d9b2b5592b03ccaecbdfa212b9873c1
tree3221dcfe99cbe12aa91bad32db75ab0bee32739b
parent10f47848648941c21ca8816458b33a37eb3a6d34
qemu_capabilities: Report Hyper-V Enlightenments in domcapabilities

Inside of qemuCaps (for the corresponding accelerator) we have
full host CPU expansion stored, among with supported Hyper-V
Enlightenments. To report them in the domain capabilities, we
just have to pick those starting with "hv-" and see if we know
them.

You may notice that neither of our domaincapsdata test shows any
enlightenment. This is because the test works by parsing
corresponding qemucapabilitiesdata/caps_*.xml file and none of
these store the full host CPU expansion (hostCPU.fullQEMU)
because that is runtime piece of information and not formatted
into virQEMUCaps XML.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1717611
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_capabilities.c
tests/domaincapsdata/qemu_8.0.0-q35.x86_64.xml
tests/domaincapsdata/qemu_8.0.0-tcg.x86_64.xml
tests/domaincapsdata/qemu_8.0.0.x86_64.xml