Re: [PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-18 Thread Jason Wang
On Fri, Jul 19, 2024 at 4:19 AM Steven Sistare wrote: > > On 7/18/2024 3:39 PM, Michael S. Tsirkin wrote: > > On Thu, Jul 18, 2024 at 08:45:31AM +0800, Jason Wang wrote: > For example: > > 1) old owner pass fd to new owner which is another process > 2) the new owner do VHOST_NE

Re: [PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-18 Thread Steven Sistare
On 7/18/2024 3:39 PM, Michael S. Tsirkin wrote: On Thu, Jul 18, 2024 at 08:45:31AM +0800, Jason Wang wrote: For example: 1) old owner pass fd to new owner which is another process 2) the new owner do VHOST_NEW_OWNER 3) new owner doesn't do remap correctly There's no way for the old owner to re

Re: [PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-18 Thread Michael S. Tsirkin
On Thu, Jul 18, 2024 at 08:45:31AM +0800, Jason Wang wrote: > > > For example: > > > > > > 1) old owner pass fd to new owner which is another process > > > 2) the new owner do VHOST_NEW_OWNER > > > 3) new owner doesn't do remap correctly > > > > > > There's no way for the old owner to remove/unpin

Re: [PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-17 Thread Jason Wang
On Thu, Jul 18, 2024 at 2:29 AM Steven Sistare wrote: > > On 7/16/2024 1:28 AM, Jason Wang wrote: > > On Mon, Jul 15, 2024 at 10:28 PM Steven Sistare > > wrote: > >> > >> On 7/14/2024 10:34 PM, Jason Wang wrote: > >>> On Fri, Jul 12, 2024 at 9:19 PM Steve Sistare > >>> wrote: > > When

Re: [PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-17 Thread Steven Sistare
On 7/16/2024 1:28 AM, Jason Wang wrote: On Mon, Jul 15, 2024 at 10:28 PM Steven Sistare wrote: On 7/14/2024 10:34 PM, Jason Wang wrote: On Fri, Jul 12, 2024 at 9:19 PM Steve Sistare wrote: When device ownership is passed to a new process via VHOST_NEW_OWNER, some devices need to know the n

Re: [PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-15 Thread Jason Wang
On Mon, Jul 15, 2024 at 10:28 PM Steven Sistare wrote: > > On 7/14/2024 10:34 PM, Jason Wang wrote: > > On Fri, Jul 12, 2024 at 9:19 PM Steve Sistare > > wrote: > >> > >> When device ownership is passed to a new process via VHOST_NEW_OWNER, > >> some devices need to know the new userland address

Re: [PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-15 Thread Steven Sistare
On 7/14/2024 10:34 PM, Jason Wang wrote: On Fri, Jul 12, 2024 at 9:19 PM Steve Sistare wrote: When device ownership is passed to a new process via VHOST_NEW_OWNER, some devices need to know the new userland addresses of the dma mappings. Define the new iotlb message type VHOST_IOTLB_REMAP to u

Re: [PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-14 Thread Jason Wang
On Fri, Jul 12, 2024 at 9:19 PM Steve Sistare wrote: > > When device ownership is passed to a new process via VHOST_NEW_OWNER, > some devices need to know the new userland addresses of the dma mappings. > Define the new iotlb message type VHOST_IOTLB_REMAP to update the uaddr > of a mapping. The

[PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-12 Thread Steve Sistare
When device ownership is passed to a new process via VHOST_NEW_OWNER, some devices need to know the new userland addresses of the dma mappings. Define the new iotlb message type VHOST_IOTLB_REMAP to update the uaddr of a mapping. The new uaddr must address the same memory object as originally mapp