diff options
author | Sean Christopherson <[email protected]> | 2024-10-31 13:32:14 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-11-04 22:03:04 -0800 |
commit | e5d253c60e9627a22940e00a05a6115d722f07ed (patch) | |
tree | efb1cfbbf8cca6a84c207a4f971be0bf86333d90 /scripts/gdb/linux/stackdepot.py | |
parent | 2657b82a78f18528bef56dc1b017158490970873 (diff) |
KVM: SVM: Propagate error from snp_guest_req_init() to userspace
If snp_guest_req_init() fails, return the provided error code up the
stack to userspace, e.g. so that userspace can log that KVM_SEV_INIT2
failed, as opposed to some random operation later in VM setup failing
because SNP wasn't actually enabled for the VM.
Note, KVM itself doesn't consult the return value from __sev_guest_init(),
i.e. the fallout is purely that userspace may be confused.
Fixes: 88caf544c930 ("KVM: SEV: Provide support for SNP_GUEST_REQUEST NAE event")
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions