[PATCH v5 0/3] xen/balloon: fixes for memory hotplug

From: Roger Pau Monne
Date: Tue Sep 01 2020 - 04:33:37 EST


Hello,

The following series contain some fixes in order to split Xen
unpopulated memory handling from the ballooning driver using the
ZONE_DEVICE functionality, so that physical memory regions used to map
foreign pages are not tied to memory hotplug.

Note this is currently only available for x86 due to Arm using an
identity map for dom0 p2m and thus needing special handling.

Thanks, Roger.

Roger Pau Monne (3):
xen/balloon: add header guard
memremap: rename MEMORY_DEVICE_DEVDAX to MEMORY_DEVICE_GENERIC
xen: add helpers to allocate unpopulated memory

drivers/dax/device.c | 2 +-
drivers/gpu/drm/xen/xen_drm_front_gem.c | 9 +-
drivers/xen/Kconfig | 11 ++
drivers/xen/Makefile | 1 +
drivers/xen/balloon.c | 4 +-
drivers/xen/grant-table.c | 4 +-
drivers/xen/privcmd.c | 4 +-
drivers/xen/unpopulated-alloc.c | 185 ++++++++++++++++++++++++
drivers/xen/xenbus/xenbus_client.c | 6 +-
drivers/xen/xlate_mmu.c | 4 +-
include/linux/memremap.h | 9 +-
include/xen/balloon.h | 4 +
include/xen/xen.h | 9 ++
mm/memremap.c | 2 +-
14 files changed, 232 insertions(+), 22 deletions(-)
create mode 100644 drivers/xen/unpopulated-alloc.c

--
2.28.0