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:
67034bb
)
KVM: X86: Don't block vCPU if there is pending exception
author
Wanpeng Li
<
[email protected]
>
Wed, 13 Sep 2017 11:04:01 +0000
(
04:04
-0700)
committer
Radim Krčmář
<
[email protected]
>
Thu, 14 Sep 2017 15:16:14 +0000
(17:16 +0200)
Don't block vCPU if there is pending exception.
Cc: Paolo Bonzini <
[email protected]
>
Cc: Radim Krčmář <
[email protected]
>
Signed-off-by: Wanpeng Li <
[email protected]
>
Reviewed-by: Paolo Bonzini <
[email protected]
>
Signed-off-by: Radim Krčmář <
[email protected]
>
arch/x86/kvm/x86.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index f4a978e3603075e25e28cf02875356cd30c1856a..bfda79fb102c459c05393311fd81633cd8ba45d6 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-8461,6
+8461,9
@@
static inline bool kvm_vcpu_has_events(struct kvm_vcpu *vcpu)
if (vcpu->arch.pv.pv_unhalted)
return true;
+ if (vcpu->arch.exception.pending)
+ return true;
+
if (kvm_test_request(KVM_REQ_NMI, vcpu) ||
(vcpu->arch.nmi_pending &&
kvm_x86_ops->nmi_allowed(vcpu)))