From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ1yR-0004lK-DO for qemu-devel@nongnu.org; Mon, 09 Sep 2013 09:57:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJ1yK-00017b-MQ for qemu-devel@nongnu.org; Mon, 09 Sep 2013 09:57:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ1yK-00017M-EQ for qemu-devel@nongnu.org; Mon, 09 Sep 2013 09:57:44 -0400 Date: Mon, 9 Sep 2013 16:59:48 +0300 From: "Michael S. Tsirkin" Message-ID: <20130909135948.GC1052@redhat.com> References: <1378725114-13197-1-git-send-email-marcel.a@redhat.com> <1378725114-13197-3-git-send-email-marcel.a@redhat.com> <20130909114029.GB31476@redhat.com> <1378728715.3072.14.camel@localhost.localdomain> <20130909122307.GB583@redhat.com> <1378730629.3072.32.camel@localhost.localdomain> <20130909125914.GA1052@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH RFC v2 2/2] hw/pci: handle unassigned pci addresses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Anthony Liguori , Jan Kiszka , QEMU Developers , Marcel Apfelbaum On Mon, Sep 09, 2013 at 02:02:47PM +0100, Peter Maydell wrote: > On 9 September 2013 13:59, Michael S. Tsirkin wrote: > > On Mon, Sep 09, 2013 at 01:52:11PM +0100, Peter Maydell wrote: > >> It would be conceptually nicer not to treat host bridges as > >> a special case but instead to just report the abort back > >> to whatever the PCI master was (which might be a device > >> doing DMA). That might be a lot of effort though. > > > Yes. As a shortcut, what I suggest is registering the > > device that wants to be notified of master aborts with > > the bus. > > Can you just pick the device which is (a subclass of) > TYPE_PCI_HOST_BRIDGE, or do we have host bridges which > aren't using that class? > > -- PMM Not anymore I think. So yes, I think this will work.