Xen Test Framework
Macros
msr-index.h File Reference
#include <xtf/numbers.h>
+ Include dependency graph for msr-index.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MSR_APICBASE   0x0000001b
 
#define APICBASE_BSP   (_AC(1, ULL) << 8)
 
#define APICBASE_EXTD   (_AC(1, ULL) << 10)
 
#define APICBASE_ENABLE   (_AC(1, ULL) << 11)
 
#define MSR_FEATURE_CONTROL   0x0000003a
 
#define MSR_PMC(n)   (0x000000c1 + (n))
 
#define MSR_INTEL_PLATFORM_INFO   0x000000ce
 
#define PLATFORM_INFO_CPUID_FAULTING   (_AC(1, ULL) << 31)
 
#define MSR_INTEL_MISC_FEATURES_ENABLES   0x00000140
 
#define MISC_FEATURES_CPUID_FAULTING   (_AC(1, ULL) << 0)
 
#define MSR_PERFEVTSEL(n)   (0x00000186 + (n))
 
#define MSR_MISC_ENABLE   0x000001a0
 
#define MSR_DEBUGCTL   0x000001d9
 
#define DEBUGCTL_LBR   (_AC(1, ULL) << 0) /* Last Branch Record */
 
#define DEBUGCTL_TR   (_AC(1, ULL) << 6) /* Trace Message Enable */
 
#define DEBUGCTL_BTS   (_AC(1, ULL) << 7) /* Branch Trace Store */
 
#define DEBUGCTL_BTINT   (_AC(1, ULL) << 8) /* Branch Trace Interrupt */
 
#define MSR_FIXED_CTR(n)   (0x00000309 + (n))
 
#define MSR_PERF_CAPABILITIES   0x00000345
 
#define MSR_FIXED_CTR_CTRL   0x0000038d
 
#define MSR_PERF_GLOBAL_STATUS   0x0000038e
 
#define MSR_PERF_GLOBAL_CTRL   0x0000038f
 
#define MSR_PERF_GLOBAL_OVF_CTRL   0x00000390
 
#define MSR_VMX_BASIC   0x00000480
 
#define MSR_A_PMC(n)   (0x000004c1 + (n))
 
#define MSR_X2APIC_REGS   0x00000800
 
#define MSR_EFER   0xc0000080 /* Extended Feature Enable Register */
 
#define EFER_SCE   (_AC(1, ULL) << 0) /* SYSCALL Enable */
 
#define EFER_LME   (_AC(1, ULL) << 8) /* Long Mode Enable */
 
#define EFER_LMA   (_AC(1, ULL) << 10) /* Long Mode Active */
 
#define EFER_NXE   (_AC(1, ULL) << 11) /* No Execute Enable */
 
#define EFER_SVME   (_AC(1, ULL) << 12) /* Secure Virtual Machine Enable */
 
#define EFER_LMSLE   (_AC(1, ULL) << 13) /* Long Mode Segment Limit Enable */
 
#define EFER_FFXSR   (_AC(1, ULL) << 14) /* Fast FXSAVE/FXRSTOR */
 
#define EFER_TCE   (_AC(1, ULL) << 15) /* Translation Cache Extension */
 
#define MSR_STAR   0xc0000081
 
#define MSR_LSTAR   0xc0000082
 
#define MSR_CSTAR   0xc0000083
 
#define MSR_FMASK   0xc0000084
 
#define MSR_FS_BASE   0xc0000100
 
#define MSR_GS_BASE   0xc0000101
 
#define MSR_SHADOW_GS_BASE   0xc0000102
 
#define MSR_DR0_ADDR_MASK   0xc0011027
 
#define MSR_DR1_ADDR_MASK   0xc0011019
 
#define MSR_DR2_ADDR_MASK   0xc001101a
 
#define MSR_DR3_ADDR_MASK   0xc001101b
 

Macro Definition Documentation

◆ MSR_APICBASE

#define MSR_APICBASE   0x0000001b

Definition at line 11 of file msr-index.h.

◆ APICBASE_BSP

#define APICBASE_BSP   (_AC(1, ULL) << 8)

Definition at line 12 of file msr-index.h.

◆ APICBASE_EXTD

#define APICBASE_EXTD   (_AC(1, ULL) << 10)

Definition at line 13 of file msr-index.h.

◆ APICBASE_ENABLE

#define APICBASE_ENABLE   (_AC(1, ULL) << 11)

Definition at line 14 of file msr-index.h.

◆ MSR_FEATURE_CONTROL

#define MSR_FEATURE_CONTROL   0x0000003a

Definition at line 16 of file msr-index.h.

◆ MSR_PMC

#define MSR_PMC (   n)    (0x000000c1 + (n))

Definition at line 18 of file msr-index.h.

◆ MSR_INTEL_PLATFORM_INFO

#define MSR_INTEL_PLATFORM_INFO   0x000000ce

Definition at line 20 of file msr-index.h.

◆ PLATFORM_INFO_CPUID_FAULTING

#define PLATFORM_INFO_CPUID_FAULTING   (_AC(1, ULL) << 31)

Definition at line 21 of file msr-index.h.

◆ MSR_INTEL_MISC_FEATURES_ENABLES

#define MSR_INTEL_MISC_FEATURES_ENABLES   0x00000140

Definition at line 23 of file msr-index.h.

◆ MISC_FEATURES_CPUID_FAULTING

#define MISC_FEATURES_CPUID_FAULTING   (_AC(1, ULL) << 0)

Definition at line 24 of file msr-index.h.

◆ MSR_PERFEVTSEL

#define MSR_PERFEVTSEL (   n)    (0x00000186 + (n))

Definition at line 26 of file msr-index.h.

◆ MSR_MISC_ENABLE

#define MSR_MISC_ENABLE   0x000001a0

Definition at line 28 of file msr-index.h.

◆ MSR_DEBUGCTL

#define MSR_DEBUGCTL   0x000001d9

Definition at line 30 of file msr-index.h.

◆ DEBUGCTL_LBR

#define DEBUGCTL_LBR   (_AC(1, ULL) << 0) /* Last Branch Record */

Definition at line 31 of file msr-index.h.

◆ DEBUGCTL_TR

#define DEBUGCTL_TR   (_AC(1, ULL) << 6) /* Trace Message Enable */

Definition at line 32 of file msr-index.h.

◆ DEBUGCTL_BTS

#define DEBUGCTL_BTS   (_AC(1, ULL) << 7) /* Branch Trace Store */

Definition at line 33 of file msr-index.h.

◆ DEBUGCTL_BTINT

#define DEBUGCTL_BTINT   (_AC(1, ULL) << 8) /* Branch Trace Interrupt */

Definition at line 34 of file msr-index.h.

◆ MSR_FIXED_CTR

#define MSR_FIXED_CTR (   n)    (0x00000309 + (n))

Definition at line 36 of file msr-index.h.

◆ MSR_PERF_CAPABILITIES

#define MSR_PERF_CAPABILITIES   0x00000345

Definition at line 37 of file msr-index.h.

◆ MSR_FIXED_CTR_CTRL

#define MSR_FIXED_CTR_CTRL   0x0000038d

Definition at line 38 of file msr-index.h.

◆ MSR_PERF_GLOBAL_STATUS

#define MSR_PERF_GLOBAL_STATUS   0x0000038e

Definition at line 39 of file msr-index.h.

◆ MSR_PERF_GLOBAL_CTRL

#define MSR_PERF_GLOBAL_CTRL   0x0000038f

Definition at line 40 of file msr-index.h.

◆ MSR_PERF_GLOBAL_OVF_CTRL

#define MSR_PERF_GLOBAL_OVF_CTRL   0x00000390

Definition at line 41 of file msr-index.h.

◆ MSR_VMX_BASIC

#define MSR_VMX_BASIC   0x00000480

Definition at line 43 of file msr-index.h.

◆ MSR_A_PMC

#define MSR_A_PMC (   n)    (0x000004c1 + (n))

Definition at line 45 of file msr-index.h.

◆ MSR_X2APIC_REGS

#define MSR_X2APIC_REGS   0x00000800

Definition at line 47 of file msr-index.h.

◆ MSR_EFER

#define MSR_EFER   0xc0000080 /* Extended Feature Enable Register */

Definition at line 49 of file msr-index.h.

◆ EFER_SCE

#define EFER_SCE   (_AC(1, ULL) << 0) /* SYSCALL Enable */

Definition at line 50 of file msr-index.h.

◆ EFER_LME

#define EFER_LME   (_AC(1, ULL) << 8) /* Long Mode Enable */

Definition at line 51 of file msr-index.h.

◆ EFER_LMA

#define EFER_LMA   (_AC(1, ULL) << 10) /* Long Mode Active */

Definition at line 52 of file msr-index.h.

◆ EFER_NXE

#define EFER_NXE   (_AC(1, ULL) << 11) /* No Execute Enable */

Definition at line 53 of file msr-index.h.

◆ EFER_SVME

#define EFER_SVME   (_AC(1, ULL) << 12) /* Secure Virtual Machine Enable */

Definition at line 54 of file msr-index.h.

◆ EFER_LMSLE

#define EFER_LMSLE   (_AC(1, ULL) << 13) /* Long Mode Segment Limit Enable */

Definition at line 55 of file msr-index.h.

◆ EFER_FFXSR

#define EFER_FFXSR   (_AC(1, ULL) << 14) /* Fast FXSAVE/FXRSTOR */

Definition at line 56 of file msr-index.h.

◆ EFER_TCE

#define EFER_TCE   (_AC(1, ULL) << 15) /* Translation Cache Extension */

Definition at line 57 of file msr-index.h.

◆ MSR_STAR

#define MSR_STAR   0xc0000081

Definition at line 59 of file msr-index.h.

◆ MSR_LSTAR

#define MSR_LSTAR   0xc0000082

Definition at line 60 of file msr-index.h.

◆ MSR_CSTAR

#define MSR_CSTAR   0xc0000083

Definition at line 61 of file msr-index.h.

◆ MSR_FMASK

#define MSR_FMASK   0xc0000084

Definition at line 62 of file msr-index.h.

◆ MSR_FS_BASE

#define MSR_FS_BASE   0xc0000100

Definition at line 64 of file msr-index.h.

◆ MSR_GS_BASE

#define MSR_GS_BASE   0xc0000101

Definition at line 65 of file msr-index.h.

◆ MSR_SHADOW_GS_BASE

#define MSR_SHADOW_GS_BASE   0xc0000102

Definition at line 66 of file msr-index.h.

◆ MSR_DR0_ADDR_MASK

#define MSR_DR0_ADDR_MASK   0xc0011027

Definition at line 68 of file msr-index.h.

◆ MSR_DR1_ADDR_MASK

#define MSR_DR1_ADDR_MASK   0xc0011019

Definition at line 69 of file msr-index.h.

◆ MSR_DR2_ADDR_MASK

#define MSR_DR2_ADDR_MASK   0xc001101a

Definition at line 70 of file msr-index.h.

◆ MSR_DR3_ADDR_MASK

#define MSR_DR3_ADDR_MASK   0xc001101b

Definition at line 71 of file msr-index.h.