From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0812-0006TJ-Jc for qemu-devel@nongnu.org; Sun, 04 Sep 2011 04:25:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0811-00037g-FZ for qemu-devel@nongnu.org; Sun, 04 Sep 2011 04:25:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0811-00037Z-7I for qemu-devel@nongnu.org; Sun, 04 Sep 2011 04:25:19 -0400 Message-ID: <4E6335E4.6040705@redhat.com> Date: Sun, 04 Sep 2011 11:25:08 +0300 From: Avi Kivity MIME-Version: 1.0 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> <4E51C945.6070103@cn.fujitsu.com> <4E51F5FD.4030905@redhat.com> <4E6045E0.2090701@cn.fujitsu.com> In-Reply-To: <4E6045E0.2090701@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 , qemu-devel@nongnu.org, "Michael S. Tsirkin" On 09/02/2011 05:56 AM, Wen Congyang wrote: > > > > You could use something like kvm-unit-tests.git to write a simple test > > that sets up a BAR (say from hw/ivshmem.c), writes and reads to see that > > it is visible, programs the bridge to filter part of the BAR out, then > > writes and reads again to verify that the correct part is filtered out. > > I am testing ivshmem now. But I do not know how to access the memory > specified in the BAR. > > Use the uio driver - http://docs.blackfin.uclinux.org/kernel/generated/uio-howto/. You just mmap() the BAR from userspace and play with it. -- error compiling committee.c: too many arguments to function