Skip to content

Commit 1319663

Browse files
xzpeterbonzini
authored andcommitted
KVM: X86: Set RTM for DB_VECTOR too for KVM_EXIT_DEBUG
RTM should always been set even with KVM_EXIT_DEBUG on #DB. Signed-off-by: Peter Xu <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 4d5523c commit 1319663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4683,7 +4683,7 @@ static int handle_exception_nmi(struct kvm_vcpu *vcpu)
46834683
kvm_queue_exception_p(vcpu, DB_VECTOR, dr6);
46844684
return 1;
46854685
}
4686-
kvm_run->debug.arch.dr6 = dr6 | DR6_FIXED_1;
4686+
kvm_run->debug.arch.dr6 = dr6 | DR6_FIXED_1 | DR6_RTM;
46874687
kvm_run->debug.arch.dr7 = vmcs_readl(GUEST_DR7);
46884688
/* fall through */
46894689
case BP_VECTOR:

0 commit comments

Comments
 (0)