mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 04:55:18 +00:00
qemu: cold-unplug of watchdog
https://bugzilla.redhat.com/show_bug.cgi?id=1447169 Again, no special here. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
50c1dbafae
commit
607a00d170
@ -539,6 +539,7 @@ virDomainVirtTypeFromString;
|
||||
virDomainVirtTypeToString;
|
||||
virDomainWatchdogActionTypeFromString;
|
||||
virDomainWatchdogActionTypeToString;
|
||||
virDomainWatchdogDefFree;
|
||||
virDomainWatchdogModelTypeFromString;
|
||||
virDomainWatchdogModelTypeToString;
|
||||
virDomainXMLOptionGetNamespace;
|
||||
|
@ -8169,10 +8169,19 @@ qemuDomainDetachDeviceConfig(virDomainDefPtr vmdef,
|
||||
break;
|
||||
|
||||
|
||||
case VIR_DOMAIN_DEVICE_WATCHDOG:
|
||||
if (!vmdef->watchdog) {
|
||||
virReportError(VIR_ERR_OPERATION_FAILED, "%s",
|
||||
_("domain has no watchdog"));
|
||||
return -1;
|
||||
}
|
||||
virDomainWatchdogDefFree(vmdef->watchdog);
|
||||
vmdef->watchdog = NULL;
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_DEVICE_INPUT:
|
||||
case VIR_DOMAIN_DEVICE_SOUND:
|
||||
case VIR_DOMAIN_DEVICE_VIDEO:
|
||||
case VIR_DOMAIN_DEVICE_WATCHDOG:
|
||||
case VIR_DOMAIN_DEVICE_GRAPHICS:
|
||||
case VIR_DOMAIN_DEVICE_HUB:
|
||||
case VIR_DOMAIN_DEVICE_SMARTCARD:
|
||||
|
Loading…
x
Reference in New Issue
Block a user