From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3ebf-0005cB-Ad for qemu-devel@nongnu.org; Tue, 13 Sep 2011 21:49:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3ebd-0007gX-V5 for qemu-devel@nongnu.org; Tue, 13 Sep 2011 21:49:43 -0400 Received: from [222.73.24.84] (port=54678 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3ebd-0007Zm-AD for qemu-devel@nongnu.org; Tue, 13 Sep 2011 21:49:41 -0400 Message-ID: <4E7007D6.8030102@cn.fujitsu.com> Date: Wed, 14 Sep 2011 09:48:06 +0800 From: Wen Congyang MIME-Version: 1.0 References: <20110904181313.GA14020@redhat.com> In-Reply-To: <20110904181313.GA14020@redhat.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [PATCH] pci: implement bridge filtering List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Kevin Wolf , Isaku Yamahata , qemu-devel@nongnu.org At 09/05/2011 02:13 AM, Michael S. Tsirkin Write: > Support bridge filtering on top of the memory > API as suggested by Avi Kivity: > > Create a memory region for the bridge's address space. This region is > not directly added to system_memory or its descendants. Devices under > the bridge see this region as its pci_address_space(). The region is > as large as the entire address space - it does not take into account > any windows. > > For each of the three windows (pref, non-pref, vga), create an alias > with the appropriate start and size. Map the alias into the bridge's > parent's pci_address_space(), as subregions. > > Signed-off-by: Michael S. Tsirkin > --- > > The below seems to work fine for me so I applied this. > Still need to test bridge filtering, any help with this > appreciated. > I test bridge filtering, and the BAR still can be visible on guest even if I change the memory region. Thanks Wen Congyang