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-changelog

[Xen-changelog] [xen-unstable] libxl: add useful xc flags in the xl_domi

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxl: add useful xc flags in the xl_dominfo structure
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Dec 2009 05:40:17 -0800
Delivery-date: Wed, 30 Dec 2009 05:42:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1262177077 0
# Node ID 49d0c3ff79433f687a2faffd950317d9f91a1c39
# Parent  bb828aacf968b763b3ed99c20a191be04e7a63b4
libxl: add useful xc flags in the xl_dominfo structure

Signed-off-by: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
---
 tools/libxl/libxl.c |    8 ++++++++
 tools/libxl/libxl.h |    3 +++
 2 files changed, 11 insertions(+)

diff -r bb828aacf968 -r 49d0c3ff7943 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Wed Dec 30 12:43:57 2009 +0000
+++ b/tools/libxl/libxl.c       Wed Dec 30 12:44:37 2009 +0000
@@ -304,6 +304,14 @@ redo:
         }
         memcpy(&(ptr[index].uuid), info[i].handle, 
sizeof(xen_domain_handle_t));
         ptr[index].domid = info[i].domain;
+
+        if (info[i].flags & XEN_DOMINF_dying)
+            ptr[index].dying = 1;
+        else if (info[i].flags & XEN_DOMINF_paused)
+            ptr[index].paused = 1;
+        else if (info[i].flags & XEN_DOMINF_blocked || info[i].flags & 
XEN_DOMINF_running)
+            ptr[index].running = 1;
+
         first_domain = info[i].domain + 1;
         index++;
     }
diff -r bb828aacf968 -r 49d0c3ff7943 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h       Wed Dec 30 12:43:57 2009 +0000
+++ b/tools/libxl/libxl.h       Wed Dec 30 12:44:37 2009 +0000
@@ -28,6 +28,9 @@ struct libxl_dominfo {
 struct libxl_dominfo {
     xen_uuid_t uuid;
     uint32_t domid;
+    uint8_t dying:1;
+    uint8_t paused:1;
+    uint8_t running:1;
 };
 
 struct libxl_ctx {

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxl: add useful xc flags in the xl_dominfo structure, Xen patchbot-unstable <=