Re: [PATCH v2 2/3] parallels: Add checking and repairing duplicate offsets in BAT

2022-08-06 Thread Denis V. Lunev
On 06.08.2022 22:45, Vladimir Sementsov-Ogievskiy wrote: On 8/5/22 18:47, alexander.iva...@virtuozzo.com wrote: From: Alexander Ivanov There could be corruptions in the image file: two guest memory areas refer to the same host cluster. Is that written in parallels spec (docs/interop/parallel

Re: [PATCH v2 2/3] parallels: Add checking and repairing duplicate offsets in BAT

2022-08-06 Thread Vladimir Sementsov-Ogievskiy
On 8/5/22 18:47, alexander.iva...@virtuozzo.com wrote: From: Alexander Ivanov There could be corruptions in the image file: two guest memory areas refer to the same host cluster. Is that written in parallels spec (docs/interop/parallels.txt)? Hmm yes: "- the value must be unique among all BA

[PATCH v2 2/3] parallels: Add checking and repairing duplicate offsets in BAT

2022-08-05 Thread alexander . ivanov
From: Alexander Ivanov There could be corruptions in the image file: two guest memory areas refer to the same host cluster. If a duplicate offset is found fix it by copying the content of the referred cluster to a new allocated cluster and replace one of the two referring entries by the new clus