Re: [PATCH] vfio/migration: fix dirty pages lost bug for ram beyond 3G

2020-03-26 Thread Kirti Wankhede
On 3/25/2020 11:49 PM, Alex Williamson wrote: On Fri, 6 Mar 2020 17:41:29 +0800 Yan Zhao wrote: the start address passing to cpu_physical_memory_set_dirty_range() and cpu_physical_memory_set_dirty_lebitmap() is the address within the ram block plus ram block offset. it's safe to set this

Re: [PATCH] vfio/migration: fix dirty pages lost bug for ram beyond 3G

2020-03-25 Thread Alex Williamson
On Fri, 6 Mar 2020 17:41:29 +0800 Yan Zhao wrote: > the start address passing to > cpu_physical_memory_set_dirty_range() and > cpu_physical_memory_set_dirty_lebitmap() is the address within the > ram block plus ram block offset. > > it's safe to set this start address to gpa if total memory is

[PATCH] vfio/migration: fix dirty pages lost bug for ram beyond 3G

2020-03-06 Thread Yan Zhao
the start address passing to cpu_physical_memory_set_dirty_range() and cpu_physical_memory_set_dirty_lebitmap() is the address within the ram block plus ram block offset. it's safe to set this start address to gpa if total memory is less than 3G, as ram block offset for pc.ram is 0. But if memory