vhost: fix missing guest pages table NUMA realloc
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 29 Jun 2021 16:11:28 +0000 (18:11 +0200)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 30 Jun 2021 11:26:58 +0000 (13:26 +0200)
commit57589cdfd784e6704ded490d80038584d6ade9df
tree7c5a41b4aba56ee1dbfa93fc25d29bd27321091a
parent8119ca9114b2ab2d42732e2a8b5cb31c47ed4eb3
vhost: fix missing guest pages table NUMA realloc

When the guest allocates virtqueues on a different NUMA node
than the one the Vhost metadata are allocated, both the Vhost
device struct and the virtqueues struct are reallocated.

However, reallocating the guest pages table was missing, which
likely causes at least one cross-NUMA accesses for every burst
of packets.

This patch reallocates this table on the same NUMA node as the
other metadata.

Fixes: e246896178e6 ("vhost: get guest/host physical address mappings")
Cc: stable@dpdk.org
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/vhost/vhost_user.c