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