Re: [Qemu-devel] [PATCHv5 10/12] tests: Use qpci_mem{read, write} in ivshmem-test

2016-10-25 Thread Greg Kurz
On Mon, 24 Oct 2016 15:59:59 +1100 David Gibson wrote: > ivshmem implements a block of shared memory in a PCI BAR. Currently our > test case accesses this using qtest_mem{read,write}. However, deducing > the correct addresses for these requires making assumptions about the > internel format ret

[Qemu-devel] [PATCHv5 10/12] tests: Use qpci_mem{read, write} in ivshmem-test

2016-10-23 Thread David Gibson
ivshmem implements a block of shared memory in a PCI BAR. Currently our test case accesses this using qtest_mem{read,write}. However, deducing the correct addresses for these requires making assumptions about the internel format returned by qpci_iomap(), along with some ugly casts. This patch ch