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