Re: [PATCH 1/2] xen/gntdev.c: Mark pages as dirty

2020-09-11 Thread boris . ostrovsky
On 9/6/20 2:51 AM, Souptick Joarder wrote: > There seems to be a bug in the original code when gntdev_get_page() > is called with writeable=true then the page needs to be marked dirty > before being put. > > To address this, a bool writeable is added in gnt_dev_copy_batch, set > it in gntdev_gran

[PATCH 1/2] xen/gntdev.c: Mark pages as dirty

2020-09-05 Thread Souptick Joarder
There seems to be a bug in the original code when gntdev_get_page() is called with writeable=true then the page needs to be marked dirty before being put. To address this, a bool writeable is added in gnt_dev_copy_batch, set it in gntdev_grant_copy_seg() (and drop `writeable` argument to gntdev_ge