]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Remove misleading DR6/DR7 adjustments from RSM emulation
authorSean Christopherson <seanjc@google.com>
Fri, 5 Feb 2021 01:24:57 +0000 (17:24 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Feb 2021 13:17:05 +0000 (08:17 -0500)
commit1ac3e33fd3acb90018d80a7c21f6c6f770e8ac18
tree0b9deb681e2c29c6265dea3fd77f69f376fca411
parent0d680b07c6576d875897dd191ae74bca2309ae77
KVM: x86: Remove misleading DR6/DR7 adjustments from RSM emulation

Drop the DR6/7 volatile+fixed bits adjustments in RSM emulation, which
are redundant and misleading.  The necessary adjustments are made by
kvm_set_dr(), which properly sets the fixed bits that are conditional
on the vCPU model.

Note, KVM incorrectly reads only bits 31:0 of the DR6/7 fields when
emulating RSM on x86-64.  On the plus side for this change, that bug
makes removing "& DRx_VOLATILE" a nop.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210205012458.3872687-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c