OSDN Git Service

m68k: add the virtio devices aliases
authorLaurent Vivier <laurent@vivier.eu>
Tue, 23 Mar 2021 16:53:03 +0000 (16:53 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 24 Mar 2021 14:25:48 +0000 (14:25 +0000)
commit4c5806a56b9dc2683d518e477d0a648ab7469722
treee04fd622d79a50bf3b99a3f972ce30b362ecf9ed
parent203adb43fc9d47a8cfa368c327d886cfddfae682
m68k: add the virtio devices aliases

Similarly to 5f629d943cb0 ("s390x: fix s390 virtio aliases"),
define the virtio aliases.

This allows to start machines with virtio devices without
knowledge of the implementation type.

For instance, we can use "-device virtio-scsi" on
m68k, s390x or PC, and the device will be respectively
"virtio-scsi-device", "virtio-scsi-ccw" or "virtio-scsi-pci".

This already exists for s390x and -ccw interfaces, add them
for m68k and MMIO (-device) interfaces.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20210319202335.2397060-3-laurent@vivier.eu>
Message-Id: <20210323165308.15244-18-alex.bennee@linaro.org>
include/sysemu/arch_init.h
softmmu/qdev-monitor.c