mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Introduce a new flag for controlling shutdown/reboot
Add a new flag to virDomain{Reboot,Shutdown}FlagValues to allow
shutting down and rebooting a domain via the Xen paravirt control
interface.
This commit is contained in:
1 parent
fff74b275e
commit
b98bf81151
3 files changed
+16
-8
No files matched your search
@@ -1652,6 +1652,7 @@ typedef enum {
|
||||
VIR_DOMAIN_SHUTDOWN_GUEST_AGENT = (1 << 1), /* Use guest agent */
|
||||
VIR_DOMAIN_SHUTDOWN_INITCTL = (1 << 2), /* Use initctl */
|
||||
VIR_DOMAIN_SHUTDOWN_SIGNAL = (1 << 3), /* Send a signal */
|
||||
VIR_DOMAIN_SHUTDOWN_PARAVIRT = (1 << 4), /* Use paravirt guest control */
|
||||
} virDomainShutdownFlagValues;
|
||||
|
||||
int virDomainShutdown (virDomainPtr domain);
|
||||
@@ -1664,6 +1665,7 @@ typedef enum {
|
||||
VIR_DOMAIN_REBOOT_GUEST_AGENT = (1 << 1), /* Use guest agent */
|
||||
VIR_DOMAIN_REBOOT_INITCTL = (1 << 2), /* Use initctl */
|
||||
VIR_DOMAIN_REBOOT_SIGNAL = (1 << 3), /* Send a signal */
|
||||
VIR_DOMAIN_REBOOT_PARAVIRT = (1 << 4), /* Use paravirt guest control */
|
||||
} virDomainRebootFlagValues;
|
||||
|
||||
int virDomainReboot (virDomainPtr domain,
|
||||
|
||||
Reference in new issue
Block a user