]> git.proxmox.com Git - mirror_qemu.git/commit - hw/spapr_pci.c
PPC: Pseries: Check for PCI boundaries
authorAlexander Graf <agraf@suse.de>
Wed, 18 Jan 2012 15:42:09 +0000 (16:42 +0100)
committerAlexander Graf <agraf@suse.de>
Sat, 21 Jan 2012 04:17:02 +0000 (05:17 +0100)
commit88045ac55592cacc92567aa46cb6917854bf7241
tree23cf8dd5854fb1a5b231453ec1960ff7a77cb44b
parent0a6eec6bbf0afc253bd4253902bd65226914cb6b
PPC: Pseries: Check for PCI boundaries

We call pci_host_config_{read,write}_common() which perform PCI config
accesses. However they don't do all limit checking the way we expect
it to.

So let's introduce a small wrapper around them, making them behave the
way we would without touching generic code.

This patch is based on a patch by David Gibson which put this logic into
the generic code.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr_pci.c