vhost-vdpa: use bind_mm/unbind_mm device callbacks
mainline inclusion from mainline-v6.4-rc1 commit 9067de47 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I86ITO Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9067de4725a299bc1baf11de9f5040fdd0bd05c3 ---------------------------------------------------------------------- When the user call VHOST_SET_OWNER ioctl and the vDPA device has `use_va` set to true, let's call the bind_mm callback. In this way we can bind the device to the user address space and directly use the user VA. The unbind_mm callback is called during the release after stopping the device. Signed-off-by:Stefano Garzarella <sgarzare@redhat.com> Message-Id: <20230404131326.44403-3-sgarzare@redhat.com> Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
jiangdongxu <jiangdongxu1@huawei.com>
Loading
Please sign in to comment