From: Ian Jackson Date: Wed, 14 May 2008 15:18:35 +0000 (+0100) Subject: ide: Add PCI subsystem ID to emulated devices. X-Git-Tag: xen-3.3.0-rc1~192 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bd9af11426c3516359a6b487d6069dab5228b5d6;p=qemu-xen-4.6-testing.git ide: Add PCI subsystem ID to emulated devices. Merge into qemu git of this change to hw/ide.c from xen-unstable: changeset: 13821:6e1b380947ee72e300ce038cbeade628f347ac6a user: kfraser@localhost.localdomain date: Wed Feb 07 16:08:47 2007 +0000 files: tools/ioemu/hw/cirrus_vga.c tools/ioemu/hw/ide.c tools/ioemu/hw/rtl8139.c description: hvm: Add PCI subsystem ID to emulated devices. This patch adds the PCI Subsystem ID 5853:0001 to the virtual devices emulated by qemu (ide, nic, vga). Signed-off-by: Gerd Hoffmann --- diff --git a/hw/ide.c b/hw/ide.c index f4cd7f94b..7dc6b1a05 100644 --- a/hw/ide.c +++ b/hw/ide.c @@ -3398,6 +3398,10 @@ void pci_piix3_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn, pci_conf[0x0a] = 0x01; // class_sub = PCI_IDE pci_conf[0x0b] = 0x01; // class_base = PCI_mass_storage pci_conf[0x0e] = 0x00; // header_type + pci_conf[0x2c] = 0x53; /* subsystem vendor: XenSource */ + pci_conf[0x2d] = 0x58; + pci_conf[0x2e] = 0x01; /* subsystem device */ + pci_conf[0x2f] = 0x00; piix3_reset(d); @@ -3438,6 +3442,10 @@ void pci_piix4_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn, pci_conf[0x0a] = 0x01; // class_sub = PCI_IDE pci_conf[0x0b] = 0x01; // class_base = PCI_mass_storage pci_conf[0x0e] = 0x00; // header_type + pci_conf[0x2c] = 0x53; /* subsystem vendor: XenSource */ + pci_conf[0x2d] = 0x58; + pci_conf[0x2e] = 0x01; /* subsystem device */ + pci_conf[0x2f] = 0x00; piix3_reset(d);