qemu: assume QEMU_CAPS_VIRTIO_PACKED_QUEUES

Added by QEMU commit:

commit 74b3e46630446568aecb0be1c77c4875d7a52f6d
Author:     Jason Wang <jasowang@redhat.com>
CommitDate: 2019-10-25 07:46:22 -0400

    virtio: add property to enable packed virtqueue

    Signed-off-by: Jason Wang <jasowang@redhat.com>
    Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
    Reviewed-by: Jens Freimann <jfreimann@redhat.com>
    Message-Id: <20191025083527.30803-9-eperezma@redhat.com>
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

git describe: v4.1.0-1780-g74b3e46630 contains: v4.2.0-rc0~32^2~17

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Ján Tomko 2022-08-25 17:40:44 +02:00
parent 3ae85b6a69
commit b710fcaff7
10 changed files with 1 additions and 30 deletions

View File

@ -1774,19 +1774,11 @@ qemuValidateNetSupportsCoalesce(virDomainNetType type)
static int
qemuValidateDomainVirtioOptions(const virDomainVirtioOptions *virtio,
virQEMUCaps *qemuCaps)
virQEMUCaps *qemuCaps G_GNUC_UNUSED)
{
if (!virtio)
return 0;
if (virtio->packed != VIR_TRISTATE_SWITCH_ABSENT &&
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_PACKED_QUEUES)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("the packed setting is not supported with this "
"QEMU binary"));
return -1;
}
return 0;
}

View File

@ -1 +0,0 @@
unsupported configuration: the packed setting is not supported with this QEMU binary

View File

@ -1 +0,0 @@
unsupported configuration: the packed setting is not supported with this QEMU binary

View File

@ -1 +0,0 @@
unsupported configuration: the packed setting is not supported with this QEMU binary

View File

@ -1 +0,0 @@
unsupported configuration: the packed setting is not supported with this QEMU binary

View File

@ -1 +0,0 @@
unsupported configuration: the packed setting is not supported with this QEMU binary

View File

@ -1 +0,0 @@
unsupported configuration: the packed setting is not supported with this QEMU binary

View File

@ -1 +0,0 @@
unsupported configuration: the packed setting is not supported with this QEMU binary

View File

@ -1 +0,0 @@
unsupported configuration: the packed setting is not supported with this QEMU binary

View File

@ -3088,20 +3088,7 @@ mymain(void)
DO_TEST_CAPS_LATEST("virtio-options-net-packed");
DO_TEST_CAPS_LATEST("virtio-options-rng-packed");
DO_TEST_CAPS_LATEST("virtio-options-video-packed");
DO_TEST_PARSE_ERROR("virtio-options-controller-packed", QEMU_CAPS_VIRTIO_SCSI);
DO_TEST_PARSE_ERROR_NOCAPS("virtio-options-disk-packed");
DO_TEST_PARSE_ERROR_NOCAPS("virtio-options-fs-packed");
DO_TEST_PARSE_ERROR("virtio-options-input-packed", QEMU_CAPS_VIRTIO_MOUSE,
QEMU_CAPS_VIRTIO_KEYBOARD);
DO_TEST_PARSE_ERROR_NOCAPS("virtio-options-memballoon-packed");
DO_TEST_PARSE_ERROR_NOCAPS("virtio-options-memballoon-freepage-reporting");
DO_TEST_PARSE_ERROR_NOCAPS("virtio-options-net-packed");
DO_TEST_PARSE_ERROR("virtio-options-rng-packed", QEMU_CAPS_DEVICE_VIRTIO_RNG,
QEMU_CAPS_OBJECT_RNG_RANDOM);
DO_TEST_PARSE_ERROR("virtio-options-video-packed", QEMU_CAPS_DEVICE_VIRTIO_GPU,
QEMU_CAPS_DEVICE_VIRTIO_GPU,
QEMU_CAPS_VIRTIO_GPU_VIRGL,
QEMU_CAPS_DEVICE_VHOST_USER_GPU);
DO_TEST("fd-memory-numa-topology", QEMU_CAPS_OBJECT_MEMORY_FILE,
QEMU_CAPS_KVM);