Re: [Qemu-devel] [PATCH 19/19] qtest/ahci: Adding simple dma read-write test

2015-02-02 Thread Paolo Bonzini
On 30/01/2015 19:42, John Snow wrote: > +memwrite(ptr, tx, bufsize); > + > +/* Write this buffer to disk, then read it back to the DMA buffer. */ > +ahci_guest_io(ahci, px, CMD_WRITE_DMA, ptr, bufsize); I would qmemset the buffer here. Paolo > +ahci_guest_io(ahci, px, CMD_READ_

[Qemu-devel] [PATCH 19/19] qtest/ahci: Adding simple dma read-write test

2015-01-30 Thread John Snow
Adds a test case for AHCI wherein we write a 4K block of a changing pattern to sector 0, then read back that 4K and compare the transmit and receive buffers. Signed-off-by: John Snow --- tests/ahci-test.c | 52 1 file changed, 52 insertions(+)