KVM: x86: Move MPK feature detection to common code
authorBabu Moger <babu.moger@amd.com>
Tue, 12 May 2020 23:59:16 +0000 (18:59 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jun 2020 16:35:06 +0000 (12:35 -0400)
commitfa44b82eb8318facc56356afa897f3f3105172e1
tree478daae0cddf865827db76dffc505d87ddc6a63f
parent65b1891499b1feb74aaab514c3d34080dc6702d8
KVM: x86: Move MPK feature detection to common code

Both Intel and AMD support (MPK) Memory Protection Key feature.
Move the feature detection from VMX to the common code. It should
work for both the platforms now.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Message-Id: <158932795627.44260.15144185478040178638.stgit@naples-babu.amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/vmx/vmx.c