]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce hyperv host-model mode
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 29 Sep 2025 08:20:41 +0000 (10:20 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 15 Oct 2025 08:04:12 +0000 (10:04 +0200)
commitc181c7dd1358ee1a2d125a869a44f46eee393452
tree441dc353846cd099ada55b32fbcdffb485a1bf96
parent4545827ba39b61b4c206576b8381fe455635291f
conf: Introduce hyperv host-model mode

So far we have two modes for hyperv features:

1) custom, where users have to enable features explicitly, and
2) passthrough, where hypervisor enables features automagically.

Problem with 'custom' mode is that some features are not plain
on/off switches but expect int/string value. Until very recently,
these were not reported in domcaps. And even if they were it's a
bit cumbersome.

Problem with 'passthrough' mode is that users don't get to see
the expanded list of enlightenments enabled.

Therefore, mimic what we're already doing with CPUs: have
'host-model' which gets expanded at domain startup and is fixed
throughout domain's run.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/formatdomain.rst
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/schemas/domaincommon.rng
src/libxl/libxl_conf.c
src/qemu/qemu_command.c
tests/qemuxmlconfdata/hyperv-host-model.x86_64-latest.args [new file with mode: 0644]
tests/qemuxmlconfdata/hyperv-host-model.x86_64-latest.xml [new file with mode: 0644]
tests/qemuxmlconfdata/hyperv-host-model.xml [new file with mode: 0644]
tests/qemuxmlconftest.c