From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOQzj-0005Ni-4L for qemu-devel@nongnu.org; Tue, 24 Sep 2013 07:41:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOQzd-0007fg-4t for qemu-devel@nongnu.org; Tue, 24 Sep 2013 07:41:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOQzc-0007fX-TR for qemu-devel@nongnu.org; Tue, 24 Sep 2013 07:41:25 -0400 Message-ID: <1380022894.2050.107.camel@localhost.localdomain> From: Marcel Apfelbaum Date: Tue, 24 Sep 2013 14:41:34 +0300 In-Reply-To: References: <20130923112744.GC544@redhat.com> <1379939863.2050.35.camel@localhost.localdomain> <20130923134512.GD1278@redhat.com> <1379947418.2050.47.camel@localhost.localdomain> <20130923151014.GB2899@redhat.com> <1379958593.2050.58.camel@localhost.localdomain> <20130923184513.GB8717@redhat.com> <1380010039.2050.69.camel@localhost.localdomain> <20130924082936.GA18673@redhat.com> <1380012297.2050.78.camel@localhost.localdomain> <20130924085845.GA18980@redhat.com> <1380019471.2050.87.camel@localhost.localdomain> <1380021445.2050.99.camel@localhost.localdomain> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] hw/pci: completed master-abort emulation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Anthony Liguori , "Michael S. Tsirkin" On Tue, 2013-09-24 at 20:21 +0900, Peter Maydell wrote: > On 24 September 2013 20:17, Marcel Apfelbaum 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 >