linux_dsm_epyc7002/arch/x86/kvm/svm
Paolo Bonzini da5b48ac72 KVM: nSVM: fix running nested guests when npt=0
commit a04aead144fd938c2d9869eb187e5b9ea0009bae upstream.

In case of npt=0 on host, nSVM needs the same .inject_page_fault tweak
as VMX has, to make sure that shadow mmu faults are injected as vmexits.

It is not clear why this is needed at all, but for now keep the same
code as VMX and we'll fix it for both.

Based on a patch by Maxim Levitsky <mlevitsk@redhat.com>.

Fixes: 7c86663b68 ("KVM: nSVM: inject exceptions via svm_check_nested_events")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-04 11:38:39 +01:00
..
avic.c KVM: SVM: Initialize prev_ga_tag before use 2020-10-21 17:48:49 -04:00
nested.c KVM: nSVM: fix running nested guests when npt=0 2021-03-04 11:38:39 +01:00
pmu.c KVM: x86/pmu: Tweak kvm_pmu_get_msr to pass 'struct msr_data' in 2020-06-01 04:26:08 -04:00
sev.c Fix unsynchronized access to sev members through svm_register_enc_region 2021-02-10 09:29:18 +01:00
svm.c KVM: SVM: Intercept INVPCID when it's disabled to inject #UD 2021-03-04 11:38:20 +01:00
svm.h KVM: x86: cleanup CR3 reserved bits checks 2021-02-17 11:02:24 +01:00
vmenter.S x86/kvm/svm: Move guest enter/exit into .noinstr.text 2020-07-09 07:08:41 -04:00