static void virtio_serial_hotplug(void) { global_qtest = qtest_initf("-device virtio-serial-ccw"); qtest_qmp_device_add("virtserialport", "hp-port", "{}"); qtest_qmp_device_del("hp-port"); qtest_end(); }
static void virtio_scsi_hotplug(void) { global_qtest = qtest_initf("-drive if=none,id=drv0,file=null-co://,format=raw " "-drive if=none,id=drv1,file=null-co://,format=raw " "-device virtio-scsi-ccw " "-device scsi-hd,drive=drv0"); qtest_qmp_device_add("scsi-hd", "scsihd", "{'drive': 'drv1'}"); qtest_qmp_device_del("scsihd"); qtest_end(); }
static void hotplug(void) { qtest_qmp_device_add("virtserialport", "hp-port", NULL); qtest_qmp_device_del("hp-port"); }
static void hotplug(void *obj, void *data, QGuestAllocator *alloc) { qtest_qmp_device_add("scsi-hd", "scsihd", "{'drive': 'drv1'}"); qtest_qmp_device_del("scsihd"); }