]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_capabilities: Introduce QEMU_CAPS_THREAD_CONTEXT
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 4 Aug 2022 07:54:16 +0000 (09:54 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 15 Nov 2022 10:28:45 +0000 (11:28 +0100)
In its commit v7.1.0-1429-g7208429223 QEMU gained new object
thread-context, which allows running specialized tasks with
affinity set to a given subset of host CPUs/NUMA nodes. Even
though only memory allocation task accepts this new object, it's
exactly what we aim to implement in libvirt. Therefore, introduce
a new capability to track whether QEMU is capable of this object.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_7.2.0.x86_64.xml

index d3ba8c85c90a5700d5bc7a226dd80c8b19c5dbe2..965af45cb2abe75549f1d5c170f732e27f2b6a07 100644 (file)
@@ -678,6 +678,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
               "query-stats", /* QEMU_CAPS_QUERY_STATS */
               "query-stats-schemas", /* QEMU_CAPS_QUERY_STATS_SCHEMAS */
               "sgx-epc", /* QEMU_CAPS_SGX_EPC */
+              "thread-context", /* QEMU_CAPS_THREAD_CONTEXT */
     );
 
 
@@ -1384,6 +1385,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
     { "virtio-mem-pci", QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI },
     { "virtio-iommu-pci", QEMU_CAPS_DEVICE_VIRTIO_IOMMU_PCI },
     { "sgx-epc", QEMU_CAPS_SGX_EPC },
+    { "thread-context", QEMU_CAPS_THREAD_CONTEXT },
 };
 
 
index dfa3d8cd9b6806eaa0e282b72a50285283d41b07..b70c02c05b95ae046a4cf14f211cd8f0d69b63ef 100644 (file)
@@ -657,6 +657,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
     QEMU_CAPS_QUERY_STATS,  /* accepts query-stats */
     QEMU_CAPS_QUERY_STATS_SCHEMAS,  /* accepts query-stats-schemas */
     QEMU_CAPS_SGX_EPC, /* -object sgx-epc,... */
+    QEMU_CAPS_THREAD_CONTEXT, /* -object thread-context */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;
index 6a861eea24d48be1f7bfca29058661f1980daf4c..b478c535021522c98bacfe86071faaa3fcac297e 100644 (file)
   <flag name='migration.blocked-reasons'/>
   <flag name='query-stats'/>
   <flag name='query-stats-schemas'/>
+  <flag name='thread-context'/>
   <version>7001050</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>43100245</microcodeVersion>