vhost: move dirty logging cache out of virtqueue
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 23 Mar 2021 09:02:18 +0000 (10:02 +0100)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 31 Mar 2021 05:48:32 +0000 (07:48 +0200)
commit1818a63147fb034f185ce75554957a2eb9fb47d4
tree25039af381babc214b60324f82c5b1efc1ee8241
parent2453bbf7e1b4b4e423e06ae793580df26d9603f7
vhost: move dirty logging cache out of virtqueue

This patch moves the per-virtqueue's dirty logging cache
out of the virtqueue struct, by allocating it dynamically
only when live-migration is enabled.

It saves 8 cachelines in vhost_virtqueue struct.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Tested-by: Balazs Nemeth <bnemeth@redhat.com>
lib/librte_vhost/vhost.c
lib/librte_vhost/vhost.h
lib/librte_vhost/vhost_user.c