projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ece15ba
)
KVM: Avoid spurious execeptions after setting registers
author
Jan Kiszka
<jan.kiszka@siemens.com>
Wed, 30 Apr 2008 15:59:04 +0000
(17:59 +0200)
committer
Avi Kivity
<avi@qumranet.com>
Sun, 4 May 2008 11:44:47 +0000
(14:44 +0300)
Clear pending exceptions when setting new register values. This avoids
spurious exceptions after restoring a vcpu state or after
reset-on-triple-fault.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@qumranet.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 017daa2561f4b4a1b9ac2db6f7122c4b1892ca91..bc224bba1e874caf1625af5bde586b6014b444f3 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-3022,6
+3022,8
@@
int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs)
kvm_x86_ops->decache_regs(vcpu);
+ vcpu->arch.exception.pending = false;
+
vcpu_put(vcpu);
return 0;