Lines Matching full:qtest

18 static void system_reset(QTestState *qtest)  in system_reset()  argument
22 resp = qtest_qmp(qtest, "{'execute': 'system_reset'}"); in system_reset()
27 static void wait_device_deleted_event(QTestState *qtest, const char *id) in wait_device_deleted_event() argument
37 resp = qtest_qmp_eventwait_ref(qtest, "DEVICE_DELETED"); in wait_device_deleted_event()
53 static void process_device_remove(QTestState *qtest, const char *id) in process_device_remove() argument
60 qtest_qmp_device_del_send(qtest, id); in process_device_remove()
61 system_reset(qtest); in process_device_remove()
62 wait_device_deleted_event(qtest, id); in process_device_remove()
67 QTestState *qtest; in test_pci_unplug_request() local
80 qtest = qtest_initf("%s -device virtio-mouse-pci,id=dev0", in test_pci_unplug_request()
83 process_device_remove(qtest, "dev0"); in test_pci_unplug_request()
85 qtest_quit(qtest); in test_pci_unplug_request()
90 QTestState *qtest; in test_q35_pci_unplug_request() local
97 qtest = qtest_initf("-machine q35 " in test_q35_pci_unplug_request()
102 process_device_remove(qtest, "dev0"); in test_q35_pci_unplug_request()
104 qtest_quit(qtest); in test_q35_pci_unplug_request()
109 QTestState *qtest; in test_pci_unplug_json_request() local
122 qtest = qtest_initf( in test_pci_unplug_json_request()
126 process_device_remove(qtest, "dev0"); in test_pci_unplug_json_request()
128 qtest_quit(qtest); in test_pci_unplug_json_request()
133 QTestState *qtest; in test_q35_pci_unplug_json_request() local
150 qtest = qtest_initf("-machine q35 %s %s %s", port, bridge, device); in test_q35_pci_unplug_json_request()
152 process_device_remove(qtest, "dev0"); in test_q35_pci_unplug_json_request()
154 qtest_quit(qtest); in test_q35_pci_unplug_json_request()
159 QTestState *qtest; in test_ccw_unplug() local
166 qtest = qtest_initf("-device virtio-balloon-ccw,id=dev0"); in test_ccw_unplug()
168 qtest_qmp_device_del_send(qtest, "dev0"); in test_ccw_unplug()
169 wait_device_deleted_event(qtest, "dev0"); in test_ccw_unplug()
171 qtest_quit(qtest); in test_ccw_unplug()
176 QTestState *qtest; in test_spapr_cpu_unplug_request() local
178 qtest = qtest_initf("-cpu power9_v2.2 -smp 1,maxcpus=2 " in test_spapr_cpu_unplug_request()
182 process_device_remove(qtest, "dev0"); in test_spapr_cpu_unplug_request()
184 qtest_quit(qtest); in test_spapr_cpu_unplug_request()
189 QTestState *qtest; in test_spapr_memory_unplug_request() local
191 qtest = qtest_initf("-m 256M,slots=1,maxmem=768M " in test_spapr_memory_unplug_request()
196 process_device_remove(qtest, "dev0"); in test_spapr_memory_unplug_request()
198 qtest_quit(qtest); in test_spapr_memory_unplug_request()
203 QTestState *qtest; in test_spapr_phb_unplug_request() local
205 qtest = qtest_initf("-device spapr-pci-host-bridge,index=1,id=dev0"); in test_spapr_phb_unplug_request()
208 process_device_remove(qtest, "dev0"); in test_spapr_phb_unplug_request()
210 qtest_quit(qtest); in test_spapr_phb_unplug_request()