Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
xen-mca.h File Reference

Go to the source code of this file.

Data Structures

struct  mcinfo_common
 
struct  mcinfo_global
 
struct  mcinfo_bank
 
struct  mcinfo_msr
 
struct  mcinfo_extended
 
struct  page_offline_action
 
struct  cpu_offline_action
 
struct  mcinfo_recovery
 
struct  mc_info
 
struct  mcinfo_logical_cpu
 
struct  xen_mc_fetch
 
struct  xen_mc_notifydomain
 
struct  xen_mc_physcpuinfo
 
struct  xen_mc_msrinject
 
struct  xen_mc_mceinject
 
struct  xen_mc
 
struct  xen_mce
 
struct  xen_mce_log
 

Macros

#define __HYPERVISOR_mca   __HYPERVISOR_arch_0
 
#define XEN_MCA_INTERFACE_VERSION   0x01ecc003
 
#define XEN_MC_NONURGENT   0x1
 
#define XEN_MC_URGENT   0x2
 
#define XEN_MC_ACK   0x4
 
#define XEN_MC_OK   0x0
 
#define XEN_MC_FETCHFAILED   0x1
 
#define XEN_MC_NODATA   0x2
 
#define VIRQ_MCA   VIRQ_ARCH_0
 
#define MC_TYPE_GLOBAL   0
 
#define MC_TYPE_BANK   1
 
#define MC_TYPE_EXTENDED   2
 
#define MC_TYPE_RECOVERY   3
 
#define MC_FLAG_CORRECTABLE   (1 << 0)
 
#define MC_FLAG_UNCORRECTABLE   (1 << 1)
 
#define MC_FLAG_RECOVERABLE   (1 << 2)
 
#define MC_FLAG_POLLED   (1 << 3)
 
#define MC_FLAG_RESET   (1 << 4)
 
#define MC_FLAG_CMCI   (1 << 5)
 
#define MC_FLAG_MCE   (1 << 6)
 
#define REC_ACTION_RECOVERED   (0x1 << 0)
 
#define REC_ACTION_NONE   (0x1 << 1)
 
#define REC_ACTION_NEED_RESET   (0x1 << 2)
 
#define MC_ACTION_PAGE_OFFLINE   (0x1 << 0)
 
#define MC_ACTION_CPU_OFFLINE   (0x1 << 1)
 
#define MC_ACTION_CACHE_SHRINK   (0x1 << 2)
 
#define MAX_UNION_SIZE   16
 
#define MCINFO_MAXSIZE   768
 
#define __MC_MSR_ARRAYSIZE   8
 
#define __MC_MSR_MCGCAP   0
 
#define __MC_NMSRS   1
 
#define MC_NCAPS   7
 
#define x86_mcinfo_nentries(_mi)   ((_mi)->mi_nentries)
 
#define x86_mcinfo_first(_mi)   ((struct mcinfo_common *)(_mi)->mi_data)
 
#define x86_mcinfo_next(_mic)   ((struct mcinfo_common *)((uint8_t *)(_mic) + (_mic)->size))
 
#define XEN_MC_fetch   1
 
#define XEN_MC_notifydomain   2
 
#define XEN_MC_physcpuinfo   3
 
#define XEN_MC_msrinject   4
 
#define MC_MSRINJ_MAXMSRS   8
 
#define MC_MSRINJ_F_INTERPOSE   0x1
 
#define XEN_MC_mceinject   5
 
#define XEN_MCE_LOG_LEN   32
 
#define XEN_MCE_OVERFLOW   0 /* bit 0 in flags means overflow */
 
#define XEN_MCE_LOG_SIGNATURE   "MACHINECHECK"
 
#define MCE_GET_RECORD_LEN   _IOR('M', 1, int)
 
#define MCE_GET_LOG_LEN   _IOR('M', 2, int)
 
#define MCE_GETCLEAR_FLAGS   _IOR('M', 3, int)
 

Functions

 DEFINE_GUEST_HANDLE_STRUCT (mc_info)
 
 DEFINE_GUEST_HANDLE_STRUCT (mcinfo_logical_cpu)
 
 DEFINE_GUEST_HANDLE_STRUCT (xen_mc_fetch)
 
 DEFINE_GUEST_HANDLE_STRUCT (xen_mc_notifydomain)
 
 DEFINE_GUEST_HANDLE_STRUCT (xen_mc)
 

Macro Definition Documentation

#define __HYPERVISOR_mca   __HYPERVISOR_arch_0

Definition at line 34 of file xen-mca.h.

#define __MC_MSR_ARRAYSIZE   8

Definition at line 185 of file xen-mca.h.

#define __MC_MSR_MCGCAP   0

Definition at line 186 of file xen-mca.h.

#define __MC_NMSRS   1

Definition at line 187 of file xen-mca.h.

#define MAX_UNION_SIZE   16

Definition at line 162 of file xen-mca.h.

#define MC_ACTION_CACHE_SHRINK   (0x1 << 2)

Definition at line 143 of file xen-mca.h.

#define MC_ACTION_CPU_OFFLINE   (0x1 << 1)

Definition at line 141 of file xen-mca.h.

#define MC_ACTION_PAGE_OFFLINE   (0x1 << 0)

Definition at line 139 of file xen-mca.h.

#define MC_FLAG_CMCI   (1 << 5)

Definition at line 77 of file xen-mca.h.

#define MC_FLAG_CORRECTABLE   (1 << 0)

Definition at line 72 of file xen-mca.h.

#define MC_FLAG_MCE   (1 << 6)

Definition at line 78 of file xen-mca.h.

#define MC_FLAG_POLLED   (1 << 3)

Definition at line 75 of file xen-mca.h.

#define MC_FLAG_RECOVERABLE   (1 << 2)

Definition at line 74 of file xen-mca.h.

#define MC_FLAG_RESET   (1 << 4)

Definition at line 76 of file xen-mca.h.

#define MC_FLAG_UNCORRECTABLE   (1 << 1)

Definition at line 73 of file xen-mca.h.

#define MC_MSRINJ_F_INTERPOSE   0x1

Definition at line 315 of file xen-mca.h.

#define MC_MSRINJ_MAXMSRS   8

Definition at line 304 of file xen-mca.h.

#define MC_NCAPS   7

Definition at line 188 of file xen-mca.h.

#define MC_TYPE_BANK   1

Definition at line 63 of file xen-mca.h.

#define MC_TYPE_EXTENDED   2

Definition at line 64 of file xen-mca.h.

#define MC_TYPE_GLOBAL   0

Definition at line 62 of file xen-mca.h.

#define MC_TYPE_RECOVERY   3

Definition at line 65 of file xen-mca.h.

#define MCE_GET_LOG_LEN   _IOR('M', 2, int)

Definition at line 381 of file xen-mca.h.

#define MCE_GET_RECORD_LEN   _IOR('M', 1, int)

Definition at line 380 of file xen-mca.h.

#define MCE_GETCLEAR_FLAGS   _IOR('M', 3, int)

Definition at line 382 of file xen-mca.h.

#define MCINFO_MAXSIZE   768

Definition at line 176 of file xen-mca.h.

#define REC_ACTION_NEED_RESET   (0x1 << 2)

Definition at line 131 of file xen-mca.h.

#define REC_ACTION_NONE   (0x1 << 1)

Definition at line 129 of file xen-mca.h.

#define REC_ACTION_RECOVERED   (0x1 << 0)

Definition at line 127 of file xen-mca.h.

#define VIRQ_MCA   VIRQ_ARCH_0

Definition at line 54 of file xen-mca.h.

#define x86_mcinfo_first (   _mi)    ((struct mcinfo_common *)(_mi)->mi_data)

Definition at line 224 of file xen-mca.h.

#define x86_mcinfo_nentries (   _mi)    ((_mi)->mi_nentries)

Definition at line 218 of file xen-mca.h.

#define x86_mcinfo_next (   _mic)    ((struct mcinfo_common *)((uint8_t *)(_mic) + (_mic)->size))

Definition at line 230 of file xen-mca.h.

#define XEN_MC_ACK   0x4

Definition at line 43 of file xen-mca.h.

#define XEN_MC_fetch   1

Definition at line 262 of file xen-mca.h.

#define XEN_MC_FETCHFAILED   0x1

Definition at line 48 of file xen-mca.h.

#define XEN_MC_mceinject   5

Definition at line 317 of file xen-mca.h.

#define XEN_MC_msrinject   4

Definition at line 303 of file xen-mca.h.

#define XEN_MC_NODATA   0x2

Definition at line 50 of file xen-mca.h.

#define XEN_MC_NONURGENT   0x1

Definition at line 39 of file xen-mca.h.

#define XEN_MC_notifydomain   2

Definition at line 283 of file xen-mca.h.

#define XEN_MC_OK   0x0

Definition at line 46 of file xen-mca.h.

#define XEN_MC_physcpuinfo   3

Definition at line 294 of file xen-mca.h.

#define XEN_MC_URGENT   0x2

Definition at line 41 of file xen-mca.h.

#define XEN_MCA_INTERFACE_VERSION   0x01ecc003

Definition at line 36 of file xen-mca.h.

#define XEN_MCE_LOG_LEN   32

Definition at line 365 of file xen-mca.h.

#define XEN_MCE_LOG_SIGNATURE   "MACHINECHECK"

Definition at line 378 of file xen-mca.h.

#define XEN_MCE_OVERFLOW   0 /* bit 0 in flags means overflow */

Definition at line 376 of file xen-mca.h.

Function Documentation

DEFINE_GUEST_HANDLE_STRUCT ( mc_info  )
DEFINE_GUEST_HANDLE_STRUCT ( mcinfo_logical_cpu  )
DEFINE_GUEST_HANDLE_STRUCT ( xen_mc_fetch  )
DEFINE_GUEST_HANDLE_STRUCT ( xen_mc_notifydomain  )
DEFINE_GUEST_HANDLE_STRUCT ( xen_mc  )