mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
qdev/compat: virtio-console-pci 0.10 compatibility.
Add class property to virtio-console-pci allowing to specify the PCI class. Add compat property to pc-0.10 to set the old PCI class. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
eb54b6dcb8
commit
d6beee9938
2 changed files with 20 additions and 1 deletions
4
hw/pc.c
4
hw/pc.c
|
@ -1529,6 +1529,10 @@ static QEMUMachine pc_machine_v0_10 = {
|
|||
.driver = "virtio-blk-pci",
|
||||
.property = "class",
|
||||
.value = stringify(PCI_CLASS_STORAGE_OTHER),
|
||||
},{
|
||||
.driver = "virtio-console-pci",
|
||||
.property = "class",
|
||||
.value = stringify(PCI_CLASS_DISPLAY_OTHER),
|
||||
},
|
||||
{ /* end of list */ }
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue