diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2008-11-05 10:36:20 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:52:23 -0500 |
commit | b8fd68ac8db1f926fdb2c7f196598a279461de53 (patch) | |
tree | 0463cef0657e3603f1028ba6d9db24ecb47fc374 /arch/powerpc/kvm | |
parent | 5cf8ca22146fa106f3bb865631ec04f5b499508f (diff) |
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>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | 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 b23cd54603f4..dec3f50a494f 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) | |||
528 | vcpu->arch.ctr = regs->ctr; | 528 | vcpu->arch.ctr = regs->ctr; |
529 | vcpu->arch.lr = regs->lr; | 529 | vcpu->arch.lr = regs->lr; |
530 | vcpu->arch.xer = regs->xer; | 530 | vcpu->arch.xer = regs->xer; |
531 | vcpu->arch.msr = regs->msr; | 531 | kvmppc_set_msr(vcpu, regs->msr); |
532 | vcpu->arch.srr0 = regs->srr0; | 532 | vcpu->arch.srr0 = regs->srr0; |
533 | vcpu->arch.srr1 = regs->srr1; | 533 | vcpu->arch.srr1 = regs->srr1; |
534 | vcpu->arch.sprg0 = regs->sprg0; | 534 | vcpu->arch.sprg0 = regs->sprg0; |