]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11acf462b505f0c44cf4f869acf392e7f9d2701c
treebe1252d68a959a20dff7badc03c9feed06fafa12
parent84915c86adb1fb9848de929575795cdf55165cb3
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: 3a2b9f20e8e7 ("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