Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf/x86/intel/pt: Add new bit definitions for PT MSRs

Add bit definitions for Intel PT MSRs to support trace output
directed to the memeory subsystem and holds a count if packet
bytes that have been sent out.

These are required by the upcoming PT support in KVM guests
for MSRs read/write emulation.

Signed-off-by: Luwei Kang <luwei.kang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Luwei Kang and committed by
Paolo Bonzini
69843a91 61be2998

+3
+3
arch/x86/include/asm/msr-index.h
··· 127 127 #define RTIT_CTL_USR BIT(3) 128 128 #define RTIT_CTL_PWR_EVT_EN BIT(4) 129 129 #define RTIT_CTL_FUP_ON_PTW BIT(5) 130 + #define RTIT_CTL_FABRIC_EN BIT(6) 130 131 #define RTIT_CTL_CR3EN BIT(7) 131 132 #define RTIT_CTL_TOPA BIT(8) 132 133 #define RTIT_CTL_MTC_EN BIT(9) ··· 156 155 #define RTIT_STATUS_BUFFOVF BIT(3) 157 156 #define RTIT_STATUS_ERROR BIT(4) 158 157 #define RTIT_STATUS_STOPPED BIT(5) 158 + #define RTIT_STATUS_BYTECNT_OFFSET 32 159 + #define RTIT_STATUS_BYTECNT (0x1ffffull << RTIT_STATUS_BYTECNT_OFFSET) 159 160 #define MSR_IA32_RTIT_ADDR0_A 0x00000580 160 161 #define MSR_IA32_RTIT_ADDR0_B 0x00000581 161 162 #define MSR_IA32_RTIT_ADDR1_A 0x00000582