On Fri, Jun 05, 2026 at 06:46:06PM +0800, fanhuang wrote: > Introduce a TYPE_MEMORY_DEVICE subclass `sp-mem` for boot-time > SOFT_RESERVED memory exposed to the guest with a per-device NUMA > proximity domain. > > The device targets accelerator memory (HBM and similar) that the > firmware hands to the guest OS as SOFT_RESERVED memory, so a driver > in the guest -- rather than the kernel's general allocator -- owns > the range. > > Usage: > > -object memory-backend-ram,id=spm0,size=$SIZE > -numa node,nodeid=$N > -device sp-mem,id=dev0,memdev=spm0,node=$N[,addr=$GPA] > > The device is boot-time only (no hotplug). > > Signed-off-by: FangSheng Huang <[email protected]>
Reviewed-by: Gregory Price <[email protected]>
