]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Ignore virtio-mmio disks in qemuAssignDevicePCISlots()
authorPavel Fedin <p.fedin@samsung.com>
Wed, 9 Sep 2015 12:02:53 +0000 (15:02 +0300)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 15 Sep 2015 09:35:50 +0000 (11:35 +0200)
commitd526e37bad2515cf91caa0e4ff3edaf41e45b5c2
tree99c53ec9394e7fdc6e27869f0d961ba7409cafbc
parent00e5b967168bab252ea2bef977ad40b4155f08df
Ignore virtio-mmio disks in qemuAssignDevicePCISlots()

Fixes the following error when attempting to add a disk with bus='virtio'
to a machine which actually supports virtio-mmio (caught with ARM virt):

virtio disk cannot have an address of type 'virtio-mmio'

The problem has been likely introduced by
e8d55172544c1fafe31a9e09346bdebca4f0d6f9. Before that
qemuAssignDevicePCISlots() was never called for ARM "virt" machine.

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
src/qemu/qemu_command.c
src/qemu/qemu_command.h