]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_validate: Reflect dependencies of hv-ipi
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Oct 2025 08:50:32 +0000 (10:50 +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-ipi``
  Enables paravirtualized IPI send mechanism. <snip/>

  Requires: ``hv-vpindex``

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 38cac4dc726283d22ca6cfc89beaf8cef7062cc3..f274e4f126fc03907af77cf506df605719366745 100644 (file)
@@ -129,6 +129,8 @@ qemuValidateDomainDefHypervFeatures(const virDomainDef *def)
 
     CHECK_HV_FEAT(VIR_DOMAIN_HYPERV_TLBFLUSH, VIR_DOMAIN_HYPERV_VPINDEX);
 
+    CHECK_HV_FEAT(VIR_DOMAIN_HYPERV_IPI, VIR_DOMAIN_HYPERV_VPINDEX);
+
     return 0;
 }