From 88e21f9485f0a41603f0af3483ff3f11c95979ab Mon Sep 17 00:00:00 2001 From: John Snow Date: Fri, 22 May 2015 14:13:43 -0400 Subject: qtest/ahci: add migrate dma test Write to one guest, migrate, and then read from the other. adjust ahci_io to clear any buffers it creates, so that we can use ahci_io safely on both guests knowing we are using empty buffers and not accidentally re-using data. Signed-off-by: John Snow Reviewed-by: Kevin Wolf Message-id: 1430417242-11859-7-git-send-email-jsnow@redhat.com --- tests/libqos/ahci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/libqos') diff --git a/tests/libqos/ahci.c b/tests/libqos/ahci.c index 8c8fd8967d..95bfb3dac8 100644 --- a/tests/libqos/ahci.c +++ b/tests/libqos/ahci.c @@ -650,6 +650,7 @@ void ahci_io(AHCIQState *ahci, uint8_t port, uint8_t ide_cmd, g_assert(props); ptr = ahci_alloc(ahci, bufsize); g_assert(ptr); + qmemset(ptr, 0x00, bufsize); if (props->write) { memwrite(ptr, buffer, bufsize); -- cgit v1.2.3