On Thu, Jan 05, 2023 at 09:35:01 +0100, Michal Privoznik wrote:
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(a)redhat.com>
---
src/qemu/qemu_capabilities.c | 11 +++++++++++
.../domaincapsdata/qemu_8.0.0-q35.x86_64.xml | 19 ++++++++++++++++++-
.../domaincapsdata/qemu_8.0.0-tcg.x86_64.xml | 19 ++++++++++++++++++-
tests/domaincapsdata/qemu_8.0.0.x86_64.xml | 19 ++++++++++++++++++-
4 files changed, 65 insertions(+), 3 deletions(-)
Reviewed-by: Peter Krempa <pkrempa(a)redhat.com>