Re: [PATCH 5/6] vhost: mark dirty pages during map uninit

2019-07-24 Thread Michael S. Tsirkin
On Tue, Jul 23, 2019 at 09:19:33PM +0800, Jason Wang wrote: > > On 2019/7/23 下午5:17, Michael S. Tsirkin wrote: > > On Tue, Jul 23, 2019 at 03:57:17AM -0400, Jason Wang wrote: > > > We don't mark dirty pages if the map was teared down outside MMU > > > notifier. This will lead untracked dirty

Re: [PATCH 5/6] vhost: mark dirty pages during map uninit

2019-07-23 Thread Jason Wang
On 2019/7/23 下午5:17, Michael S. Tsirkin wrote: On Tue, Jul 23, 2019 at 03:57:17AM -0400, Jason Wang wrote: We don't mark dirty pages if the map was teared down outside MMU notifier. This will lead untracked dirty pages. Fixing by marking dirty pages during map uninit. Reported-by: Michael S.

Re: [PATCH 5/6] vhost: mark dirty pages during map uninit

2019-07-23 Thread Michael S. Tsirkin
On Tue, Jul 23, 2019 at 03:57:17AM -0400, Jason Wang wrote: > We don't mark dirty pages if the map was teared down outside MMU > notifier. This will lead untracked dirty pages. Fixing by marking > dirty pages during map uninit. > > Reported-by: Michael S. Tsirkin > Fixes: 7f466032dc9e ("vhost:

[PATCH 5/6] vhost: mark dirty pages during map uninit

2019-07-23 Thread Jason Wang
We don't mark dirty pages if the map was teared down outside MMU notifier. This will lead untracked dirty pages. Fixing by marking dirty pages during map uninit. Reported-by: Michael S. Tsirkin Fixes: 7f466032dc9e ("vhost: access vq metadata through kernel virtual address") Signed-off-by: Jason