aboutsummaryrefslogtreecommitdiff
path: root/tests/libqos
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2015-05-22 14:13:43 -0400
committerJohn Snow <jsnow@redhat.com>2015-05-22 15:58:22 -0400
commit88e21f9485f0a41603f0af3483ff3f11c95979ab (patch)
tree113b04dd04a79d5b7cd849a2606105e51bfe4144 /tests/libqos
parent278128ab06c36341edb2c8b0bfcfd92760f4db52 (diff)
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 <jsnow@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-id: 1430417242-11859-7-git-send-email-jsnow@redhat.com
Diffstat (limited to 'tests/libqos')
-rw-r--r--tests/libqos/ahci.c1
1 files changed, 1 insertions, 0 deletions
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);