|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 3/8] x86/AMD: Read VPMU MSRs from context when it is not loaded into HW
On 4/11/2013 1:34 PM, Boris Ostrovsky wrote: On 04/11/2013 02:26 PM, Suravee Suthikulpanit wrote:Boris,I tried booting the guest HVM after the patch, I still see PERF only working in Software mode only. I'll look more into this.You may need to declare proper CPUID bits in the config file. On fam15h I havecpuid=['0x80000001:ecx=00000001101000011000101111110011'] -boris Yes, that's working now. Thanks. Suravee Suravee On 4/9/2013 12:26 PM, Boris Ostrovsky wrote:Mark context as LOADED on any MSR write (and on vpmu_restore()). This will allow us to know whether to read an MSR from HW or from context: guest may write into an MSR without enabling it (thus not marking the context as RUNNING) and then be migrated. Reading this MSR again willnot match the pervious write since registers will not be loaded into HW.In addition, we should be saving the context when it is LOADED, notRUNNING --- otherwise we need to save it any time it becomes non-RUNNING,which may be a frequent occurrence. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> ---xen/arch/x86/hvm/svm/vpmu.c | 48 +++++++++++++++++++++++++++++++++++++++++++-- _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |