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

2016-10-19 Thread Laurent Vivier
On 19/10/2016 14:25, 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 returned by qpci_

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

2016-10-19 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