]> xenbits.xensource.com Git - qemu-xen-unstable.git/commitdiff
merge from in xen-unstable tip (17318:b5fea3aeb04b): hw/rtl8139.c
authorIan Jackson <iwj@mariner.uk.xensource.com>
Wed, 7 May 2008 17:43:30 +0000 (18:43 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 12 May 2008 11:20:11 +0000 (12:20 +0100)
merge this changeset 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 <kraxel@suse.de>
hw/rtl8139.c

index 5d1a8fd23a1a54d99bd37eb7628087a95db7de08..fee12c452db12ac9ee281c06cbf672f91ff67bcf 100644 (file)
@@ -3423,6 +3423,10 @@ void pci_rtl8139_init(PCIBus *bus, NICInfo *nd, int devfn)
     pci_conf[0x0e] = 0x00; /* header_type */
     pci_conf[0x3d] = 1;    /* interrupt pin 0 */
     pci_conf[0x34] = 0xdc;
+    pci_conf[0x2c] = 0x53; /* subsystem vendor: XenSource */
+    pci_conf[0x2d] = 0x58;
+    pci_conf[0x2e] = 0x01; /* subsystem device */
+    pci_conf[0x2f] = 0x00;
 
     s = &d->rtl8139;