Skip to content

x86/head/64: Mark the code as __head in mem_encrypt_identity.c

Hou Wenlong lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/head/64: Move the __head definition to <asm/init.h>arch/x86/include/asm/init.h arch/x86/kernel/head64.c+3 -20 replies
2/2x86/sme: Mark the code as __head in mem_encrypt_identity.carch/x86/include/asm/mem_encrypt.h arch/x86/mm/mem_encrypt_identity.c+18 -176 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] x86/head/64: Mark the code as __head in mem_encrypt_identity.c

Similar to head64.c, mark all the code in mem_encrypt_identity.c as __head since it runs in the identity address. This is part of the patchset that builds the head code as PIE[1].

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

Hou Wenlong (2):
x86/head/64: Move the __head definition to <asm/init.h> x86/sme: Mark the code as __head in mem_encrypt_identity.c

 arch/x86/include/asm/init.h        |  2 ++
 arch/x86/include/asm/mem_encrypt.h |  8 ++++----
 arch/x86/kernel/head64.c           |  3 +--
 arch/x86/mm/mem_encrypt_identity.c | 27 ++++++++++++++-------------
 4 files changed, 21 insertions(+), 19 deletions(-)

base-commit: 0c09c1d70838475762255844b72fa0e7fd6ace7c --
2.31.1