diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 2b2d531441..40fd8b9d2d 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -8663,7 +8663,8 @@ qemuDomainAttachDeviceLiveAndConfig(virDomainObjPtr vm, driver->xmlopt, parse_flags))) goto cleanup; - if (virDomainDeviceValidateAliasForHotplug(vm, devLive, flags) < 0) + if (virDomainDeviceValidateAliasForHotplug(vm, devLive, + VIR_DOMAIN_AFFECT_LIVE) < 0) goto cleanup; if (virDomainDefCompatibleDevice(vm->def, devLive, NULL,