• B
    spapr: Support ibm,dynamic-reconfiguration-memory · 03d196b7
    Bharata B Rao 提交于
    Parse ibm,architecture.vec table obtained from the guest and enable
    memory node configuration via ibm,dynamic-reconfiguration-memory if guest
    supports it. This is in preparation to support memory hotplug for
    sPAPR guests.
    
    This changes the way memory node configuration is done. Currently all
    memory nodes are built upfront. But after this patch, only memory@0 node
    for RMA is built upfront. Guest kernel boots with just that and rest of
    the memory nodes (via memory@XXX or ibm,dynamic-reconfiguration-memory)
    are built when guest does ibm,client-architecture-support call.
    
    Note: This patch needs a SLOF enhancement which is already part of
    SLOF binary in QEMU.
    Signed-off-by: NBharata B Rao <bharata@linux.vnet.ibm.com>
    Reviewed-by: NDavid Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
    03d196b7
spapr_hcall.c 29.2 KB