vhost: fix offset while mmaping log base address
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Thu, 8 Feb 2018 16:59:00 +0000 (17:59 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:42 +0000 (14:08 +0200)
commitfbc4d248b198db7f720fe31a47050a406632cc7a
treeed17e1460d5316840daa7faa2322895e79ce13d5
parent0fe99cf73eec0426ef9cb5eb71c1b8b4de40162c
vhost: fix offset while mmaping log base address

QEMU always set offset to 0 but for sanity we should take the offset
into account.

Fixes: 54f9e32305d4 ("vhost: handle dirty pages logging request")
Cc: stable@dpdk.org
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c