diff options
author | Sean Christopherson <seanjc@google.com> | 2022-01-20 04:07:19 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-01-26 20:15:02 +0300 |
commit | cdf85e0c5dc766fc7fc779466280e454a6d04f87 (patch) | |
tree | 436f0d0cf7a1142c9edbe2c82d0ddce470d1d84c /arch/x86/kvm/svm/svm_onhyperv.h | |
parent | 3280cc22aea74d78ebbea277ff8bc8d593582de3 (diff) | |
download | linux-cdf85e0c5dc766fc7fc779466280e454a6d04f87.tar.xz |
KVM: SVM: Don't kill SEV guest if SMAP erratum triggers in usermode
Inject a #GP instead of synthesizing triple fault to try to avoid killing
the guest if emulation of an SEV guest fails due to encountering the SMAP
erratum. The injected #GP may still be fatal to the guest, e.g. if the
userspace process is providing critical functionality, but KVM should
make every attempt to keep the guest alive.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Message-Id: <20220120010719.711476-10-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm_onhyperv.h')
0 files changed, 0 insertions, 0 deletions