]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: prevent invalid reads in qemuAssignDevicePCISlots
authorJán Tomko <jtomko@redhat.com>
Fri, 26 Apr 2013 16:05:46 +0000 (18:05 +0200)
committerJán Tomko <jtomko@redhat.com>
Sat, 27 Apr 2013 10:55:46 +0000 (12:55 +0200)
commit379e4bcce500bbb2506af6848b7053b4d172a6fc
treeb6f24de34a7096a4081c7655e775931ec0cf9574
parent877bc08947c1a4a3810b0cca36254ad19206606c
qemu: prevent invalid reads in qemuAssignDevicePCISlots

Don't reserve slot 2 for video if the machine has no PCI buses.
Error out when the user specifies a video device without
a PCI address when there are no PCI buses.

(This wouldn't work on a machine with no PCI bus anyway since
we do add PCI addresses for video devices to the command line)
src/qemu/qemu_command.c