All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] x86/sev: Generalize sev_setup_arch()
@ 2023-06-09 17:12 Alexander Shishkin
  2023-06-09 17:12 ` [PATCH v2 1/2] x86/sev: Move sev_setup_arch() to mem_encrypt.c Alexander Shishkin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alexander Shishkin @ 2023-06-09 17:12 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
	H. Peter Anvin, Andy Lutomirski, Peter Zijlstra, Alison Schofield,
	Alexander Shishkin

Hi,

Since previous version [0], I added 2/2, which is a minor cleanup.

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/20230530121728.28854-1-alexander.shishkin@linux.intel.com/

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 | 11 +++++++--
 arch/x86/kernel/setup.c            |  2 +-
 arch/x86/mm/mem_encrypt.c          | 34 ++++++++++++++++++++++++++++
 arch/x86/mm/mem_encrypt_amd.c      | 36 ------------------------------
 4 files changed, 44 insertions(+), 39 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-14 20:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-09 17:12 [PATCH v2 0/2] x86/sev: Generalize sev_setup_arch() Alexander Shishkin
2023-06-09 17:12 ` [PATCH v2 1/2] x86/sev: Move sev_setup_arch() to mem_encrypt.c Alexander Shishkin
2023-08-14 20:21   ` Tom Lendacky
2023-06-09 17:12 ` [PATCH v2 2/2] x86/sev: Drop unneeded include Alexander Shishkin
2023-07-31 18:01 ` [PATCH v2 0/2] x86/sev: Generalize sev_setup_arch() Alexander Shishkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.