summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-12-14 23:46:03 +0100
committerAlexander Graf <agraf@suse.de>2013-01-10 13:15:08 +0100
commit5a33169ed29060df71627103e6968078b42de945 (patch)
tree7ca052a6310534eb5ae87d1cb2b92a59a64291cf /arch/powerpc
parent68e2ffed358c92341c126e606b500098fc72f5f7 (diff)
downloadtalos-op-linux-5a33169ed29060df71627103e6968078b42de945.tar.gz
talos-op-linux-5a33169ed29060df71627103e6968078b42de945.zip
KVM: PPC: Only WARN on invalid emulation
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kvm/powerpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index be83fca2e8fd..e2225e5b8a4c 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -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;
OpenPOWER on IntegriCloud