x86/kernel: Move page table macros to header
authorJason Andryuk <jason.andryuk@amd.com>
Fri, 23 Aug 2024 19:36:29 +0000 (15:36 -0400)
committerJuergen Gross <jgross@suse.com>
Wed, 25 Sep 2024 14:06:03 +0000 (16:06 +0200)
commite3e8cd90f8e2eef67ded38f9c1a5f5520a407a62
tree54a6e15431d836fbff10d72ea9f34c1b6ef56155
parentb464b461d27d564125db760938643374864c1b1f
x86/kernel: Move page table macros to header

The PVH entry point will need an additional set of prebuild page tables.
Move the macros and defines to pgtable_64.h, so they can be re-used.

Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Message-ID: <20240823193630.2583107-5-jason.andryuk@amd.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/include/asm/pgtable_64.h
arch/x86/kernel/head_64.S