|
[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
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. 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 will not match the pervious write since registers will not be loaded into HW. In addition, we should be saving the context when it is LOADED, not RUNNING --- 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 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/hvm/svm/vpmu.c b/xen/arch/x86/hvm/svm/vpmu.c index f194975..3115923 100644 --- a/xen/arch/x86/hvm/svm/vpmu.c +++ b/xen/arch/x86/hvm/svm/vpmu.c @@ -225,6 +225,8 @@ static void amd_vpmu_restore(struct vcpu *v)context_restore(v); _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |