mirror of https://gitee.com/openkylin/libvirt.git
qemu: set domain capability for ramfb device
commit 9bfcf0f62d
added the
QEMU_CAPS_DEVICE_RAMFB capability but did not set the domain capability.
This patch sets the domain capability for the ramfb device and updates
the tests.
Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
b964735609
commit
eecab2e80b
|
@ -5392,6 +5392,8 @@ virQEMUCapsFillDomainDeviceVideoCaps(virQEMUCapsPtr qemuCaps,
|
|||
VIR_DOMAIN_CAPS_ENUM_SET(dev->modelType, VIR_DOMAIN_VIDEO_TYPE_VIRTIO);
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_BOCHS_DISPLAY))
|
||||
VIR_DOMAIN_CAPS_ENUM_SET(dev->modelType, VIR_DOMAIN_VIDEO_TYPE_BOCHS);
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_RAMFB))
|
||||
VIR_DOMAIN_CAPS_ENUM_SET(dev->modelType, VIR_DOMAIN_VIDEO_TYPE_RAMFB);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -125,6 +125,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -140,6 +140,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
<value>vga</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -158,6 +158,7 @@
|
|||
<video supported='yes'>
|
||||
<enum name='modelType'>
|
||||
<value>virtio</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -125,6 +125,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -143,6 +143,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -143,6 +143,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
<value>vmvga</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -100,6 +100,7 @@
|
|||
<value>vmvga</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -143,6 +143,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -143,6 +143,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
<value>vmvga</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -100,6 +100,7 @@
|
|||
<value>vmvga</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
<value>qxl</value>
|
||||
<value>virtio</value>
|
||||
<value>bochs</value>
|
||||
<value>ramfb</value>
|
||||
</enum>
|
||||
</video>
|
||||
<hostdev supported='yes'>
|
||||
|
|
Loading…
Reference in New Issue