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_DMA, ptr, bufsize); > + > + /*** Read back the Data ***/ > + memread(ptr, rx, bufsize); > + g_assert_cmphex(memcmp(tx, rx, bufsize), ==, 0);