OSDN Git Service

x86/cpu, kvm: Add the NO_NESTED_DATA_BP feature
authorKim Phillips <kim.phillips@amd.com>
Tue, 24 Jan 2023 16:33:14 +0000 (10:33 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 25 Jan 2023 11:36:34 +0000 (12:36 +0100)
commita9dc9ec5a1fafc3d2fe7a7b594eefaeaccf89a6b
tree1b5bcfbc2c0518353bd3f81e72359820cbd0ad4c
parentc35ac8c4bf600ee23bacb20f863aa7830efb23fb
x86/cpu, kvm: Add the NO_NESTED_DATA_BP feature

The "Processor ignores nested data breakpoints" feature was being
open-coded for KVM.  Add the feature to its newly introduced CPUID leaf
0x80000021 EAX proper.

Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20230124163319.2277355-4-kim.phillips@amd.com
arch/x86/include/asm/cpufeatures.h
arch/x86/kvm/cpuid.c