summaryrefslogtreecommitdiff
path: root/hw/pc_piix.c
diff options
context:
space:
mode:
authorSteven Smith <ssmith@xensource.com>2011-06-16 17:05:17 +0100
committerAlexander Graf <agraf@suse.de>2011-06-19 04:43:04 +0200
commit01195b7347e341a49fa554959882b26c666a3616 (patch)
treedca369ad82ed96e277891f240dc5f30b8e9deecf /hw/pc_piix.c
parentbf09551a6b2282a1c59bd8335c1ef6e58704de98 (diff)
downloadqemu-01195b7347e341a49fa554959882b26c666a3616.tar.gz
qemu-01195b7347e341a49fa554959882b26c666a3616.tar.bz2
qemu-01195b7347e341a49fa554959882b26c666a3616.zip
xen: Add the Xen platform pci device
Introduce a new emulated PCI device, specific to fully virtualized Xen guests. The device is necessary for PV on HVM drivers to work. Signed-off-by: Steven Smith <ssmith@xensource.com> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/pc_piix.c')
-rw-r--r--hw/pc_piix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index ba198de8c1..8dbeb0c8ab 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -136,6 +136,10 @@ static void pc_init1(ram_addr_t ram_size,
pc_vga_init(pci_enabled? pci_bus: NULL);
+ if (xen_enabled()) {
+ pci_create_simple(pci_bus, -1, "xen-platform");
+ }
+
/* init basic PC hardware */
pc_basic_device_init(isa_irq, &rtc_state, xen_enabled());