summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2015-07-08 15:58:41 -0400
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2015-09-10 16:47:28 +0000
commitcae99f1d779a6e2c8721ce2dd80bafdbf0abe7a0 (patch)
treedb6f9a739a46021f8b8c5e17c05efc05aa4125ad /hw
parent3d3697f2576424a2c0830a7b2e7c94c79dea9b50 (diff)
downloadhqemu-cae99f1d779a6e2c8721ce2dd80bafdbf0abe7a0.zip
hqemu-cae99f1d779a6e2c8721ce2dd80bafdbf0abe7a0.tar.gz
xen/pt: Don't slurp wholesale the PCI configuration registers
Instead we have the emulation registers ->init functions which consult the host values to see what the initial value should be and they are responsible for populating the dev.config. Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/xen/xen_pt.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c
index c07609c..2b54f52 100644
--- a/hw/xen/xen_pt.c
+++ b/hw/xen/xen_pt.c
@@ -790,12 +790,7 @@ static int xen_pt_initfn(PCIDevice *d)
}
/* Initialize virtualized PCI configuration (Extended 256 Bytes) */
- rc = xen_host_pci_get_block(&s->real_device, 0, d->config,
- PCI_CONFIG_SPACE_SIZE);
- if (rc < 0) {
- XEN_PT_ERR(d,"Could not read PCI_CONFIG space! (rc:%d)\n", rc);
- goto err_out;
- }
+ memset(d->config, 0, PCI_CONFIG_SPACE_SIZE);
s->memory_listener = xen_pt_memory_listener;
s->io_listener = xen_pt_io_listener;
OpenPOWER on IntegriCloud