WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] libxl: do not log lack of guest support for suspend

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] libxl: do not log lack of guest support for suspend event channel
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Thu, 02 Sep 2010 17:26:19 +0100
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Thu, 02 Sep 2010 09:26:48 -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
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1283444777 -3600
# Node ID ff636f6a2fcb846ebd9002b4f339d2c44a45c1b2
# Parent  4f93c55a488c7cdde0bdcf2235f8de1b7c80a1af
libxl: do not log lack of guest support for suspend event channel

Implementation of the suspend event channel is completely optional for
a guest so do not log this normal occurrence.

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

diff -r 4f93c55a488c -r ff636f6a2fcb tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c   Thu Sep 02 17:14:48 2010 +0100
+++ b/tools/libxl/libxl_dom.c   Thu Sep 02 17:26:17 2010 +0100
@@ -378,9 +378,7 @@ int core_suspend(libxl_ctx *ctx, uint32_
     if (si.xce > 0) {
         port = xs_suspend_evtchn_port(si.domid);
 
-        if (port < 0) {
-            XL_LOG(ctx, XL_LOG_WARNING, "Failed to get the suspend evtchn 
port");
-        } else {
+        if (port >= 0) {
             si.suspend_eventchn = xc_suspend_evtchn_init(ctx->xch, si.xce, 
si.domid, port);
 
             if (si.suspend_eventchn < 0)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] libxl: do not log lack of guest support for suspend event channel, Ian Campbell <=