|
|
7548c0 |
From f1de31795f1010016beab3b669db821799e5a6d3 Mon Sep 17 00:00:00 2001
|
|
|
7548c0 |
Message-Id: <f1de31795f1010016beab3b669db821799e5a6d3@dist-git>
|
|
|
7548c0 |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
7548c0 |
Date: Wed, 7 Oct 2020 18:45:42 +0200
|
|
|
7548c0 |
Subject: [PATCH] qemu: Introduce QEMU_CAPS_NUMA_HMAT capability
|
|
|
7548c0 |
MIME-Version: 1.0
|
|
|
7548c0 |
Content-Type: text/plain; charset=UTF-8
|
|
|
7548c0 |
Content-Transfer-Encoding: 8bit
|
|
|
7548c0 |
|
|
|
7548c0 |
This capability tracks whether QEMU is capable of defining HMAT
|
|
|
7548c0 |
ACPI table for the guest.
|
|
|
7548c0 |
|
|
|
7548c0 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
7548c0 |
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
|
|
|
7548c0 |
(cherry picked from commit c2f15f1b1869c1732e529967d1851582409290fb)
|
|
|
7548c0 |
|
|
|
7548c0 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1749518
|
|
|
7548c0 |
|
|
|
7548c0 |
Conflicts:
|
|
|
7548c0 |
- src/qemu/qemu_capabilities.c: The set of capabilities diverged.
|
|
|
7548c0 |
- src/qemu/qemu_capabilities.h: Ditto.
|
|
|
7548c0 |
- tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml: Ditto.
|
|
|
7548c0 |
- tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml: Ditto.
|
|
|
7548c0 |
- tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml: Doesn't exist
|
|
|
7548c0 |
downstream.
|
|
|
7548c0 |
- tests/qemucapabilitiesdata/caps_5.0.0.riscv64.xml: Ditto.
|
|
|
7548c0 |
- tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml: Ditto.
|
|
|
7548c0 |
|
|
|
7548c0 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
7548c0 |
Message-Id: <bf15c10c27c81f8f2d5a23568e4aebd216756642.1602087923.git.mprivozn@redhat.com>
|
|
|
7548c0 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
7548c0 |
---
|
|
|
7548c0 |
src/qemu/qemu_capabilities.c | 2 ++
|
|
|
7548c0 |
src/qemu/qemu_capabilities.h | 1 +
|
|
|
7548c0 |
tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml | 1 +
|
|
|
7548c0 |
tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml | 1 +
|
|
|
7548c0 |
4 files changed, 5 insertions(+)
|
|
|
7548c0 |
|
|
|
7548c0 |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
|
|
|
7548c0 |
index 278eaa0009..ce52c51199 100644
|
|
|
7548c0 |
--- a/src/qemu/qemu_capabilities.c
|
|
|
7548c0 |
+++ b/src/qemu/qemu_capabilities.c
|
|
|
7548c0 |
@@ -568,6 +568,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
|
|
7548c0 |
"storage.werror",
|
|
|
7548c0 |
"pcie-root-port.hotplug",
|
|
|
7548c0 |
"i8042",
|
|
|
7548c0 |
+ "numa.hmat",
|
|
|
7548c0 |
);
|
|
|
7548c0 |
|
|
|
7548c0 |
|
|
|
7548c0 |
@@ -1451,6 +1452,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsQMPSchemaQueries[] = {
|
|
|
7548c0 |
{ "human-monitor-command/$savevm-monitor-nodes", QEMU_CAPS_SAVEVM_MONITOR_NODES },
|
|
|
7548c0 |
{ "blockdev-add/arg-type/+nvme", QEMU_CAPS_DRIVE_NVME },
|
|
|
7548c0 |
{ "blockdev-snapshot/$allow-write-only-overlay", QEMU_CAPS_BLOCKDEV_SNAPSHOT_ALLOW_WRITE_ONLY },
|
|
|
7548c0 |
+ { "set-numa-node/arg-type/+hmat-lb", QEMU_CAPS_NUMA_HMAT },
|
|
|
7548c0 |
};
|
|
|
7548c0 |
|
|
|
7548c0 |
typedef struct _virQEMUCapsObjectTypeProps virQEMUCapsObjectTypeProps;
|
|
|
7548c0 |
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
|
|
|
7548c0 |
index 15ebcb5077..98cac5b9dc 100644
|
|
|
7548c0 |
--- a/src/qemu/qemu_capabilities.h
|
|
|
7548c0 |
+++ b/src/qemu/qemu_capabilities.h
|
|
|
7548c0 |
@@ -548,6 +548,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
|
|
7548c0 |
QEMU_CAPS_STORAGE_WERROR, /* virtio-blk,scsi-hd.werror */
|
|
|
7548c0 |
QEMU_CAPS_PCIE_ROOT_PORT_HOTPLUG, /* pcie-root-port.hotplug */
|
|
|
7548c0 |
QEMU_CAPS_DEVICE_I8042, /* PS/2 controller */
|
|
|
7548c0 |
+ QEMU_CAPS_NUMA_HMAT, /* -numa hmat */
|
|
|
7548c0 |
|
|
|
7548c0 |
QEMU_CAPS_LAST /* this must always be the last item */
|
|
|
7548c0 |
} virQEMUCapsFlags;
|
|
|
7548c0 |
diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml b/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml
|
|
|
7548c0 |
index 140a466910..92da5cbd94 100644
|
|
|
7548c0 |
--- a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml
|
|
|
7548c0 |
+++ b/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml
|
|
|
7548c0 |
@@ -181,6 +181,7 @@
|
|
|
7548c0 |
<flag name='cpu.kvm-no-adjvtime'/>
|
|
|
7548c0 |
<flag name='vhost-user-fs'/>
|
|
|
7548c0 |
<flag name='storage.werror'/>
|
|
|
7548c0 |
+ <flag name='numa.hmat'/>
|
|
|
7548c0 |
<version>4002050</version>
|
|
|
7548c0 |
<kvmVersion>0</kvmVersion>
|
|
|
7548c0 |
<microcodeVersion>61700241</microcodeVersion>
|
|
|
7548c0 |
diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml
|
|
|
7548c0 |
index 733e6b1eb4..0b841a49ac 100644
|
|
|
7548c0 |
--- a/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml
|
|
|
7548c0 |
+++ b/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml
|
|
|
7548c0 |
@@ -226,6 +226,7 @@
|
|
|
7548c0 |
<flag name='storage.werror'/>
|
|
|
7548c0 |
<flag name='pcie-root-port.hotplug'/>
|
|
|
7548c0 |
<flag name='i8042'/>
|
|
|
7548c0 |
+ <flag name='numa.hmat'/>
|
|
|
7548c0 |
<version>4002091</version>
|
|
|
7548c0 |
<kvmVersion>0</kvmVersion>
|
|
|
7548c0 |
<microcodeVersion>43100241</microcodeVersion>
|
|
|
7548c0 |
--
|
|
|
7548c0 |
2.29.2
|
|
|
7548c0 |
|