Re: [PATCH vhost next 09/10] vdpa/mlx5: Add shared memory registration code

From: Jason Wang
Date: Thu Jul 16 2020 - 05:32:55 EST



On 2020/7/16 äå4:28, Eli Cohen wrote:
On Thu, Jul 16, 2020 at 04:13:21PM +0800, Jason Wang wrote:
On 2020/7/16 äå3:23, Eli Cohen wrote:
Add code to support registering guest's memory region for the device.

It would be better to use "userspace" memory here since vhost-vDPA
could be used by e.g dpdk application on the host in the future.

How about replaciing "guest's memory" with "address space". It is more
general and aligns with the with the fact that virio driver can run in
the guest's kernel.


Probably but note that guest driver is not the only user for this. It could be either:

1) Guest virtio driver
2) Userspace virtio driver on the host
3) Kernel virtio driver on the host.

Thanks