ia64/linux-2.6.18-xen.hg

changeset 676:916aae9cc11a

Sync Xen public header files.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Sep 22 16:08:10 2008 +0100 (2008-09-22)
parents 37802a5c9f53
children 28419b05401c
files include/xen/interface/sysctl.h include/xen/interface/trace.h
line diff
     1.1 --- a/include/xen/interface/sysctl.h	Mon Sep 22 15:55:16 2008 +0100
     1.2 +++ b/include/xen/interface/sysctl.h	Mon Sep 22 16:08:10 2008 +0100
     1.3 @@ -262,6 +262,18 @@ struct xen_sysctl_get_pmstat {
     1.4  typedef struct xen_sysctl_get_pmstat xen_sysctl_get_pmstat_t;
     1.5  DEFINE_XEN_GUEST_HANDLE(xen_sysctl_get_pmstat_t);
     1.6  
     1.7 +#define XEN_SYSCTL_cpu_hotplug       11
     1.8 +struct xen_sysctl_cpu_hotplug {
     1.9 +    /* IN variables */
    1.10 +    uint32_t cpu;   /* Physical cpu. */
    1.11 +#define XEN_SYSCTL_CPU_HOTPLUG_ONLINE  0
    1.12 +#define XEN_SYSCTL_CPU_HOTPLUG_OFFLINE 1
    1.13 +    uint32_t op;    /* hotplug opcode */
    1.14 +};
    1.15 +typedef struct xen_sysctl_cpu_hotplug xen_sysctl_cpu_hotplug_t;
    1.16 +DEFINE_XEN_GUEST_HANDLE(xen_sysctl_cpu_hotplug_t);
    1.17 +
    1.18 +
    1.19  struct xen_sysctl {
    1.20      uint32_t cmd;
    1.21      uint32_t interface_version; /* XEN_SYSCTL_INTERFACE_VERSION */
    1.22 @@ -276,6 +288,7 @@ struct xen_sysctl {
    1.23          struct xen_sysctl_getcpuinfo        getcpuinfo;
    1.24          struct xen_sysctl_availheap         availheap;
    1.25          struct xen_sysctl_get_pmstat        get_pmstat;
    1.26 +        struct xen_sysctl_cpu_hotplug       cpu_hotplug;
    1.27          uint8_t                             pad[128];
    1.28      } u;
    1.29  };
     2.1 --- a/include/xen/interface/trace.h	Mon Sep 22 15:55:16 2008 +0100
     2.2 +++ b/include/xen/interface/trace.h	Mon Sep 22 16:08:10 2008 +0100
     2.3 @@ -37,6 +37,7 @@
     2.4  #define TRC_HVM      0x0008f000    /* Xen HVM trace            */
     2.5  #define TRC_MEM      0x0010f000    /* Xen memory trace         */
     2.6  #define TRC_PV       0x0020f000    /* Xen PV traces            */
     2.7 +#define TRC_SHADOW   0x0040f000    /* Xen shadow tracing       */
     2.8  #define TRC_ALL      0x0ffff000
     2.9  #define TRC_HD_TO_EVENT(x) ((x)&0x0fffffff)
    2.10  #define TRC_HD_CYCLE_FLAG (1UL<<31)
    2.11 @@ -50,26 +51,30 @@
    2.12  #define TRC_HVM_ENTRYEXIT 0x00081000   /* VMENTRY and #VMEXIT       */
    2.13  #define TRC_HVM_HANDLER   0x00082000   /* various HVM handlers      */
    2.14  
    2.15 +#define TRC_SCHED_MIN       0x00021000   /* Just runstate changes */
    2.16 +#define TRC_SCHED_VERBOSE   0x00028000   /* More inclusive scheduling */
    2.17 +
    2.18  /* Trace events per class */
    2.19  #define TRC_LOST_RECORDS        (TRC_GEN + 1)
    2.20  #define TRC_TRACE_WRAP_BUFFER  (TRC_GEN + 2)
    2.21  #define TRC_TRACE_CPU_CHANGE    (TRC_GEN + 3)
    2.22  
    2.23 -#define TRC_SCHED_DOM_ADD       (TRC_SCHED +  1)
    2.24 -#define TRC_SCHED_DOM_REM       (TRC_SCHED +  2)
    2.25 -#define TRC_SCHED_SLEEP         (TRC_SCHED +  3)
    2.26 -#define TRC_SCHED_WAKE          (TRC_SCHED +  4)
    2.27 -#define TRC_SCHED_YIELD         (TRC_SCHED +  5)
    2.28 -#define TRC_SCHED_BLOCK         (TRC_SCHED +  6)
    2.29 -#define TRC_SCHED_SHUTDOWN      (TRC_SCHED +  7)
    2.30 -#define TRC_SCHED_CTL           (TRC_SCHED +  8)
    2.31 -#define TRC_SCHED_ADJDOM        (TRC_SCHED +  9)
    2.32 -#define TRC_SCHED_SWITCH        (TRC_SCHED + 10)
    2.33 -#define TRC_SCHED_S_TIMER_FN    (TRC_SCHED + 11)
    2.34 -#define TRC_SCHED_T_TIMER_FN    (TRC_SCHED + 12)
    2.35 -#define TRC_SCHED_DOM_TIMER_FN  (TRC_SCHED + 13)
    2.36 -#define TRC_SCHED_SWITCH_INFPREV (TRC_SCHED + 14)
    2.37 -#define TRC_SCHED_SWITCH_INFNEXT (TRC_SCHED + 15)
    2.38 +#define TRC_SCHED_RUNSTATE_CHANGE (TRC_SCHED_MIN + 1)
    2.39 +#define TRC_SCHED_DOM_ADD        (TRC_SCHED_VERBOSE +  1)
    2.40 +#define TRC_SCHED_DOM_REM        (TRC_SCHED_VERBOSE +  2)
    2.41 +#define TRC_SCHED_SLEEP          (TRC_SCHED_VERBOSE +  3)
    2.42 +#define TRC_SCHED_WAKE           (TRC_SCHED_VERBOSE +  4)
    2.43 +#define TRC_SCHED_YIELD          (TRC_SCHED_VERBOSE +  5)
    2.44 +#define TRC_SCHED_BLOCK          (TRC_SCHED_VERBOSE +  6)
    2.45 +#define TRC_SCHED_SHUTDOWN       (TRC_SCHED_VERBOSE +  7)
    2.46 +#define TRC_SCHED_CTL            (TRC_SCHED_VERBOSE +  8)
    2.47 +#define TRC_SCHED_ADJDOM         (TRC_SCHED_VERBOSE +  9)
    2.48 +#define TRC_SCHED_SWITCH         (TRC_SCHED_VERBOSE + 10)
    2.49 +#define TRC_SCHED_S_TIMER_FN     (TRC_SCHED_VERBOSE + 11)
    2.50 +#define TRC_SCHED_T_TIMER_FN     (TRC_SCHED_VERBOSE + 12)
    2.51 +#define TRC_SCHED_DOM_TIMER_FN   (TRC_SCHED_VERBOSE + 13)
    2.52 +#define TRC_SCHED_SWITCH_INFPREV (TRC_SCHED_VERBOSE + 14)
    2.53 +#define TRC_SCHED_SWITCH_INFNEXT (TRC_SCHED_VERBOSE + 15)
    2.54  
    2.55  #define TRC_MEM_PAGE_GRANT_MAP      (TRC_MEM + 1)
    2.56  #define TRC_MEM_PAGE_GRANT_UNMAP    (TRC_MEM + 2)
    2.57 @@ -89,6 +94,22 @@
    2.58    /* Indicates that addresses in trace record are 64 bits */
    2.59  #define TRC_64_FLAG               (0x100) 
    2.60  
    2.61 +#define TRC_SHADOW_NOT_SHADOW                 (TRC_SHADOW +  1)
    2.62 +#define TRC_SHADOW_FAST_PROPAGATE             (TRC_SHADOW +  2)
    2.63 +#define TRC_SHADOW_FAST_MMIO                  (TRC_SHADOW +  3)
    2.64 +#define TRC_SHADOW_FALSE_FAST_PATH            (TRC_SHADOW +  4)
    2.65 +#define TRC_SHADOW_MMIO                       (TRC_SHADOW +  5)
    2.66 +#define TRC_SHADOW_FIXUP                      (TRC_SHADOW +  6)
    2.67 +#define TRC_SHADOW_DOMF_DYING                 (TRC_SHADOW +  7)
    2.68 +#define TRC_SHADOW_EMULATE                    (TRC_SHADOW +  8)
    2.69 +#define TRC_SHADOW_EMULATE_UNSHADOW_USER      (TRC_SHADOW +  9)
    2.70 +#define TRC_SHADOW_EMULATE_UNSHADOW_EVTINJ    (TRC_SHADOW + 10)
    2.71 +#define TRC_SHADOW_EMULATE_UNSHADOW_UNHANDLED (TRC_SHADOW + 11)
    2.72 +#define TRC_SHADOW_WRMAP_BF                   (TRC_SHADOW + 12)
    2.73 +#define TRC_SHADOW_PREALLOC_UNPIN             (TRC_SHADOW + 13)
    2.74 +#define TRC_SHADOW_RESYNC_FULL                (TRC_SHADOW + 14)
    2.75 +#define TRC_SHADOW_RESYNC_ONLY                (TRC_SHADOW + 15)
    2.76 +
    2.77  /* trace events per subclass */
    2.78  #define TRC_HVM_VMENTRY         (TRC_HVM_ENTRYEXIT + 0x01)
    2.79  #define TRC_HVM_VMEXIT          (TRC_HVM_ENTRYEXIT + 0x02)