[Libvirt-cim] [PATCH] For pause, reboot, and enable add support for guests in the NOSTATE state
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Thu Jun 26 16:28:42 UTC 2008
> @@ -758,6 +759,7 @@
> switch (info->state) {
> case VIR_DOMAIN_RUNNING:
> case VIR_DOMAIN_BLOCKED:
> + case VIR_DOMAIN_NOSTATE:
> CU_DEBUG("Reboot domain");
> ret = virDomainReboot(dom, 0);
> break;
Looking at the VSP, it looks like we're supposed to support reboot from
the following states: Active, Paused, Suspended.
If there aren't any objections, I'll rework this patch to support that.
> @@ -783,6 +785,7 @@
> switch (info->state) {
> case VIR_DOMAIN_RUNNING:
> case VIR_DOMAIN_BLOCKED:
> + case VIR_DOMAIN_NOSTATE:
> CU_DEBUG("Reset domain");
> ret = domain_reset(dom);
> break;
Same story with reset. We should support Active, Paused, Suspended as
valid from states.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list