Skip to content
Commit f9dcf08e authored by Radim Krčmář's avatar Radim Krčmář
Browse files

Revert "kvm: x86: optimize dr6 restore"



This reverts commit 0e0a53c5.

As Christian Ehrhardt noted:

  The most common case is that vcpu->arch.dr6 and the host's %dr6 value
  are not related at all because ->switch_db_regs is zero. To do this
  all correctly, we must handle the case where the guest leaves an arbitrary
  unused value in vcpu->arch.dr6 before disabling breakpoints again.

  However, this means that vcpu->arch.dr6 is not suitable to detect the
  need for a %dr6 clear.

Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent 574c0cfb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment