diff options
author | Michael Sammler <sammler@google.com> | 2022-11-15 21:40:36 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-02-15 06:46:22 -0500 |
commit | d5ff73bbb03e69bd92f1f7f134bbfa16624ad42b (patch) | |
tree | 926dd746eb7e05959731112aae0fe0780893f3cd /drivers/iommu | |
parent | 0e84f918fac8ae61dcb790534fad5e3555ca2930 (diff) | |
download | linux-stable-d5ff73bbb03e69bd92f1f7f134bbfa16624ad42b.tar.gz linux-stable-d5ff73bbb03e69bd92f1f7f134bbfa16624ad42b.tar.bz2 linux-stable-d5ff73bbb03e69bd92f1f7f134bbfa16624ad42b.zip |
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: Michael Sammler <sammler@google.com>
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Tested-by: Mina Almasry <almasrymina@google.com>
Message-Id: <20221115214036.1571015-1-sammler@google.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/iommu')
0 files changed, 0 insertions, 0 deletions