mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +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;
|
virDomainVirtTypeToString;
|
||||||
virDomainWatchdogActionTypeFromString;
|
virDomainWatchdogActionTypeFromString;
|
||||||
virDomainWatchdogActionTypeToString;
|
virDomainWatchdogActionTypeToString;
|
||||||
|
virDomainWatchdogDefFree;
|
||||||
virDomainWatchdogModelTypeFromString;
|
virDomainWatchdogModelTypeFromString;
|
||||||
virDomainWatchdogModelTypeToString;
|
virDomainWatchdogModelTypeToString;
|
||||||
virDomainXMLOptionGetNamespace;
|
virDomainXMLOptionGetNamespace;
|
||||||
|
@ -8169,10 +8169,19 @@ qemuDomainDetachDeviceConfig(virDomainDefPtr vmdef,
|
|||||||
break;
|
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_INPUT:
|
||||||
case VIR_DOMAIN_DEVICE_SOUND:
|
case VIR_DOMAIN_DEVICE_SOUND:
|
||||||
case VIR_DOMAIN_DEVICE_VIDEO:
|
case VIR_DOMAIN_DEVICE_VIDEO:
|
||||||
case VIR_DOMAIN_DEVICE_WATCHDOG:
|
|
||||||
case VIR_DOMAIN_DEVICE_GRAPHICS:
|
case VIR_DOMAIN_DEVICE_GRAPHICS:
|
||||||
case VIR_DOMAIN_DEVICE_HUB:
|
case VIR_DOMAIN_DEVICE_HUB:
|
||||||
case VIR_DOMAIN_DEVICE_SMARTCARD:
|
case VIR_DOMAIN_DEVICE_SMARTCARD:
|
||||||
|
Loading…
Reference in New Issue
Block a user