net/virtio-user: fix memory hotplug support in vhost-kernel
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 5 Sep 2018 04:28:52 +0000 (12:28 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:01 +0000 (01:41 +0200)
commit757286542560ab7f326ae71f5ef8d83050ee5646
tree874077ce3e8584627c7871cbfcac98f9c5d94f3d
parent534bccbad17bace0b899861652d0b89115b00a7e
net/virtio-user: fix memory hotplug support in vhost-kernel

It's possible to have much more hugepage backed memory regions
than what vhost-kernel supports due to the memory hotplug, which
may cause problems. A better solution is to have the virtio-user
pass all the memory ranges reserved by DPDK to vhost-kernel.

Fixes: 12ecb2f63b12 ("net/virtio-user: support memory hotplug")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/vhost_kernel.c