ia64/xen-unstable

changeset 13868:6e1b380947ee

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>
author kfraser@localhost.localdomain
date Wed Feb 07 16:08:47 2007 +0000 (2007-02-07)
parents 584ab4fd1ad5
children cb50bcfcf9fa
files tools/ioemu/hw/cirrus_vga.c tools/ioemu/hw/ide.c tools/ioemu/hw/rtl8139.c
line diff
     1.1 --- a/tools/ioemu/hw/cirrus_vga.c	Wed Feb 07 12:58:07 2007 +0000
     1.2 +++ b/tools/ioemu/hw/cirrus_vga.c	Wed Feb 07 16:08:47 2007 +0000
     1.3 @@ -3339,6 +3339,10 @@ void pci_cirrus_vga_init(PCIBus *bus, Di
     1.4      pci_conf[0x0a] = PCI_CLASS_SUB_VGA;
     1.5      pci_conf[0x0b] = PCI_CLASS_BASE_DISPLAY;
     1.6      pci_conf[0x0e] = PCI_CLASS_HEADERTYPE_00h;
     1.7 +    pci_conf[0x2c] = 0x53; /* subsystem vendor: XenSource */
     1.8 +    pci_conf[0x2d] = 0x58;
     1.9 +    pci_conf[0x2e] = 0x01; /* subsystem device */
    1.10 +    pci_conf[0x2f] = 0x00;
    1.11  
    1.12      /* setup VGA */
    1.13      s = &d->cirrus_vga;
     2.1 --- a/tools/ioemu/hw/ide.c	Wed Feb 07 12:58:07 2007 +0000
     2.2 +++ b/tools/ioemu/hw/ide.c	Wed Feb 07 16:08:47 2007 +0000
     2.3 @@ -2502,6 +2502,10 @@ void pci_piix3_ide_init(PCIBus *bus, Blo
     2.4      pci_conf[0x0a] = 0x01; // class_sub = PCI_IDE
     2.5      pci_conf[0x0b] = 0x01; // class_base = PCI_mass_storage
     2.6      pci_conf[0x0e] = 0x00; // header_type
     2.7 +    pci_conf[0x2c] = 0x53; /* subsystem vendor: XenSource */
     2.8 +    pci_conf[0x2d] = 0x58;
     2.9 +    pci_conf[0x2e] = 0x01; /* subsystem device */
    2.10 +    pci_conf[0x2f] = 0x00;
    2.11  
    2.12      pci_register_io_region((PCIDevice *)d, 4, 0x10, 
    2.13                             PCI_ADDRESS_SPACE_IO, bmdma_map);
     3.1 --- a/tools/ioemu/hw/rtl8139.c	Wed Feb 07 12:58:07 2007 +0000
     3.2 +++ b/tools/ioemu/hw/rtl8139.c	Wed Feb 07 16:08:47 2007 +0000
     3.3 @@ -3423,8 +3423,10 @@ void pci_rtl8139_init(PCIBus *bus, NICIn
     3.4      pci_conf[0x0e] = 0x00; /* header_type */
     3.5      pci_conf[0x3d] = 1;    /* interrupt pin 0 */
     3.6      pci_conf[0x34] = 0xdc;
     3.7 -    pci_conf[0x2c] = pci_conf[0x00]; // same as Vendor ID
     3.8 -    pci_conf[0x2d] = pci_conf[0x01];
     3.9 +    pci_conf[0x2c] = 0x53; /* subsystem vendor: XenSource */
    3.10 +    pci_conf[0x2d] = 0x58;
    3.11 +    pci_conf[0x2e] = 0x01; /* subsystem device */
    3.12 +    pci_conf[0x2f] = 0x00;
    3.13  
    3.14      s = &d->rtl8139;
    3.15