lkml.org 
[lkml]   [2024]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v4 04/11] x86/startup_64: Defer assignment of 5-level paging global variables
    On Wed, 21 Feb 2024 at 12:13, Borislav Petkov <bp@alien8.de> wrote:
    >
    > On Wed, Feb 21, 2024 at 11:20:13AM +0100, Ard Biesheuvel wrote:
    > > Just the below should be sufficient
    > >
    > > --- a/arch/x86/include/asm/pgtable_64_types.h
    > > +++ b/arch/x86/include/asm/pgtable_64_types.h
    > > @@ -22,7 +22,7 @@ typedef struct { pteval_t pte; } pte_t;
    > > typedef struct { pmdval_t pmd; } pmd_t;
    > >
    > > -#ifdef CONFIG_X86_5LEVEL
    > > extern unsigned int __pgtable_l5_enabled;
    > >
    > > +#ifdef CONFIG_X86_5LEVEL
    > > #ifdef USE_EARLY_PGTABLE_L5
    >
    > Perhaps but the CONFIG_X86_5LEVEL ifdeffery is just ugly and getting
    > unnecessary.
    >

    That all gets ripped out in the last patch.


    Btw v5 is good to go, in case you're ok switching to that:

    https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/log/?h=x86-pie-for-sev-v5

    \
     
     \ /
      Last update: 2024-05-27 15:14    [W:5.816 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site