From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOcEZ-0002gU-3Q for qemu-devel@nongnu.org; Tue, 24 Sep 2013 19:41:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOcES-0005eY-9i for qemu-devel@nongnu.org; Tue, 24 Sep 2013 19:41:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOcES-0005eT-0E for qemu-devel@nongnu.org; Tue, 24 Sep 2013 19:41:28 -0400 Date: Wed, 25 Sep 2013 02:43:40 +0300 From: "Michael S. Tsirkin" Message-ID: <20130924234340.GA3892@redhat.com> References: <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> <20130924154111.GA21888@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 , Marcel Apfelbaum On Wed, Sep 25, 2013 at 08:36:09AM +0900, Peter Maydell wrote: > On 25 September 2013 00:41, Michael S. Tsirkin wrote: > > On Tue, Sep 24, 2013 at 08:21:50PM +0900, Peter Maydell wrote: > > Right. You might be able to use MR hierarchy to find the last bridge to > > claim transaction. That should to be enough for PCI, for express you > > then need to find all devices on the path between bus master and the > > last bridge. For this task, memory subsystem can't be used I think. > > Mmm, if you need to do something for every device on the > path then that's more awkward with MRs. > > > Whether the result will be cleaner than open-coding it all, I don't > > really know. > > Yes. I was just suggesting it was worth considering at least to > the point of being able to make a decision about which design > is likely to be cleaner. If PCI express needs the dynamic walk > of the path then it's probably better to handle plain PCI that > way too for consistency. > > -- PMM It would seem so. The express spec is kind of murky about this but experiments with real hardware seem to confirm this. -- MST