mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Revert "qemu: Use heads parameter for QXL driver"
This reverts commit 7b401c3bda
.
Until libvirt is able to differentiate whether heads='1' is just a
leftover from previous libvirt or whether that's added by user on
purpose and also whether the domain was started with the support for
qxl's max_outputs, we cannot incorporate this patch into the tree
due to compatibility reasons.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
b70b5ff41a
commit
a5bdb8459a
@ -288,7 +288,6 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
|||||||
|
|
||||||
"vhost-user-multiqueue", /* 190 */
|
"vhost-user-multiqueue", /* 190 */
|
||||||
"migration-event",
|
"migration-event",
|
||||||
"qxl-vga.max_outputs",
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -1652,7 +1651,6 @@ static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsQxl[] = {
|
|||||||
|
|
||||||
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsQxlVga[] = {
|
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsQxlVga[] = {
|
||||||
{ "vgamem_mb", QEMU_CAPS_QXL_VGA_VGAMEM },
|
{ "vgamem_mb", QEMU_CAPS_QXL_VGA_VGAMEM },
|
||||||
{ "max_outputs", QEMU_CAPS_QXL_VGA_MAX_OUTPUTS },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct virQEMUCapsObjectTypeProps {
|
struct virQEMUCapsObjectTypeProps {
|
||||||
|
@ -231,7 +231,6 @@ typedef enum {
|
|||||||
QEMU_CAPS_CPU_AARCH64_OFF = 189, /* -cpu ...,aarch64=off */
|
QEMU_CAPS_CPU_AARCH64_OFF = 189, /* -cpu ...,aarch64=off */
|
||||||
QEMU_CAPS_VHOSTUSER_MULTIQUEUE = 190, /* vhost-user with -netdev queues= */
|
QEMU_CAPS_VHOSTUSER_MULTIQUEUE = 190, /* vhost-user with -netdev queues= */
|
||||||
QEMU_CAPS_MIGRATION_EVENT = 191, /* MIGRATION event */
|
QEMU_CAPS_MIGRATION_EVENT = 191, /* MIGRATION event */
|
||||||
QEMU_CAPS_QXL_VGA_MAX_OUTPUTS = 192, /* qxl-vga.max_outputs */
|
|
||||||
|
|
||||||
QEMU_CAPS_LAST, /* this must always be the last item */
|
QEMU_CAPS_LAST, /* this must always be the last item */
|
||||||
} virQEMUCapsFlags;
|
} virQEMUCapsFlags;
|
||||||
|
@ -5684,11 +5684,6 @@ qemuBuildDeviceVideoStr(virDomainDefPtr def,
|
|||||||
/* QEMU accepts mebibytes for vgamem_mb. */
|
/* QEMU accepts mebibytes for vgamem_mb. */
|
||||||
virBufferAsprintf(&buf, ",vgamem_mb=%u", video->vgamem / 1024);
|
virBufferAsprintf(&buf, ",vgamem_mb=%u", video->vgamem / 1024);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_QXL_VGA_MAX_OUTPUTS) &&
|
|
||||||
video->heads > 0) {
|
|
||||||
virBufferAsprintf(&buf, ",max_outputs=%u", video->heads);
|
|
||||||
}
|
|
||||||
} else if (video->vram &&
|
} else if (video->vram &&
|
||||||
((video->type == VIR_DOMAIN_VIDEO_TYPE_VGA &&
|
((video->type == VIR_DOMAIN_VIDEO_TYPE_VGA &&
|
||||||
virQEMUCapsGet(qemuCaps, QEMU_CAPS_VGA_VGAMEM)) ||
|
virQEMUCapsGet(qemuCaps, QEMU_CAPS_VGA_VGAMEM)) ||
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
|
||||||
/usr/bin/qemu -S -M pc -m 1024 -smp 1 -nographic -nodefaults \
|
|
||||||
-monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -usb \
|
|
||||||
-hda /var/lib/libvirt/images/QEMUGuest1 \
|
|
||||||
-device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vgamem_mb=16\
|
|
||||||
,max_outputs=3,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0\
|
|
||||||
,bus=pci.0,addr=0x3
|
|
@ -1,29 +0,0 @@
|
|||||||
<domain type='qemu'>
|
|
||||||
<name>QEMUGuest1</name>
|
|
||||||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
||||||
<memory unit='KiB'>1048576</memory>
|
|
||||||
<currentMemory unit='KiB'>1048576</currentMemory>
|
|
||||||
<vcpu>1</vcpu>
|
|
||||||
<os>
|
|
||||||
<type arch='i686' machine='pc'>hvm</type>
|
|
||||||
<boot dev='hd'/>
|
|
||||||
</os>
|
|
||||||
<clock offset='utc'/>
|
|
||||||
<on_poweroff>destroy</on_poweroff>
|
|
||||||
<on_reboot>restart</on_reboot>
|
|
||||||
<on_crash>destroy</on_crash>
|
|
||||||
<devices>
|
|
||||||
<emulator>/usr/bin/qemu</emulator>
|
|
||||||
<disk type='file' device='disk'>
|
|
||||||
<driver name='qemu' type='qcow2' cache='none'/>
|
|
||||||
<source file='/var/lib/libvirt/images/QEMUGuest1'/>
|
|
||||||
<target dev='hda' bus='ide'/>
|
|
||||||
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
|
||||||
</disk>
|
|
||||||
<controller type='ide' index='0'/>
|
|
||||||
<video>
|
|
||||||
<model type='qxl' heads='3'/>
|
|
||||||
</video>
|
|
||||||
<memballoon model='virtio'/>
|
|
||||||
</devices>
|
|
||||||
</domain>
|
|
@ -1441,9 +1441,6 @@ mymain(void)
|
|||||||
DO_TEST("video-qxl-device-vgamem", QEMU_CAPS_DEVICE,
|
DO_TEST("video-qxl-device-vgamem", QEMU_CAPS_DEVICE,
|
||||||
QEMU_CAPS_DEVICE_QXL_VGA, QEMU_CAPS_DEVICE_VIDEO_PRIMARY,
|
QEMU_CAPS_DEVICE_QXL_VGA, QEMU_CAPS_DEVICE_VIDEO_PRIMARY,
|
||||||
QEMU_CAPS_QXL_VGA_VGAMEM);
|
QEMU_CAPS_QXL_VGA_VGAMEM);
|
||||||
DO_TEST("video-qxl-device-max-outputs", QEMU_CAPS_DEVICE,
|
|
||||||
QEMU_CAPS_DEVICE_QXL_VGA, QEMU_CAPS_DEVICE_VIDEO_PRIMARY,
|
|
||||||
QEMU_CAPS_QXL_VGA_VGAMEM, QEMU_CAPS_QXL_VGA_MAX_OUTPUTS);
|
|
||||||
DO_TEST_FAILURE("video-qxl-sec-nodevice", QEMU_CAPS_VGA, QEMU_CAPS_VGA_QXL);
|
DO_TEST_FAILURE("video-qxl-sec-nodevice", QEMU_CAPS_VGA, QEMU_CAPS_VGA_QXL);
|
||||||
DO_TEST("video-qxl-sec-device", QEMU_CAPS_DEVICE, QEMU_CAPS_DEVICE_QXL_VGA,
|
DO_TEST("video-qxl-sec-device", QEMU_CAPS_DEVICE, QEMU_CAPS_DEVICE_QXL_VGA,
|
||||||
QEMU_CAPS_DEVICE_QXL, QEMU_CAPS_DEVICE_VIDEO_PRIMARY);
|
QEMU_CAPS_DEVICE_QXL, QEMU_CAPS_DEVICE_VIDEO_PRIMARY);
|
||||||
|
Loading…
Reference in New Issue
Block a user