Skip to content

Commit

Permalink
KVM: PPC: Only WARN on invalid emulation
Browse files Browse the repository at this point in the history
When we hit an emulation result that we didn't expect, that is an error,
but it's nothing that warrants a BUG(), because it can be guest triggered.

So instead, let's only WARN() the user that this happened.

Signed-off-by: Alexander Graf <agraf@suse.de>
  • Loading branch information
Alexander Graf committed Jan 10, 2013
1 parent 68e2ffe commit 5a33169
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/kvm/powerpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ int kvmppc_emulate_mmio(struct kvm_run *run, struct kvm_vcpu *vcpu)
r = RESUME_HOST;
break;
default:
BUG();
WARN_ON(1);
r = RESUME_GUEST;
}

return r;
Expand Down

0 comments on commit 5a33169

Please sign in to comment.