projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60637aa
)
KVM: x86: Reset pending/inject NMI state on CPU reset
author
Jan Kiszka
<jan.kiszka@siemens.com>
Fri, 26 Sep 2008 07:30:48 +0000
(09:30 +0200)
committer
Avi Kivity
<avi@redhat.com>
Wed, 31 Dec 2008 14:51:40 +0000
(16:51 +0200)
CPU reset invalidates pending or already injected NMIs, therefore reset
the related state variables.
Based on original patch by Gleb Natapov.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index f1f8ff2f1fa2d4650266e1ed82ed86a1d4fe029c..1a71f6735593724b799386c2ee5194ce200c0fb3 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-3925,6
+3925,9
@@
void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu)
int kvm_arch_vcpu_reset(struct kvm_vcpu *vcpu)
{
+ vcpu->arch.nmi_pending = false;
+ vcpu->arch.nmi_injected = false;
+
return kvm_x86_ops->vcpu_reset(vcpu);
}
This page took
0.026573 seconds
and
5
git commands to generate.