s390x: fix s390 virtio aliases
commit5f629d943cb0b11c37a891cf4f40a9166aee6f53
authorAlexander Graf <agraf@suse.de>
Fri, 18 May 2012 00:36:26 +0000 (18 02:36 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 18 Jun 2012 13:32:45 +0000 (18 15:32 +0200)
tree228b0103740c103695e33578480eb0cac5e0406c
parenteb2aeacf983a2a88a2b31e8fee067c38bd10abd3
s390x: fix s390 virtio aliases

Some of the virtio devices have the same frontend name, but actually
implement different devices behind the scenes through aliases.

The indicator which device type to use is the architecture. On s390, we
want s390 virtio devices. On everything else, we want PCI devices.

Reflect this in the alias selection code. This way we fix commands like
-device virtio-blk on s390x which with this patch applied select the
correct virtio-blk-s390 device rather than virtio-blk-pci.

Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/qdev-monitor.c