]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Simplify setting HyperV features
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 30 Sep 2025 08:47:21 +0000 (10:47 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 15 Oct 2025 08:04:11 +0000 (10:04 +0200)
commit064682ab330535bb1559045b5900398ae7a8d91d
treef26a938d4153d296cbeba80e55a290aa7e464098
parentc66bbac8d56df24674ab15202e4b5611766524d7
libxl: Simplify setting HyperV features

Inside of libxlMakeDomBuildInfo() there's a huge switch() for
each virDomainHyperv case. Instead of checking whether feature is
enabled in each 'case', let's just check it at the beginning of
each loop.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libxl/libxl_conf.c