Re: [PATCH v1] vhost-vdpa: Set discarding of RAM broken when initializing the backend

2021-04-29 Thread David Hildenbrand
On 02.03.21 17:21, David Hildenbrand wrote: Similar to VFIO, vDPA will go ahead an map+pin all guest memory. Memory that used to be discarded will get re-populated and if we discard+re-access memory after mapping+pinning, the pages mapped into the vDPA IOMMU will go out of sync with the actual pa

Re: [PATCH v1] vhost-vdpa: Set discarding of RAM broken when initializing the backend

2021-03-04 Thread Jason Wang
On 2021/3/4 5:34 下午, David Hildenbrand wrote: On 04.03.21 10:32, Jason Wang wrote: On 2021/3/3 6:26 下午, David Hildenbrand wrote: On 03.03.21 03:53, Jason Wang wrote: On 2021/3/3 12:21 上午, David Hildenbrand wrote: Similar to VFIO, vDPA will go ahead an map+pin all guest memory. Memory tha

Re: [PATCH v1] vhost-vdpa: Set discarding of RAM broken when initializing the backend

2021-03-04 Thread David Hildenbrand
On 04.03.21 10:32, Jason Wang wrote: On 2021/3/3 6:26 下午, David Hildenbrand wrote: On 03.03.21 03:53, Jason Wang wrote: On 2021/3/3 12:21 上午, David Hildenbrand wrote: Similar to VFIO, vDPA will go ahead an map+pin all guest memory. Memory that used to be discarded will get re-populated and i

Re: [PATCH v1] vhost-vdpa: Set discarding of RAM broken when initializing the backend

2021-03-04 Thread Jason Wang
On 2021/3/3 6:26 下午, David Hildenbrand wrote: On 03.03.21 03:53, Jason Wang wrote: On 2021/3/3 12:21 上午, David Hildenbrand wrote: Similar to VFIO, vDPA will go ahead an map+pin all guest memory. Memory that used to be discarded will get re-populated and if we discard+re-access memory after m

Re: [PATCH v1] vhost-vdpa: Set discarding of RAM broken when initializing the backend

2021-03-03 Thread David Hildenbrand
On 03.03.21 11:26, David Hildenbrand wrote: On 03.03.21 03:53, Jason Wang wrote: On 2021/3/3 12:21 上午, David Hildenbrand wrote: Similar to VFIO, vDPA will go ahead an map+pin all guest memory. Memory that used to be discarded will get re-populated and if we discard+re-access memory after mappi

Re: [PATCH v1] vhost-vdpa: Set discarding of RAM broken when initializing the backend

2021-03-03 Thread David Hildenbrand
On 03.03.21 03:53, Jason Wang wrote: On 2021/3/3 12:21 上午, David Hildenbrand wrote: Similar to VFIO, vDPA will go ahead an map+pin all guest memory. Memory that used to be discarded will get re-populated and if we discard+re-access memory after mapping+pinning, the pages mapped into the vDPA IO

Re: [PATCH v1] vhost-vdpa: Set discarding of RAM broken when initializing the backend

2021-03-02 Thread Jason Wang
On 2021/3/3 12:21 上午, David Hildenbrand wrote: Similar to VFIO, vDPA will go ahead an map+pin all guest memory. Memory that used to be discarded will get re-populated and if we discard+re-access memory after mapping+pinning, the pages mapped into the vDPA IOMMU will go out of sync with the actu

[PATCH v1] vhost-vdpa: Set discarding of RAM broken when initializing the backend

2021-03-02 Thread David Hildenbrand
Similar to VFIO, vDPA will go ahead an map+pin all guest memory. Memory that used to be discarded will get re-populated and if we discard+re-access memory after mapping+pinning, the pages mapped into the vDPA IOMMU will go out of sync with the actual pages mapped into the user space page tables. S