aboutsummaryrefslogtreecommitdiff
path: root/tests/e1000e-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/e1000e-test.c')
-rw-r--r--tests/e1000e-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/e1000e-test.c b/tests/e1000e-test.c
index 77ba809..6a946c0 100644
--- a/tests/e1000e-test.c
+++ b/tests/e1000e-test.c
@@ -231,8 +231,10 @@ static void test_e1000e_multiple_transfers(void *obj, void *data,
static void test_e1000e_hotplug(void *obj, void *data, QGuestAllocator * alloc)
{
+ QTestState *qts = global_qtest; /* TODO: get rid of global_qtest here */
+
qtest_qmp_device_add("e1000e", "e1000e_net", "{'addr': '0x06'}");
- qpci_unplug_acpi_device_test("e1000e_net", 0x06);
+ qpci_unplug_acpi_device_test(qts, "e1000e_net", 0x06);
}
static void data_test_clear(void *sockets)