]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_validate: Reflect dependencies of hv-evmcs
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Oct 2025 08:51:53 +0000 (10:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 14 Oct 2025 07:46:00 +0000 (09:46 +0200)
Per QEMU documentation (docs/system/i386/hyperv.rst):

``hv-evmcs``
  The enlightenment is nested specific, it targets Hyper-V on KVM guests. <snip/>

  Requires: ``hv-vapic``

Reflect this dependency when validating domain definition.

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

index f274e4f126fc03907af77cf506df605719366745..3dbb00c23a7da416aaa608eaf7bd3b64f834a4b9 100644 (file)
@@ -131,6 +131,8 @@ qemuValidateDomainDefHypervFeatures(const virDomainDef *def)
 
     CHECK_HV_FEAT(VIR_DOMAIN_HYPERV_IPI, VIR_DOMAIN_HYPERV_VPINDEX);
 
+    CHECK_HV_FEAT(VIR_DOMAIN_HYPERV_EVMCS, VIR_DOMAIN_HYPERV_VAPIC);
+
     return 0;
 }