]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Introduce mshv capabilities
authorPraveen K Paladugu <prapal@linux.microsoft.com>
Fri, 7 Nov 2025 20:13:52 +0000 (14:13 -0600)
committerMartin Kletzander <mkletzan@redhat.com>
Sat, 22 Nov 2025 07:23:04 +0000 (08:23 +0100)
This capability indicates if qemu supports mshv as an accelerator. Qemu
with mshv capabilities can launch domains of type VIR_DOMAIN_VIRT_HYPERV.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h

index cee7a0f5ef53c31184d4db30eb40920003f11f17..cd788be28c329b90d8d40e9df25d05df2de54253 100644 (file)
@@ -748,6 +748,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
               "acpi-generic-initiator", /* QEMU_CAPS_ACPI_GENERIC_INITIATOR */
               "disk-timed-stats", /* QEMU_CAPS_DISK_TIMED_STATS */
               "query-accelerators", /* QEMU_CAPS_QUERY_ACCELERATORS */
+              "mshv", /* QEMU_CAPS_MSHV */
     );
 
 
index efbef2acefedfcf67c7a3e8f6d4441977e0efcc9..2b519be3a87a5add5172a774ca42b711bc122dc9 100644 (file)
@@ -729,6 +729,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
     QEMU_CAPS_ACPI_GENERIC_INITIATOR, /* -object acpi-generic-initiator */
     QEMU_CAPS_DISK_TIMED_STATS, /* timed stats support ('stats-intervals' property of disk frontends) */
     QEMU_CAPS_QUERY_ACCELERATORS, /* query-accelerators command */
+    QEMU_CAPS_MSHV, /* -accel mshv */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;