[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.7] x86/PV: make PMU MSR handling consistent
commit 9d2ede8018e6776b3f8e9b51611e2663316710de Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Tue Sep 6 11:44:00 2016 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Tue Sep 6 11:44:00 2016 +0200 x86/PV: make PMU MSR handling consistent So far accesses to Intel MSRs on an AMD system fall through to the default case, while accesses to AMD MSRs on an Intel system bail (in the RDMSR case without updating EAX and EDX). Make the "AMD MSRs on Intel" case match the "Intel MSR on AMD" one. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> master commit: bea64b3ed25864b90a41e1ca6eeb5a58895bb751 master date: 2016-09-02 14:19:29 +0200 --- xen/arch/x86/traps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index b562047..91a37e9 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -2872,8 +2872,8 @@ static int emulate_privileged_op(struct cpu_user_regs *regs) if ( vpmu_do_wrmsr(regs->ecx, msr_content, 0) ) goto fail; + break; } - break; } /*FALLTHROUGH*/ @@ -3007,8 +3007,8 @@ static int emulate_privileged_op(struct cpu_user_regs *regs) regs->eax = (uint32_t)val; regs->edx = (uint32_t)(val >> 32); + break; } - break; } /*FALLTHROUGH*/ -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.7 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |