• A
    efi: Permit multiple entries in persistent memreserve data structure · e9dcf9b3
    Ard Biesheuvel 提交于
    mainline inclusion
    from mainline-5.0
    commit 5f0b0ecf043a5319e729c11a53bc8294df12dab3
    category: bugfix
    bugzilla: 5501
    CVE: NA
    
    -------------------------------------------------
    
    In preparation of updating efi_mem_reserve_persistent() to cause less
    fragmentation when dealing with many persistent reservations, update
    the struct definition and the code that handles it currently so it
    can describe an arbitrary number of reservations using a single linked
    list entry. The actual optimization will be implemented in a subsequent
    patch.
    Tested-by: NMarc Zyngier <marc.zyngier@arm.com>
    Signed-off-by: NArd Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Arend van Spriel <arend.vanspriel@broadcom.com>
    Cc: Bhupesh Sharma <bhsharma@redhat.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Dave Hansen <dave.hansen@intel.com>
    Cc: Eric Snowberg <eric.snowberg@oracle.com>
    Cc: Hans de Goede <hdegoede@redhat.com>
    Cc: Joe Perches <joe@perches.com>
    Cc: Jon Hunter <jonathanh@nvidia.com>
    Cc: Julien Thierry <julien.thierry@arm.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Matt Fleming <matt@codeblueprint.co.uk>
    Cc: Nathan Chancellor <natechancellor@gmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>
    Cc: Sedat Dilek <sedat.dilek@gmail.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: YiFei Zhu <zhuyifei1999@gmail.com>
    Cc: linux-efi@vger.kernel.org
    Link: http://lkml.kernel.org/r/20181129171230.18699-10-ard.biesheuvel@linaro.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
    Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
    Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
    e9dcf9b3
efi.c 26.1 KB