KVM: ppc: fix set regs to take care of msr change

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, January 2, 2009 - 2:00 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b8fd68...
Commit:     b8fd68ac8db1f926fdb2c7f196598a279461de53
Parent:     5cf8ca22146fa106f3bb865631ec04f5b499508f
Author:     Hollis Blanchard <hollisb@us.ibm.com>
AuthorDate: Wed Nov 5 09:36:20 2008 -0600
Committer:  Avi Kivity <avi@redhat.com>
CommitDate: Wed Dec 31 16:52:23 2008 +0200

    KVM: ppc: fix set regs to take care of msr change
    
    When changing some msr bits e.g. problem state we need to take special
    care of that. We call the function in our mtmsr emulation (not needed for
    wrtee[i]), but we don't call kvmppc_set_msr if we change msr via set_regs
    ioctl.
    It's a corner case we never hit so far, but I assume it should be
    kvmppc_set_msr in our arch set regs function (I found it because it is also
    a corner case when using pv support which would miss the update otherwise).
    
    Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
    Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
    Signed-off-by: Avi Kivity <avi@redhat.com>
---
 arch/powerpc/kvm/booke.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index b23cd54..dec3f50 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -528,7 +528,7 @@ int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs)
 	vcpu->arch.ctr = regs->ctr;
 	vcpu->arch.lr = regs->lr;
 	vcpu->arch.xer = regs->xer;
-	vcpu->arch.msr = regs->msr;
+	kvmppc_set_msr(vcpu, regs->msr);
 	vcpu->arch.srr0 = regs->srr0;
 	vcpu->arch.srr1 = regs->srr1;
 	vcpu->arch.sprg0 = regs->sprg0;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
KVM: ppc: fix set regs to take care of msr change, Linux Kernel Mailing ..., (Fri Jan 2, 2:00 pm)