On Wed, Jan 18, 2012 at 07:28:33PM +0200, Michael S. Tsirkin wrote:
> On Wed, Jan 18, 2012 at 05:24:50PM +0100, Alexander Graf wrote:
> > 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 <da...@gibson.dropbear.id.au>
> > Signed-off-by: Alexander Graf <ag...@suse.de>
> 
> Nod. Looks like a sensible way to fix pseries without
> bothering about breaking other arches.

Yeah.  I still think the bounds check should be done in common code,
but I'll make up another patch to push it there later.

Apologies for earlier comments on the matter, I've had a very
frustrating month :/

-- 
David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!
http://www.ozlabs.org/~dgibson

Reply via email to