|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Intel/VPMU: Add support for full-width PMC writes
On 07/29/2013 05:56 AM, Dietmar Hahn wrote: Am Montag 22 Juli 2013, 14:54:31 schrieb Boris Ostrovsky:A recent Linux commit (069e0c3c405814778c7475d95b9fff5318f39834) added support for full-width PMC writes to performance counter registers, making these registers default for perf. Since current Xen VPMU does not support these new MSRs perf will fail to initialise in guests. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> Question to Intel folks: Do we need to update MSR bitmap for both original (0xc1) and alias (0x4c1) registers or will either one suffice? Ping to Intel engineers.I'll resend this with fixes but I'd like to hear first whether I really need to deal with MSR bitmaps. I could test to see how it behaves on my system but I amnot convinced that even if bitmap uses single bit for both aliases on my HW it will be safe to assume that this is the expected behavior on all processors. Thanks -boris --- xen/arch/x86/hvm/vmx/vpmu_core2.c | 44 +++++++++++++++++++++++++++++++++++---- xen/include/asm-x86/msr-index.h | 1 + 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/xen/arch/x86/hvm/vmx/vpmu_core2.c b/xen/arch/x86/hvm/vmx/vpmu_core2.c index 15b2036..823d364 100644 --- a/xen/arch/x86/hvm/vmx/vpmu_core2.c +++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c @@ -64,6 +64,10 @@ #define PMU_FIXED_WIDTH_BITS 8 /* 8 bits 5..12 */ #define PMU_FIXED_WIDTH_MASK (((1 << PMU_FIXED_WIDTH_BITS) -1) << PMU_FIXED_WIDTH_SHIFT)+/* Alias registers (0x4c1) for full-width writes to PMCs */+#define MSR_PMC_ALIAS_MASK (~0x400) +bool_t __read_mostly fw_write;Why not use "full_width_write" (or similar) like in the original linux kernel patch for better readability? _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |