]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "kvm: x86: optimize dr6 restore"
authorRadim Krčmář <rkrcmar@redhat.com>
Tue, 23 Oct 2018 14:31:38 +0000 (16:31 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Tue, 23 Oct 2018 14:34:59 +0000 (16:34 +0200)
commit35158443a474c33aada1bc9067175dadbdc19096
tree1f84c5fe04a1dd5ca9bd0b9ed64f29d532d71e09
parentdb03e973ff667027f41f4b77d3ce5e46e8b4a55d
Revert "kvm: x86: optimize dr6 restore"

This reverts commit 54c635a2e01a3d59f7659caeef8e440a3df001a2.

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: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c