Re: [PATCH 0/9] parallels: Refactor the code of images checks and fix a bug

2022-08-19 Thread Denis V. Lunev
On 18.08.2022 17:14, Alexander Ivanov wrote: Fix image inflation when offset in BAT is out of image. Replace whole BAT syncing by flushing only dirty blocks. Move all the checks outside the main check function in separate functions Use WITH_QEMU_LOCK_GUARD for simplier code. v4 changes: M

[PATCH 0/9] parallels: Refactor the code of images checks and fix a bug

2022-08-18 Thread Alexander Ivanov
Fix image inflation when offset in BAT is out of image. Replace whole BAT syncing by flushing only dirty blocks. Move all the checks outside the main check function in separate functions Use WITH_QEMU_LOCK_GUARD for simplier code. v4 changes: Move s->data_end fixing to parallels_co_check().

[PATCH 0/9] parallels: Refactor the code of images checks and fix a bug

2022-08-08 Thread Alexander Ivanov
We will add more and more checks of images so we need to reorganize the code. Put each check to a separate helper function with a separate loop. Replace qemu_co_mutex_lock by WITH_QEMU_LOCK_GUARD for more clean code. Fix a bug when out of image offset in BAT leads to image inflation. Replace bdr