diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-20 13:34:50 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-20 13:47:52 -0400 |
commit | 2da1ed62d55c6cbebbdee924f6af4e87bb6666e5 (patch) | |
tree | 6d56bcc69e4cdde9b8ba48197b5f11492f32cc9f /arch/x86/ia32 | |
parent | d33294541889b023068522270cd4153ddd8e4635 (diff) | |
download | linux-2da1ed62d55c6cbebbdee924f6af4e87bb6666e5.tar.bz2 |
KVM: SVM: document KVM_MEM_ENCRYPT_OP, let userspace detect if SEV is available
Userspace has no way to query if SEV has been disabled with the
sev module parameter of kvm-amd.ko. Actually it has one, but it
is a hack: do ioctl(KVM_MEM_ENCRYPT_OP, NULL) and check if it
returns EFAULT. Make it a little nicer by returning zero for
SEV enabled and NULL argument, and while at it document the
ioctl arguments.
Cc: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/ia32')
0 files changed, 0 insertions, 0 deletions