linux/arch/x86/kvm/svm
Paolo Bonzini a8d908b587 KVM: x86: report sev_pin_memory errors with PTR_ERR
Callers of sev_pin_memory() treat
NULL differently:

sev_launch_secret()/svm_register_enc_region() return -ENOMEM
sev_dbg_crypt() returns -EFAULT.

Switching to ERR_PTR() preserves the error and enables cleaner reporting of
different kinds of failures.

Suggested-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-07-08 16:21:42 -04:00
..
avic.c KVM: SVM: Move AVIC code to separate file 2020-04-03 10:53:56 -04:00
nested.c KVM: nSVM: Check that DR6[63:32] and DR7[64:32] are not set on vmrun of nested guests 2020-07-08 16:21:41 -04: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 KVM: x86: report sev_pin_memory errors with PTR_ERR 2020-07-08 16:21:42 -04:00
svm.c KVM: X86: Do the same ignore_msrs check for feature msrs 2020-07-08 16:21:40 -04:00
svm.h KVM: nSVM: leave guest mode when clearing EFER.SVME 2020-06-01 04:26:03 -04:00
vmenter.S KVM: SVM: Do not setup frame pointer in __svm_vcpu_run 2020-04-15 12:08:38 -04:00