[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Export debugger attached state to xc API.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1183729375 -3600
# Node ID 05331a29f3cb1617746dbf0fbea1089a79111bac
# Parent  3196b63a7301b264d45b82ac347b1bef854680b3
Export debugger attached state to xc API.
Signed-off-by: Tristan Gingold <tgingold@xxxxxxx>
---
 tools/libxc/xc_domain.c     |    1 +
 tools/libxc/xenctrl.h       |    2 +-
 xen/common/domctl.c         |    1 +
 xen/include/public/domctl.h |    3 +++
 4 files changed, 6 insertions(+), 1 deletion(-)

diff -r 3196b63a7301 -r 05331a29f3cb tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c   Fri Jul 06 14:41:05 2007 +0100
+++ b/tools/libxc/xc_domain.c   Fri Jul 06 14:42:55 2007 +0100
@@ -181,6 +181,7 @@ int xc_domain_getinfo(int xc_handle,
         info->blocked  = !!(domctl.u.getdomaininfo.flags&XEN_DOMINF_blocked);
         info->running  = !!(domctl.u.getdomaininfo.flags&XEN_DOMINF_running);
         info->hvm      = !!(domctl.u.getdomaininfo.flags&XEN_DOMINF_hvm_guest);
+        info->debugged = !!(domctl.u.getdomaininfo.flags&XEN_DOMINF_debugged);
 
         info->shutdown_reason =
             (domctl.u.getdomaininfo.flags>>XEN_DOMINF_shutdownshift) &
diff -r 3196b63a7301 -r 05331a29f3cb tools/libxc/xenctrl.h
--- a/tools/libxc/xenctrl.h     Fri Jul 06 14:41:05 2007 +0100
+++ b/tools/libxc/xenctrl.h     Fri Jul 06 14:42:55 2007 +0100
@@ -153,7 +153,7 @@ typedef struct xc_dominfo {
     uint32_t      ssidref;
     unsigned int  dying:1, crashed:1, shutdown:1,
                   paused:1, blocked:1, running:1,
-                  hvm:1;
+                  hvm:1, debugged:1;
     unsigned int  shutdown_reason; /* only meaningful if shutdown==1 */
     unsigned long nr_pages;
     unsigned long shared_info_frame;
diff -r 3196b63a7301 -r 05331a29f3cb xen/common/domctl.c
--- a/xen/common/domctl.c       Fri Jul 06 14:41:05 2007 +0100
+++ b/xen/common/domctl.c       Fri Jul 06 14:42:55 2007 +0100
@@ -117,6 +117,7 @@ void getdomaininfo(struct domain *d, str
         (d->is_dying                ? XEN_DOMINF_dying    : 0) |
         (d->is_shut_down            ? XEN_DOMINF_shutdown : 0) |
         (d->is_paused_by_controller ? XEN_DOMINF_paused   : 0) |
+        (d->debugger_attached       ? XEN_DOMINF_debugged : 0) |
         d->shutdown_code << XEN_DOMINF_shutdownshift;
 
     if ( is_hvm_domain(d) )
diff -r 3196b63a7301 -r 05331a29f3cb xen/include/public/domctl.h
--- a/xen/include/public/domctl.h       Fri Jul 06 14:41:05 2007 +0100
+++ b/xen/include/public/domctl.h       Fri Jul 06 14:42:55 2007 +0100
@@ -85,6 +85,9 @@ struct xen_domctl_getdomaininfo {
  /* Domain is currently running.            */
 #define _XEN_DOMINF_running   5
 #define XEN_DOMINF_running    (1U<<_XEN_DOMINF_running)
+ /* Being debugged.  */
+#define _XEN_DOMINF_debugged  6
+#define XEN_DOMINF_debugged   (1U<<_XEN_DOMINF_debugged)
  /* CPU to which this domain is bound.      */
 #define XEN_DOMINF_cpumask      255
 #define XEN_DOMINF_cpushift       8

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.