This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [PATCH] xl: log domain suspension

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xl: log domain suspension
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Fri, 15 Jul 2011 14:12:00 +0100
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Fri, 15 Jul 2011 06:12:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.6.4
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1310735501 -3600
# Node ID b4959a9105ef33b4440ec02b95e6ee2f5b26da1d
# Parent  b719c752f2431c76e9f1e366e7c2947e6504d24a
xl: log domain suspension.

Other shutdown reasons all end up saying something useful while
suspend does not. With this patch the log looks like:
  Domain 670 is dead
  Domain has suspended.
  Done. Exiting now

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r b719c752f243 -r b4959a9105ef tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Fri Jul 15 14:06:46 2011 +0100
+++ b/tools/libxl/xl_cmdimpl.c  Fri Jul 15 14:11:41 2011 +0100
@@ -1104,6 +1104,7 @@ static int handle_domain_death(libxl_ctx
         action = d_config->on_reboot;
     case SHUTDOWN_suspend:
+        LOG("Domain has suspended.");
         return 0;
     case SHUTDOWN_crash:
         action = d_config->on_crash;

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xl: log domain suspension, Ian Campbell <=