]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/pnv.c
ppc/spapr: Add hotremovable flag on DIMM LMBs on drmem_v2
authorLeonardo Bras <leonardo@linux.ibm.com>
Mon, 11 May 2020 20:02:02 +0000 (17:02 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 May 2020 05:29:36 +0000 (15:29 +1000)
commit0911a60c76b8598f1863c6951b2b690059465153
treebb4f7e24107dea32b36ebf14b60805c9e6398526
parent3c89b8d6ac5b8728cd7620f9885bd953edd18a11
ppc/spapr: Add hotremovable flag on DIMM LMBs on drmem_v2

On reboot, all memory that was previously added using object_add and
device_add is placed in this DIMM area.

The new SPAPR_LMB_FLAGS_HOTREMOVABLE flag helps Linux to put this memory in
the correct memory zone, so no unmovable allocations are made there,
allowing the object to be easily hot-removed by device_del and
object_del.

This new flag was accepted in Power Architecture documentation.

Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
Reviewed-by: Bharata B Rao <bharata@linux.ibm.com>
Message-Id: <20200511200201.58537-1-leobras.c@gmail.com>
[dwg: Fixed syntax error spotted by Cédric Le Goater]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c
hw/ppc/spapr.c
include/hw/ppc/spapr.h
target/ppc/cpu.h
target/ppc/excp_helper.c