Re: [PATCH v14 01/22] KVM: selftests: Add macros to simplify creating VM shapes for non-default types

Peter Fang <[email protected]>
Newsgroups dev.linux.lists.linux-coco,org.kernel.vger.kvm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest
Message-ID <20260819074433.GA3290799@pedri>
On Wed, Jul 22, 2026 at 11:13:06PM +0000, Lisa Wang wrote:
> From: Sean Christopherson <[email protected]>
> 
> Add VM_TYPE() and __VM_SHAPE() macros to create a vm_shape structure given
> a type (and mode), and use the macros to define VM_SHAPE_{SEV,SEV_ES,SNP}
> shapes for x86's SEV family of VM shapes.  Providing common infrastructure
> will avoid having to copy+paste vm_sev_create_with_one_vcpu() for TDX.
> 
> Use the new SEV+ shapes and drop vm_sev_create_with_one_vcpu().
> 
> Opportunistically move the existing VM_SHAPE() (now __VM_SHAPE()) macro
> below the definitions of VM_MODE_DEFAULT so that all of the SHAPE/TYPE
> macros are bundled together.
> 
> No functional change intended.
> 
> Reviewed-by: Binbin Wu <[email protected]>
> Reviewed-by: Ira Weiny <[email protected]>
> Reviewed-by: Xiaoyao Li <[email protected]>
> Signed-off-by: Sean Christopherson <[email protected]>

Missing the submitter's SOB?

> ---
>  tools/testing/selftests/kvm/include/kvm_util.h     | 27 ++++++++-------
>  .../testing/selftests/kvm/include/x86/processor.h  |  4 +++
>  tools/testing/selftests/kvm/include/x86/sev.h      |  2 --
>  tools/testing/selftests/kvm/lib/x86/sev.c          | 16 ---------
>  tools/testing/selftests/kvm/x86/sev_smoke_test.c   | 40 +++++++++++-----------
>  5 files changed, 39 insertions(+), 50 deletions(-)
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.