diff options
author | Konrad Rzeszutek Wilk | 2015-07-08 21:58:41 +0200 |
---|---|---|
committer | Stefano Stabellini | 2015-09-10 18:47:28 +0200 |
commit | cae99f1d779a6e2c8721ce2dd80bafdbf0abe7a0 (patch) | |
tree | db6f9a739a46021f8b8c5e17c05efc05aa4125ad /hw/xen/xen_pt.c | |
parent | xen/pt: Check for return values for xen_host_pci_[get|set] in init (diff) | |
download | qemu-cae99f1d779a6e2c8721ce2dd80bafdbf0abe7a0.tar.gz qemu-cae99f1d779a6e2c8721ce2dd80bafdbf0abe7a0.tar.xz qemu-cae99f1d779a6e2c8721ce2dd80bafdbf0abe7a0.zip |
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/xen/xen_pt.c')
-rw-r--r-- | hw/xen/xen_pt.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c index c07609c04c..2b54f52707 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; |