aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/emulate.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2011-03-28 16:01:24 -0400
committerAvi Kivity <avi@redhat.com>2011-05-22 08:47:47 -0400
commit49ea06957bf637b28aa338fba26432d5bafdeb99 (patch)
treea141af139f4d7e59765a8cdb2640b81560164b11 /arch/powerpc/kvm/emulate.c
parent90d34b0e45df3bfe522e9e9d604c4c1a0253699d (diff)
KVM: PPC: fix exit accounting for SPRs, tlbwe, tlbsx
The exit type setting for mfspr/mtspr is moved from 44x to toplevel SPR emulation. This enables it on e500, and makes sure that all SPRs are covered. Exit accounting for tlbwe and tlbsx is added to e500. Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com> Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/emulate.c')
-rw-r--r--arch/powerpc/kvm/emulate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c
index c64fd2909bb2..8f7a3aa03c26 100644
--- a/arch/powerpc/kvm/emulate.c
+++ b/arch/powerpc/kvm/emulate.c
@@ -294,6 +294,7 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu)
294 } 294 }
295 break; 295 break;
296 } 296 }
297 kvmppc_set_exit_type(vcpu, EMULATED_MFSPR_EXITS);
297 break; 298 break;
298 299
299 case OP_31_XOP_STHX: 300 case OP_31_XOP_STHX:
@@ -363,6 +364,7 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu)
363 printk("mtspr: unknown spr %x\n", sprn); 364 printk("mtspr: unknown spr %x\n", sprn);
364 break; 365 break;
365 } 366 }
367 kvmppc_set_exit_type(vcpu, EMULATED_MTSPR_EXITS);
366 break; 368 break;
367 369
368 case OP_31_XOP_DCBI: 370 case OP_31_XOP_DCBI: