|
|
6ae9ed |
From a0030cf0bbaaa714d9bb245ca2a2a6c6b77deea6 Mon Sep 17 00:00:00 2001
|
|
|
6ae9ed |
Message-Id: <a0030cf0bbaaa714d9bb245ca2a2a6c6b77deea6@dist-git>
|
|
|
6ae9ed |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
6ae9ed |
Date: Sat, 10 Sep 2016 08:25:11 +0200
|
|
|
6ae9ed |
Subject: [PATCH] qemu_capabilities: Introduce virtio-net-*.rx_queue_size
|
|
|
6ae9ed |
|
|
|
6ae9ed |
https://bugzilla.redhat.com/show_bug.cgi?id=1366989
|
|
|
6ae9ed |
|
|
|
6ae9ed |
Just like in the previous commit, teach qemu driver to detect
|
|
|
6ae9ed |
whether qemu supports this configuration knob or not.
|
|
|
6ae9ed |
|
|
|
6ae9ed |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
6ae9ed |
(cherry picked from commit 06d09696557a4cea547ca13bd6d5bc85d7f17818)
|
|
|
6ae9ed |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
6ae9ed |
---
|
|
|
6ae9ed |
src/qemu/qemu_capabilities.c | 3 +++
|
|
|
6ae9ed |
src/qemu/qemu_capabilities.h | 3 +++
|
|
|
6ae9ed |
2 files changed, 6 insertions(+)
|
|
|
6ae9ed |
|
|
|
6ae9ed |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
|
|
|
6ae9ed |
index 5b68271..2c49109 100644
|
|
|
6ae9ed |
--- a/src/qemu/qemu_capabilities.c
|
|
|
6ae9ed |
+++ b/src/qemu/qemu_capabilities.c
|
|
|
6ae9ed |
@@ -340,6 +340,8 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
|
|
6ae9ed |
"intel-iommu",
|
|
|
6ae9ed |
"smm",
|
|
|
6ae9ed |
"query-hotpluggable-cpus",
|
|
|
6ae9ed |
+
|
|
|
6ae9ed |
+ "virtio-net.rx_queue_size", /* 235 */
|
|
|
6ae9ed |
);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
|
|
|
6ae9ed |
@@ -1579,6 +1581,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBlk[] = {
|
|
|
6ae9ed |
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioNet[] = {
|
|
|
6ae9ed |
{ "tx", QEMU_CAPS_VIRTIO_TX_ALG },
|
|
|
6ae9ed |
{ "event_idx", QEMU_CAPS_VIRTIO_NET_EVENT_IDX },
|
|
|
6ae9ed |
+ { "rx_queue_size", QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE },
|
|
|
6ae9ed |
};
|
|
|
6ae9ed |
|
|
|
6ae9ed |
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioSCSI[] = {
|
|
|
6ae9ed |
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
|
|
|
6ae9ed |
index e05c178..6949ec8 100644
|
|
|
6ae9ed |
--- a/src/qemu/qemu_capabilities.h
|
|
|
6ae9ed |
+++ b/src/qemu/qemu_capabilities.h
|
|
|
6ae9ed |
@@ -374,6 +374,9 @@ typedef enum {
|
|
|
6ae9ed |
QEMU_CAPS_MACHINE_SMM_OPT, /* -machine xxx,smm=on/off/auto */
|
|
|
6ae9ed |
QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS, /* qmp command query-hotpluggable-cpus */
|
|
|
6ae9ed |
|
|
|
6ae9ed |
+ /* 235 */
|
|
|
6ae9ed |
+ QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE, /* virtio-net-*.rx_queue_size */
|
|
|
6ae9ed |
+
|
|
|
6ae9ed |
QEMU_CAPS_LAST /* this must always be the last item */
|
|
|
6ae9ed |
} virQEMUCapsFlags;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
--
|
|
|
6ae9ed |
2.10.0
|
|
|
6ae9ed |
|