]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: SEV: publish supported VMSA features
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Apr 2024 12:13:15 +0000 (08:13 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Apr 2024 17:08:22 +0000 (13:08 -0400)
commitac5c48027bacb1b5525120db6d013373e0520b50
treeda7bb74cd6f47022976387b18bd79f5f42a57d81
parent546d714b0880f20572d21ece5b9544c0e37a7a49
KVM: SEV: publish supported VMSA features

Compute the set of features to be stored in the VMSA when KVM is
initialized; move it from there into kvm_sev_info when SEV is initialized,
and then into the initial VMSA.

The new variable can then be used to return the set of supported features
to userspace, via the KVM_GET_DEVICE_ATTR ioctl.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Isaku Yamahata <isaku.yamahata@intel.com>
Message-ID: <20240404121327.3107131-6-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/x86/amd-memory-encryption.rst
arch/x86/include/uapi/asm/kvm.h
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h