[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e7a293bf-acbf-b69a-a082-4a2cce9701b0@amd.com>
Date: Fri, 20 Mar 2020 14:14:19 -0500
From: Brijesh Singh <brijesh.singh@....com>
To: Paolo Bonzini <pbonzini@...hat.com>, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Cc: brijesh.singh@....com
Subject: Re: [PATCH] KVM: SVM: document KVM_MEM_ENCRYPT_OP, let userspace
detect if SEV is available
On 3/20/20 12:42 PM, Paolo Bonzini wrote:
> 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@....com>
> Signed-off-by: Paolo Bonzini <pbonzini@...hat.com>
thanks
Reviewed-by: Brijesh Singh <brijesh.singh@....com>
Powered by blists - more mailing lists