From ab73ff29ceb785aad3fc182e09d702ccee2e5559 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 15 Jul 2009 13:48:23 +0200 Subject: qdev/compat: virtio-blk-pci 0.10 compatibility. Add class property to virtio-blk-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 Signed-off-by: Anthony Liguori --- hw/pc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hw/pc.c') diff --git a/hw/pc.c b/hw/pc.c index 64526ecc3e..ba1f3d5ef8 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1525,6 +1525,11 @@ static QEMUMachine pc_machine_v0_10 = { .init = pc_init_pci, .max_cpus = 255, .compat_props = (CompatProperty[]) { + { + .driver = "virtio-blk-pci", + .property = "class", + .value = stringify(PCI_CLASS_STORAGE_OTHER), + }, { /* end of list */ } }, }; -- cgit v1.2.3