git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
KVM: PPC: Implement 'skip instruction' mode
[pandora-kernel.git]
/
arch
/
powerpc
/
kvm
/
emulate.c
diff --git
a/arch/powerpc/kvm/emulate.c
b/arch/powerpc/kvm/emulate.c
index
38219af
..
04e317c
100644
(file)
--- a/
arch/powerpc/kvm/emulate.c
+++ b/
arch/powerpc/kvm/emulate.c
@@
-143,6
+143,10
@@
int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu)
pr_debug(KERN_INFO "Emulating opcode %d / %d\n", get_op(inst), get_xop(inst));
+ /* Try again next time */
+ if (inst == KVM_INST_FETCH_FAILED)
+ return EMULATE_DONE;
+
switch (get_op(inst)) {
case OP_TRAP:
#ifdef CONFIG_PPC64