On Wed, Oct 13, 2021 at 12:58:04PM +0800, Gavin Shan wrote: > The following option is used to specify the distance map. It's > possible the option isn't provided by user. In this case, the > distance map isn't populated and exposed to platform. On the > other hand, the empty NUMA node, where no memory resides, is > allowed on platforms like ARM64 virt. For these empty NUMA > nodes, their corresponding device-tree nodes aren't populated, > but their NUMA IDs should be included in the "/distance-map" > device-tree node, so that kernel can probe them properly if > device-tree is used. > > -numa,dist,src=<numa_id>,dst=<numa_id>,val=<distance> > > This adds extra check after the machine is initialized, to > ask for the distance map from user when empty nodes exist in > device-tree. > > Signed-off-by: Gavin Shan <gs...@redhat.com> > --- > hw/core/machine.c | 4 ++++ > hw/core/numa.c | 24 ++++++++++++++++++++++++ > include/sysemu/numa.h | 1 + > 3 files changed, 29 insertions(+) >
Reviewed-by: Andrew Jones <drjo...@redhat.com>