qemu_capabilities: Introduce QEMU_CAPS_THREAD_CONTEXT

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>
This commit is contained in:
Michal Privoznik 2022-08-04 09:54:16 +02:00
parent 433587d1de
commit d5320907e3
3 changed files with 4 additions and 0 deletions

View 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 },
};

View 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;

View File

@ -199,6 +199,7 @@
<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>