Skip to content
Commit d5ff73bb authored by Michael Sammler's avatar Michael Sammler Committed by Michael S. Tsirkin
Browse files

virtio_pmem: populate numa information



Compute the numa information for a virtio_pmem device from the memory
range of the device. Previously, the target_node was always 0 since
the ndr_desc.target_node field was never explicitly set. The code for
computing the numa node is taken from cxl_pmem_region_probe in
drivers/cxl/pmem.c.

Signed-off-by: default avatarMichael Sammler <sammler@google.com>
Reviewed-by: default avatarPasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: default avatarPankaj Gupta <pankaj.gupta@amd.com>
Tested-by: default avatarMina Almasry <almasrymina@google.com>
Message-Id: <20221115214036.1571015-1-sammler@google.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 0e84f918
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment