diff options
author | Alexander Graf <agraf@suse.de> | 2012-12-14 22:46:03 (GMT) |
---|---|---|
committer | Stuart Yoder <stuart.yoder@freescale.com> | 2013-04-11 22:29:30 (GMT) |
commit | 2a423a8ed46dd081eda4fa3aa336cec3d3a92893 (patch) | |
tree | f068a017786cb8797ea7aab7b340053fc5402963 /arch | |
parent | a49d7c536302f9e7aaad8e84ad7de6cf00ae9d3f (diff) | |
download | linux-fsl-qoriq-2a423a8ed46dd081eda4fa3aa336cec3d3a92893.tar.xz |
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')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 70739a0..ca01319 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; |