Commit 0474b259 authored by Alexander Graf's avatar Alexander Graf Committed by Avi Kivity
Browse files

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: default avatarAlexander Graf <agraf@suse.de>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 33fd27c7
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -147,10 +147,6 @@ 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));
	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)) {
	switch (get_op(inst)) {
	case OP_TRAP:
	case OP_TRAP:
#ifdef CONFIG_PPC_BOOK3S
#ifdef CONFIG_PPC_BOOK3S