KVM: x86: Suppress code #DBs on Intel if MOV/POP SS blocking is active
authorSean Christopherson <seanjc@google.com>
Tue, 30 Aug 2022 23:15:52 +0000 (23:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:03:05 +0000 (12:03 -0400)
commitbaf67ca8e545b6ac77a7e2abd52b9961e672f8f0
tree90e9fd3920e5c27534055718b24812ed53915244
parentd500e1ed3dc873818277e109ccf6407118669236
KVM: x86: Suppress code #DBs on Intel if MOV/POP SS blocking is active

Suppress code breakpoints if MOV/POP SS blocking is active and the guest
CPU is Intel, i.e. if the guest thinks it's running on an Intel CPU.
Intel CPUs inhibit code #DBs when MOV/POP SS blocking is active, whereas
AMD (and its descendents) do not.

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