mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu_capabilities: Introduce virtio-net-*.rx_queue_size
Just like in the previous commit, teach qemu driver to detect whether qemu supports this configuration knob or not. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c56cdf2593
commit
06d0969655
@ -342,6 +342,8 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
||||
"smm",
|
||||
"virtio-pci-disable-legacy",
|
||||
"query-hotpluggable-cpus",
|
||||
|
||||
"virtio-net.rx_queue_size", /* 235 */
|
||||
);
|
||||
|
||||
|
||||
@ -1584,6 +1586,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBlk[] = {
|
||||
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioNet[] = {
|
||||
{ "tx", QEMU_CAPS_VIRTIO_TX_ALG },
|
||||
{ "event_idx", QEMU_CAPS_VIRTIO_NET_EVENT_IDX },
|
||||
{ "rx_queue_size", QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioSCSI[] = {
|
||||
|
@ -376,6 +376,9 @@ typedef enum {
|
||||
QEMU_CAPS_VIRTIO_PCI_DISABLE_LEGACY, /* virtio-*pci.disable-legacy */
|
||||
QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS, /* qmp command query-hotpluggable-cpus */
|
||||
|
||||
/* 235 */
|
||||
QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE, /* virtio-net-*.rx_queue_size */
|
||||
|
||||
QEMU_CAPS_LAST /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user