From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0m10-00040e-GU for qemu-devel@nongnu.org; Mon, 05 Sep 2011 23:07:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0m0z-0002UV-FM for qemu-devel@nongnu.org; Mon, 05 Sep 2011 23:07:58 -0400 Received: from [222.73.24.84] (port=62190 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0m0y-0002Tb-UT for qemu-devel@nongnu.org; Mon, 05 Sep 2011 23:07:57 -0400 Message-ID: <4E658E2F.6050302@cn.fujitsu.com> Date: Tue, 06 Sep 2011 11:06:23 +0800 From: Wen Congyang 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> <4E6335E4.6040705@redhat.com> In-Reply-To: <4E6335E4.6040705@redhat.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [PATCH] pci: add standard bridge device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Kevin Wolf , Isaku Yamahata , qemu-devel@nongnu.org, "Michael S. Tsirkin" At 09/04/2011 04:25 PM, Avi Kivity Write: > 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. When I try to bind ivshmem to uio_pci_generic, I get the following messages: uio_pci_generic 0000:01:01.0: No IRQ assigned to device: no support for interrupts? Thanks Wen Congyang