[PATCH v9 14/24] s390/tools: Use arm64 headers

Hendrik Brueckner brueckner at linux.ibm.com
Thu Oct 1 03:25:49 PDT 2026


On Wed, Sep 30, 2026 at 07:34:29PM +0200, Steffen Eiden wrote:
> Introduce a flexible system for sharing ARM64 headers with s390 KVM.
> Selected arm64 headers or snippet of headers will be reachable by s390
> code through asm/header.h.
> 
> Add copy-arm64h.awk that detects ARM64_S390_COMMON markers and extracts
> marked section into a generated header consumable by s390. Falls back to
> full file copy when no markers are found.
> 
> Transform copied includes by replacing '#include <asm/...>' with
> '#include <arm64/...>' and similar for uapi headers to ensure
> correct path resolution on s390 and allow for a clear separation of s390
> asm headers and arm64 asm headers.
> 
> Integrate this extraction into the s390/kapi target, conditional on
> CONFIG_KVM.
> 
> Signed-off-by: Steffen Eiden <seiden at linux.ibm.com>
> ---
>  arch/s390/include/uapi/Kbuild        |  6 ++
>  arch/s390/tools/Makefile             |  6 +-
>  arch/s390/tools/Makefile.arm64h      | 55 ++++++++++++++++++
>  arch/s390/tools/copy-arm64h-full.awk | 50 +++++++++++++++++
>  arch/s390/tools/copy-arm64h.awk      | 83 ++++++++++++++++++++++++++++

Thanks for the updates.

Reviewed-by: Hendrik Brueckner <brueckner at linux.ibm.com>



More information about the linux-arm-kernel mailing list