KVM: X86: Move handling of INVPCID types to x86
authorBabu Moger <babu.moger@amd.com>
Fri, 11 Sep 2020 19:29:12 +0000 (14:29 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:17 +0000 (07:57 -0400)
commit9715092f8d7eaab2e06a86b67bffc61c20e76f17
tree380f197f4c7a16531a28241ba65eacd6929d2158
parent3f3393b3ce383600fc7255f5ec04385209b6f404
KVM: X86: Move handling of INVPCID types to x86

INVPCID instruction handling is mostly same across both VMX and
SVM. So, move the code to common x86.c.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Message-Id: <159985255212.11252.10322694343971983487.stgit@bmoger-ubuntu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h