aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.h
diff options
context:
space:
mode:
authorGravatar Babu Moger <babu.moger@amd.com> 2020-09-11 14:29:12 -0500
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2020-09-28 07:57:17 -0400
commit9715092f8d7eaab2e06a86b67bffc61c20e76f17 (patch)
tree380f197f4c7a16531a28241ba65eacd6929d2158 /arch/x86/kvm/x86.h
parentKVM: X86: Rename and move the function vmx_handle_memory_failure to x86.c (diff)
downloadlinux-9715092f8d7eaab2e06a86b67bffc61c20e76f17.tar.gz
linux-9715092f8d7eaab2e06a86b67bffc61c20e76f17.tar.bz2
linux-9715092f8d7eaab2e06a86b67bffc61c20e76f17.zip
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>
Diffstat (limited to 'arch/x86/kvm/x86.h')
-rw-r--r--arch/x86/kvm/x86.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h
index c05a953ad29a..941f288c38aa 100644
--- a/arch/x86/kvm/x86.h
+++ b/arch/x86/kvm/x86.h
@@ -373,6 +373,7 @@ int kvm_valid_cr4(struct kvm_vcpu *vcpu, unsigned long cr4);
bool kvm_vcpu_exit_request(struct kvm_vcpu *vcpu);
int kvm_handle_memory_failure(struct kvm_vcpu *vcpu, int r,
struct x86_exception *e);
+int kvm_handle_invpcid(struct kvm_vcpu *vcpu, unsigned long type, gva_t gva);
#define KVM_MSR_RET_INVALID 2