diff options
author | Alexander Graf <agraf@suse.de> | 2010-04-15 18:11:50 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:18:41 -0400 |
commit | 0474b259d0366a70ea83b94534c333093c189421 (patch) | |
tree | 648c375a0313e5387140751678d59c3c753d66c1 /arch/powerpc | |
parent | 33fd27c7d26ec869f637634526e7293027bd8746 (diff) |
KVM: PPC: Remove fetch fail code
When instruction fetch failed, the inline function hook automatically
detects that and starts the internal guest memory load function. So
whenever we access kvmppc_get_last_inst(), we're sure the result is sane.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kvm/emulate.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index b608c0b0beb5..4568ec386c2a 100644 --- a/arch/powerpc/kvm/emulate.c +++ b/arch/powerpc/kvm/emulate.c | |||
@@ -147,10 +147,6 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu) | |||
147 | 147 | ||
148 | pr_debug(KERN_INFO "Emulating opcode %d / %d\n", get_op(inst), get_xop(inst)); | 148 | pr_debug(KERN_INFO "Emulating opcode %d / %d\n", get_op(inst), get_xop(inst)); |
149 | 149 | ||
150 | /* Try again next time */ | ||
151 | if (inst == KVM_INST_FETCH_FAILED) | ||
152 | return EMULATE_DONE; | ||
153 | |||
154 | switch (get_op(inst)) { | 150 | switch (get_op(inst)) { |
155 | case OP_TRAP: | 151 | case OP_TRAP: |
156 | #ifdef CONFIG_PPC_BOOK3S | 152 | #ifdef CONFIG_PPC_BOOK3S |