mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
virtio: use generic name when possible
We have two different virtio buses: pci and s390. The abstraction path taken in qemu is to have generic aliases for each device type in the architecture specific qdev devices. So let's make use of these aliases whenever we can and define them whenever we can. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
1b01b4e717
commit
29f82b37e5
4 changed files with 9 additions and 4 deletions
|
@ -873,6 +873,7 @@ static PCIDeviceInfo virtio_info[] = {
|
|||
.qdev.reset = virtio_pci_reset,
|
||||
},{
|
||||
.qdev.name = "virtio-net-pci",
|
||||
.qdev.alias = "virtio-net",
|
||||
.qdev.size = sizeof(VirtIOPCIProxy),
|
||||
.init = virtio_net_init_pci,
|
||||
.exit = virtio_net_exit_pci,
|
||||
|
@ -911,6 +912,7 @@ static PCIDeviceInfo virtio_info[] = {
|
|||
.qdev.reset = virtio_pci_reset,
|
||||
},{
|
||||
.qdev.name = "virtio-balloon-pci",
|
||||
.qdev.alias = "virtio-balloon",
|
||||
.qdev.size = sizeof(VirtIOPCIProxy),
|
||||
.init = virtio_balloon_init_pci,
|
||||
.exit = virtio_exit_pci,
|
||||
|
@ -922,6 +924,7 @@ static PCIDeviceInfo virtio_info[] = {
|
|||
},{
|
||||
#ifdef CONFIG_VIRTFS
|
||||
.qdev.name = "virtio-9p-pci",
|
||||
.qdev.alias = "virtio-9p",
|
||||
.qdev.size = sizeof(VirtIOPCIProxy),
|
||||
.init = virtio_9p_init_pci,
|
||||
.qdev.props = (Property[]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue