aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-07-15 13:48:24 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-16 17:28:53 -0500
commitd6beee993810b80d7a7f51d05d4f8e08e485b2b2 (patch)
treeb8ec4a98abb8f5a95e8d1ef6850d76a4822efa9a /hw/pc.c
parenteb54b6dcb8c6795c3667bcf1cb142639a36fdf85 (diff)
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>
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pc.c b/hw/pc.c
index ba1f3d5ef8..8a1582c2e9 100644
--- a/hw/pc.c
+++ b/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 */ }
},