vhost: fix virtqueue not accessible
authorMarvin Liu <yong.liu@intel.com>
Mon, 4 Nov 2019 10:13:22 +0000 (18:13 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:05 +0000 (23:15 +0100)
commitbc42ca1787233617e5ce8a848e268784884a8d07
tree2ebca82b8b60660ee980f793c5798675b45cb976
parent201e7482674551aeee27d0ff28e7bbd3fbfbbcf2
vhost: fix virtqueue not accessible

Log feature is disabled in vhost user, so that log address was invalid
when checking. Check whether log address is valid can work around it.
Log address should also be translated in packed ring virtqueue.

Fixes: fbda9f145927 ("vhost: translate incoming log address to GPA")
Cc: stable@dpdk.org
Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Adrian Moreno <amorenoz@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c