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_
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(+)