]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4c4164f3b3fae87d4706aa9e52720ab7fa9ed1a
tree478daae0cddf865827db76dffc505d87ddc6a63f
parent802342ced0f3adbbce43c62fda1708206b1cffc9
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