KVM: SVM: Intercept INVPCID when it's disabled to inject #UD
authorSean Christopherson <seanjc@google.com>
Fri, 12 Feb 2021 00:34:09 +0000 (16:34 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Feb 2021 12:33:28 +0000 (07:33 -0500)
commit0a8ed2eaac102c746d8d114f2787f06cb3e55dfb
treebe1252d68a959a20dff7badc03c9feed06fafa12
parentbcd22e145b9a65dd603c7b3d8079e948922787e4
KVM: SVM: Intercept INVPCID when it's disabled to inject #UD

Intercept INVPCID if it's disabled in the guest, even when using NPT,
as KVM needs to inject #UD in this case.

Fixes: 4407a797e941 ("KVM: SVM: Enable INVPCID feature on AMD")
Cc: Babu Moger <babu.moger@amd.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210212003411.1102677-2-seanjc@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c