Re: [PATCH] vfio: Support host translation granule size

2021-03-10 Thread Keqian Zhu
Hi Alex, On 2021/3/11 4:24, Alex Williamson wrote: > On Wed, 10 Mar 2021 15:19:33 +0800 > Kunkun Jiang wrote: > >> Hi Alex, >> >> On 2021/3/10 7:17, Alex Williamson wrote: >>> On Thu, 4 Mar 2021 21:34:46 +0800 >>> Kunkun Jiang wrote: >>> The cpu_physical_memory_set_dirty_lebitmap() can q

Re: [PATCH] vfio: Support host translation granule size

2021-03-10 Thread Alex Williamson
On Wed, 10 Mar 2021 15:19:33 +0800 Kunkun Jiang wrote: > Hi Alex, > > On 2021/3/10 7:17, Alex Williamson wrote: > > On Thu, 4 Mar 2021 21:34:46 +0800 > > Kunkun Jiang wrote: > > > >> The cpu_physical_memory_set_dirty_lebitmap() can quickly deal with > >> the dirty pages of memory by bitmap-tr

Re: [PATCH] vfio: Support host translation granule size

2021-03-09 Thread Kunkun Jiang
Hi Alex, On 2021/3/10 7:17, Alex Williamson wrote: On Thu, 4 Mar 2021 21:34:46 +0800 Kunkun Jiang wrote: The cpu_physical_memory_set_dirty_lebitmap() can quickly deal with the dirty pages of memory by bitmap-traveling, regardless of whether the bitmap is aligned correctly or not. cpu_physica

Re: [PATCH] vfio: Support host translation granule size

2021-03-09 Thread Keqian Zhu
Hi Alex, On 2021/3/10 7:17, Alex Williamson wrote: > On Thu, 4 Mar 2021 21:34:46 +0800 > Kunkun Jiang wrote: > >> The cpu_physical_memory_set_dirty_lebitmap() can quickly deal with >> the dirty pages of memory by bitmap-traveling, regardless of whether >> the bitmap is aligned correctly or not.

Re: [PATCH] vfio: Support host translation granule size

2021-03-09 Thread Alex Williamson
On Thu, 4 Mar 2021 21:34:46 +0800 Kunkun Jiang wrote: > The cpu_physical_memory_set_dirty_lebitmap() can quickly deal with > the dirty pages of memory by bitmap-traveling, regardless of whether > the bitmap is aligned correctly or not. > > cpu_physical_memory_set_dirty_lebitmap() supports pages

[PATCH] vfio: Support host translation granule size

2021-03-04 Thread Kunkun Jiang
The cpu_physical_memory_set_dirty_lebitmap() can quickly deal with the dirty pages of memory by bitmap-traveling, regardless of whether the bitmap is aligned correctly or not. cpu_physical_memory_set_dirty_lebitmap() supports pages in bitmap of host page size. So it'd better to set bitmap_pgsize t