Skip to content

x86/tdx: Clean up the definitions of TDX TD ATTRIBUTES

Xiaoyao Li kvm linux-coco lkml 4 versions – Applied

Status from this message: The following commit has been merged into the x86/tdx branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 1 replyApplied
  2. v34 patches 8 repliesSuperseded
  3. v23 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches9 repliesSuperseded

Changes in v4 from the cover letter

- Collect Reviewed-by and Acked-by tags;
- rebase to v7.0-rc1;

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4x86/tdx: Fix the typo in TDX_ATTR_MIGRTABLEarch/x86/coco/tdx/debug.c arch/x86/include/asm/shared/tdx.h+3 -30 replies
2/4KVM: TDX: Remove redundant definitions of TDX_TD_ATTR_*arch/x86/kvm/vmx/tdx.c arch/x86/kvm/vmx/tdx_arch.h+2 -80 replies
3/4x86/tdx: Rename TDX_ATTR_* to TDX_TD_ATTR_*arch/x86/coco/tdx/debug.c arch/x86/coco/tdx/tdx.c arch/x86/include/asm/shared/tdx.h +1 more+44 -440 replies
4/4KVM: TDX: Rename KVM_SUPPORTED_TD_ATTRS to KVM_SUPPORTED_TDX_TD_ATTRSarch/x86/kvm/vmx/tdx.c+2 -20 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKirill A. ShutemovKai HuangSean ChristophersonRick EdgecombeBinbin WuKiryl ShutsemauNikolay Borisov
SeriesR-b
1/4R-b R-b A-b
2/4R-b R-b A-b R-b
3/4A-b R-b R-b R-b
4/4A-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/4] x86/tdx: Clean up the definitions of TDX TD ATTRIBUTES

The main purpose of this series was to remove redundant macros between core TDX and KVM, along with a typo fix. They were implemented as patch 1 and patch 2.

During the review of v1 and v2, there was encouragement to refine the names of the macros related to TD attributes to clarify their scope. Thus patch 3 and patch 4 are added.

Note, Binbin suggested to rename tdx_attributes[] to tdx_td_attributes[] during v3 review. However, this v4 doesn't do it but leaves it for future cleanup to avoid making it more complicated because it also looks like it needs to rename "Attributes" to "TD Attributes" in tdx_dump_attributes(), which has user visibility change.

Changes in v4:
- Collect Reviewed-by and Acked-by tags;
- rebase to v7.0-rc1;

v3: https://lore.kernel.org/kvm/[email protected]/
Changes in v3:
- use the changelog provided by Rick for patch 1;
- collect Reviewed-by on patch 4;
- Add patch 3;

v2: https://lore.kernel.org/all/[email protected]/
Changes in v2:
- collect Reviewed-by;
- Explains the impact of the change in patch 1 changelog;
- Add patch 3.

v1: https://lore.kernel.org/all/[email protected]/

Xiaoyao Li (4):
x86/tdx: Fix the typo in TDX_ATTR_MIGRTABLE
KVM: TDX: Remove redundant definitions of TDX_TD_ATTR_* x86/tdx: Rename TDX_ATTR_* to TDX_TD_ATTR_*
KVM: TDX: Rename KVM_SUPPORTED_TD_ATTRS to KVM_SUPPORTED_TDX_TD_ATTRS

 arch/x86/coco/tdx/debug.c         | 26 ++++++++--------
 arch/x86/coco/tdx/tdx.c           |  8 ++---
 arch/x86/include/asm/shared/tdx.h | 50 +++++++++++++++----------------
 arch/x86/kvm/vmx/tdx.c            |  4 +--
 arch/x86/kvm/vmx/tdx_arch.h       |  6 ----
 5 files changed, 44 insertions(+), 50 deletions(-)

base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f

Signature · 1 line
2.43.0