Re: [PATCH v2 06/13] exec: Relax range check in ram_block_discard_range()

2020-02-24 Thread Peter Xu
On Fri, Feb 21, 2020 at 05:41:57PM +0100, David Hildenbrand wrote: > We want to make use of ram_block_discard_range() in the RAM block resize > callback when growing a RAM block, *before* used_length is changed. > Let's relax the check. We always have a reserved mapping for the whole > max_length,

[PATCH v2 06/13] exec: Relax range check in ram_block_discard_range()

2020-02-21 Thread David Hildenbrand
We want to make use of ram_block_discard_range() in the RAM block resize callback when growing a RAM block, *before* used_length is changed. Let's relax the check. We always have a reserved mapping for the whole max_length, so we cannot corrupt unrelated data. Cc: Richard Henderson Cc: Paolo Bonz