vhost: fix packed virtqueue ready condition
authorAdrian Moreno <amorenoz@redhat.com>
Sat, 25 Jan 2020 08:52:16 +0000 (09:52 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 10:47:18 +0000 (11:47 +0100)
commitc5a910dd92ecbad24f86b4c59b4ff8105b5149fd
tree25b728cc02a968b502acf1dc6456f6c71ce513e5
parent03df3c7473dfd8f2efafe525b61ef980d0a68aa1
vhost: fix packed virtqueue ready condition

Consider a virtqueue ready when, apart from the descriptor area,
both event suppression areas have been mapped.

Fixes: 2d1541e2b6b3 ("vhost: add vring address setup for packed queues")
Cc: stable@dpdk.org
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/vhost_user.c