net/virtio: allocate vrings on device NUMA node
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 27 Nov 2018 10:54:27 +0000 (11:54 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Dec 2018 18:17:42 +0000 (18:17 +0000)
commit4a5140ab17d29e77eefa47b5cb514238e8e0c132
treea082c54f83cc04d567f128788777c268881f5f12
parentcf14478d775cadbaed4f5aa96e3812b44a2383c1
net/virtio: allocate vrings on device NUMA node

When a guest is spanned on multiple NUMA nodes and
multiple Virtio devices are spanned onto these nodes,
we expect that their ring memory is allocated in the
right memory node.

Otherwise, vCPUs from node A may be polling Virtio rings
allocated on node B, which would increase QPI bandwidth
and impact performance.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
drivers/net/virtio/virtio_ethdev.c