projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68e2ffe
)
KVM: PPC: Only WARN on invalid emulation
author
Alexander Graf
<agraf@suse.de>
Fri, 14 Dec 2012 22:46:03 +0000
(23:46 +0100)
committer
Alexander Graf
<agraf@suse.de>
Thu, 10 Jan 2013 12:15:08 +0000
(13:15 +0100)
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>
arch/powerpc/kvm/powerpc.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/powerpc.c
b/arch/powerpc/kvm/powerpc.c
index be83fca2e8fd819bea0649f23a87200dd2e6ad04..e2225e5b8a4cb45e216f5a4e1400bc44a8003d65 100644
(file)
--- 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;