projects
/
GitHub
/
LineageOS
/
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:
6affcbe
)
KVM: x86: Do not clear RFLAGS.TF when a singlestep trap occurs.
author
Kyle Huey
<me@kylehuey.com>
Tue, 29 Nov 2016 20:40:41 +0000
(12:40 -0800)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 8 Dec 2016 14:31:06 +0000
(15:31 +0100)
The trap flag stays set until software clears it.
Signed-off-by: Kyle Huey <khuey@kylehuey.com>
Signed-off-by: Radim Krčmář <rkrcmar@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 7b38c5e6f412f35502ef1c50671903740e8e0416..dd6b41ea61b657ac07afb4377fbd1374832126dc 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-5419,7
+5419,6
@@
static void kvm_vcpu_check_singlestep(struct kvm_vcpu *vcpu, unsigned long rflag
kvm_run->exit_reason = KVM_EXIT_DEBUG;
*r = EMULATE_USER_EXIT;
} else {
- vcpu->arch.emulate_ctxt.eflags &= ~X86_EFLAGS_TF;
/*
* "Certain debug exceptions may clear bit 0-3. The
* remaining contents of the DR6 register are never