net/virtio-user: avoid parsing process mappings
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 5 Sep 2018 04:28:51 +0000 (12:28 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:01 +0000 (01:41 +0200)
commit534bccbad17bace0b899861652d0b89115b00a7e
tree51f62df057630d54a08234e1aed0122551e1ae92
parent7ff269575bd144482d56a20fec61187f1af15dda
net/virtio-user: avoid parsing process mappings

Recently some memory APIs were introduced to allow users to
get the file descriptor and offset for each memory segment.
We can leverage those APIs to get rid of the /proc magic on
memory table preparation in vhost-user backend.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/vhost_user.c