lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 4 Apr 2024 13:46:05 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Isaku Yamahata <isaku.yamahata@...el.com>
Cc: linux-kernel@...r.kernel.org, kvm@...r.kernel.org, michael.roth@....com, 
	seanjc@...gle.com, isaku.yamahata@...ux.intel.com, rick.p.edgecombe@...el.com, 
	xiaoyao.li@...el.com, kai.huang@...el.com
Subject: Re: [PATCH v4 05/15] KVM: SEV: publish supported VMSA features

On Tue, Mar 26, 2024 at 1:04 AM Isaku Yamahata <isaku.yamahata@...el.com> wrote:
>
> On Mon, Mar 18, 2024 at 07:33:42PM -0400,
> Paolo Bonzini <pbonzini@...hat.com> wrote:
>
> > 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.
>
> Hi. The current TDX KVM introduces KVM_TDX_CAPABILITIES and struct
> kvm_tdx_capabilities for feature enumeration.  I'm wondering if TDX should also
> use/switch to KVM_GET_DEVICE_ATTR with its own group.  What do you think?
> Something like
>
> #define KVM_DEVICE_ATTR_GROUP_SEV       1
> #define KVM_X86_SEV_VMSA_FEATURES       1
> #define KVM_X86_SEV_xxx                 ...
>
> #define KVM_DEVICE_ATTR_GROUP_TDX       2
> #define KVM_X86_TDX_xxx                 ...

Yes, that's a very good idea. I've added the group argument in v5.

Paolo


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ