From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1vaq-0004SL-Qw for qemu-devel@nongnu.org; Fri, 09 Sep 2011 03:33:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1vap-0004Yc-SZ for qemu-devel@nongnu.org; Fri, 09 Sep 2011 03:33:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1vap-0004YW-Lf for qemu-devel@nongnu.org; Fri, 09 Sep 2011 03:33:43 -0400 Date: Fri, 9 Sep 2011 10:34:39 +0300 From: "Michael S. Tsirkin" Message-ID: <20110909073439.GC5593@redhat.com> References: <20110704094358.GA10960@redhat.com> <4E4B7DE1.3050405@cn.fujitsu.com> <4E4C8577.5000608@cn.fujitsu.com> <4E4D2C9F.6040805@redhat.com> <4E4DF0A0.6000108@cn.fujitsu.com> <4E4E808C.4000205@redhat.com> <4E69B58C.2010606@cn.fujitsu.com> <20110909071237.GA5593@redhat.com> <4E69BF46.2060409@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E69BF46.2060409@cn.fujitsu.com> Subject: Re: [Qemu-devel] [PATCH] pci: add standard bridge device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang Cc: Kevin Wolf , Isaku Yamahata , Avi Kivity , qemu-devel@nongnu.org On Fri, Sep 09, 2011 at 03:24:54PM +0800, Wen Congyang wrote: > At 09/09/2011 03:12 PM, Michael S. Tsirkin Write: > > On Fri, Sep 09, 2011 at 02:43:24PM +0800, Wen Congyang wrote: > >>> However, filtering doesn't work. You could put a BAR outside the > >>> filtered area and it would be visible to the guest. > >>> > >> > >> I test it on real hardware. If I put a BAR outside the filterer area, and > >> then run 'lspci -vv', the BAR does not change: > > > > ... > > > > > >> The BAR1 is feafbc00, and it is in the bus2's range. > >> I map the BAR(mmap /sys/bus/pci/devices/0000\:03\:01.0/resource1), and find > >> I can read and write the memory. > >> > >> Thanks > >> Wen Congyang > > > > So, it's as expected. Nothing seems wrong with this picture. But > > this is not the test that Avi suggested. > > Sorry for my misunderstand. > My question is: How to put a BAR outside the filterer area, Write into address/limit registers on the bridge to make them not cover the BAR behind. > and how to know > whether it is visible? > > Thanks > Wen Congyang Read the BAR memory as you did. -- MST