Re: [PATCH v3 06/13] vfio/common: Consolidate skip/invalid section into helper

2023-03-06 Thread Cédric Le Goater
On 3/4/23 02:43, Joao Martins wrote: The checks are replicated against region_add and region_del and will be soon added in another memory listener dedicated for dirty tracking. Move these into a new helper for avoid duplication. Signed-off-by: Joao Martins --- hw/vfio/common.c | 52

[PATCH v3 06/13] vfio/common: Consolidate skip/invalid section into helper

2023-03-03 Thread Joao Martins
The checks are replicated against region_add and region_del and will be soon added in another memory listener dedicated for dirty tracking. Move these into a new helper for avoid duplication. Signed-off-by: Joao Martins --- hw/vfio/common.c | 52 +++-