Skip to content

x86/sev: Generalize sev_setup_arch()

Alexander Shishkin lkml 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v22 patches 2 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Changes in v3 from the cover letter

* rebased
* moved mem_encrypt_setup_arch under a common #ifdef CONFIG_X86_MEM_ENCRYPT per Tom's comment

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2x86/sev: Move sev_setup_arch() to mem_encrypt.carch/x86/include/asm/mem_encrypt.h arch/x86/kernel/setup.c arch/x86/mm/mem_encrypt.c +1 more+37 -380 replies
2/2x86/sev: Drop unneeded includearch/x86/mm/mem_encrypt_amd.c+0 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTom Lendacky
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] x86/sev: Generalize sev_setup_arch()

Hi,

v3:
* rebased
* moved mem_encrypt_setup_arch under a common #ifdef CONFIG_X86_MEM_ENCRYPT per Tom's comment

v2: [1]
* added 2/2, which is a minor cleanup

v1: [0]

The main intention of this is to move sev_setup_arch() to mem_encrypt.c to reflect the fact that it's not SEV-specific, but covers TDX as well, although unintentionally.

While looking at it, I also noticed that mem_encrypt_amd.c still includes virtio_config.h, which was needed for the code that since got moved to a different place (and even there doesn't require the include any more).

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

Alexander Shishkin (2):
x86/sev: Move sev_setup_arch() to mem_encrypt.c
x86/sev: Drop unneeded include

 arch/x86/include/asm/mem_encrypt.h |  4 ++--
 arch/x86/kernel/setup.c            |  2 +-
 arch/x86/mm/mem_encrypt.c          | 34 ++++++++++++++++++++++++++++
 arch/x86/mm/mem_encrypt_amd.c      | 36 ------------------------------
 4 files changed, 37 insertions(+), 39 deletions(-)
Signature · 1 line
2.40.1