mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
qemu: restrict 'virgl=' option to non-vhostuser video type
vhost-user device doesn't have a virgl option, it is passed to the vhost-user-gpu helper process instead. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
c3d0831745
commit
d27abda98d
@ -4542,9 +4542,12 @@ qemuBuildDeviceVideoStr(const virDomainDef *def,
|
||||
|
||||
virBufferAsprintf(&buf, ",id=%s", video->info.alias);
|
||||
|
||||
if (video->accel && video->accel->accel3d == VIR_TRISTATE_SWITCH_ON) {
|
||||
virBufferAsprintf(&buf, ",virgl=%s",
|
||||
virTristateSwitchTypeToString(video->accel->accel3d));
|
||||
if (video->backend != VIR_DOMAIN_VIDEO_BACKEND_TYPE_VHOSTUSER &&
|
||||
video->type == VIR_DOMAIN_VIDEO_TYPE_VIRTIO) {
|
||||
if (video->accel && video->accel->accel3d == VIR_TRISTATE_SWITCH_ON) {
|
||||
virBufferAsprintf(&buf, ",virgl=%s",
|
||||
virTristateSwitchTypeToString(video->accel->accel3d));
|
||||
}
|
||||
}
|
||||
|
||||
if (video->type == VIR_DOMAIN_VIDEO_TYPE_QXL) {
|
||||
|
@ -49,8 +49,7 @@ ats=on \
|
||||
ats=on \
|
||||
-device virtio-input-host-pci,id=input3,evdev=/dev/input/event1234,bus=pci.0,\
|
||||
addr=0x12,iommu_platform=on,ats=on \
|
||||
-device virtio-gpu-pci,id=video0,virgl=on,bus=pci.0,addr=0x2,iommu_platform=on,\
|
||||
ats=on \
|
||||
-device virtio-gpu-pci,id=video0,bus=pci.0,addr=0x2,iommu_platform=on,ats=on \
|
||||
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0xc,iommu_platform=on,\
|
||||
ats=on \
|
||||
-object rng-random,id=objrng0,filename=/dev/random \
|
||||
|
Loading…
x
Reference in New Issue
Block a user