[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Is there any way to read msr in hypervisor code?
On Tue, Feb 27, 2018 at 7:00 PM, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
Thanks for your answer, Andrew. Actually, I intended to get the number of cache-misses from msr and
according to "Figure 18-1 Layout of IA32_PERFEVTSELx MSRs in Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3B: System Programming Guide",
it can be achieved by "0x412e":
I also tried to do that w/ rdmsr_safe() but, I failed to read msr. Through the macro that returns a non-zero value, it was easy to see that reading msr failed: if ( rdmsr_safe(0x412e, ret) ) { I cannot understand why you said "0x412e isn't an MSR which exists on any real hardware" so, is it impossible to get the number of cache-misses by using msr ?? _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |