From: Jim Fehlig Date: Thu, 12 Aug 2010 17:15:44 +0000 (-0600) Subject: Add actions to virDomainLifecycle enum X-Git-Tag: v0.8.4~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9c10268e14b5f6a8a405813406964ccade67fcb;p=thirdparty%2Flibvirt.git Add actions to virDomainLifecycle enum Xen supports on_crash actions coredump-{destroy,restart}. libvirt cannot parse config returned by xend that contains either of these actions xen52 # xm li -l test | grep on_crash (on_crash coredump-restart) xen52 # virsh dumpxml test error: internal error unknown lifecycle type coredump-restart This patch adds a new virDomainLifecycleCrash enum and appends the new options to existing destroy, restart, preserve, and rename-restart options. --- diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index f9a153bd64..5e56dae306 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -366,6 +366,21 @@ a new name +

+ on_crash supports these additional + actions since 0.8.4. +

+ +
+
coredump-destroy
+
The crashed domain's core will be dumped, and then the + domain will be terminated completely and all resources + released
+
coredump-restart
+
The crashed domain's core will be dumped, and then the + domain will be restarted with the same configuration
+
+

Hypervisor features

diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng index 1e42827b17..ccb8cf39a4 100644 --- a/docs/schemas/domain.rng +++ b/docs/schemas/domain.rng @@ -1177,7 +1177,7 @@ - + @@ -1198,6 +1198,29 @@ rename-restart + + + + destroy + restart + preserve + rename-restart + coredump-destroy + coredump-restart + +