aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-10-19 16:32:11 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-10-19 16:32:11 +0100
commit3084f41064a2c882bda1cf4f867b5227dc87302b (patch)
tree16464a66dda32ba788aeabe8a902823a2caabfbe /tools
parent22323d591191741ab03e9075bf6fd96c48e0773b (diff)
downloadxen-3084f41064a2c882bda1cf4f867b5227dc87302b.tar.gz
xen-3084f41064a2c882bda1cf4f867b5227dc87302b.tar.bz2
xen-3084f41064a2c882bda1cf4f867b5227dc87302b.zip
[HVM] Windows HCT requires non-zero subvendor details in platform PCI device.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/ioemu/hw/xen_platform.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/ioemu/hw/xen_platform.c b/tools/ioemu/hw/xen_platform.c
index 89072925c2..a0e9f1e397 100644
--- a/tools/ioemu/hw/xen_platform.c
+++ b/tools/ioemu/hw/xen_platform.c
@@ -97,7 +97,8 @@ struct pci_config_header {
uint8_t bist; /* Built in self test */
uint32_t base_address_regs[6];
uint32_t reserved1;
- uint32_t reserved2;
+ uint16_t subsystem_vendor_id;
+ uint16_t subsystem_id;
uint32_t rom_addr;
uint32_t reserved3;
uint32_t reserved4;
@@ -126,6 +127,11 @@ void pci_xen_platform_init(PCIBus *bus)
pch->header_type = 0;
pch->interrupt_pin = 1;
+ /* Microsoft WHQL requires non-zero subsystem IDs. */
+ /* http://www.pcisig.com/reflector/msg02205.html. */
+ pch->subsystem_vendor_id = pch->vendor_id; /* Duplicate vendor id. */
+ pch->subsystem_id = 0x0001; /* Hardcode sub-id as 1. */
+
pci_register_io_region(d, 0, 0x100, PCI_ADDRESS_SPACE_IO,
platform_ioport_map);