On Tue, 2013-09-24 at 20:21 +0900, Peter Maydell wrote:
> On 24 September 2013 20:17, Marcel Apfelbaum <marce...@redhat.com> wrote:
> > I was suggesting an algorithm to find the MA device in order
> > to set MA Received Bit in its Status(Sec_Status) register.
> >
> > The algorithm was to traverse the PCI buses for finding the
> > MA device using the transaction address.
> 
> Yes. My point is that if you have an algorithm phrased as
> "dynamically traverse some hierarchy using an address
> to find something" then you can rephrase it as "statically
> construct a hierarchy of memory regions and then just
> query it with the address".
I got it, thanks.
You mean that instead of traveling on the PCI buses, I could
query the PCI address space and find the MemoryRegion corresponding
with the address, then look for the owner.

Thank you, I'll try it.
Marcel
  
> 
> -- PMM
> 




Reply via email to