KVM: x86: Use DR7_GD macro instead of open coding check in emulator
authorSean Christopherson <seanjc@google.com>
Tue, 30 Aug 2022 23:15:56 +0000 (23:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:03:06 +0000 (12:03 -0400)
commit0701ec903e6bf1fcc07f92e64ca8474d151844da
treeb3df52928bde627a30d184d4b2d1b37edc7891cb
parent5623f751bd9c438ed12840e086f33c4646440d19
KVM: x86: Use DR7_GD macro instead of open coding check in emulator

Use DR7_GD in the emulator instead of open coding the check, and drop a
comically wrong comment.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20220830231614.3580124-10-seanjc@google.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c