• David Hildenbrand's avatar
    memblock: allow to specify flags with memblock_add_node() · 952eea9b
    David Hildenbrand authored
    We want to specify flags when hotplugging memory.  Let's prepare to pass
    flags to memblock_add_node() by adjusting all existing users.
    
    Note that when hotplugging memory the system is already up and running
    and we might have concurrent memblock users: for example, while we're
    hotplugging memory, kexec_file code might search for suitable memory
    regions to place kexec images.  It's important to add the memory
    directly to memblock via a single call with the right flags, instead of
    adding the memory first and apply flags later: otherwise, concurrent
    memblock users might temporarily stumble over memblocks with wrong
    flags, which will be important in a follow-up patch that introduces a
    new flag to properly handle add_memory_driver_managed().
    
    Link: https://lkml.kernel.org/r/20211004093605.5830-4-david@redhat.com
    
    Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
    Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    Signed-off-by: David Hildenbrand <david@redhat....
    952eea9b
setup.c 29.1 KB