Re: [PATCH v2 2/7] system/physmem: poisoned memory discard on reboot

2024-11-12 Thread David Hildenbrand
For shared memory we really need it. Private file-backed is weird ... because we don't know if the shared or the private page is problematic ... :( I agree with you, and we have to decide when should we bail out if ram_block_discard_range() doesn't work. According to me, if discard doesn't wor

Re: [PATCH v2 2/7] system/physmem: poisoned memory discard on reboot

2024-11-12 Thread William Roche
On 11/12/24 12:07, David Hildenbrand wrote: On 07.11.24 11:21, “William Roche wrote: From: William Roche We take into account the recorded page sizes to repair the memory locations, calling ram_block_discard_range() to punch a hole in the backend file when necessary and regenerate a usable mem

Re: [PATCH v2 2/7] system/physmem: poisoned memory discard on reboot

2024-11-12 Thread David Hildenbrand
On 07.11.24 11:21, “William Roche wrote: From: William Roche We take into account the recorded page sizes to repair the memory locations, calling ram_block_discard_range() to punch a hole in the backend file when necessary and regenerate a usable memory. Fall back to unmap/remap the memory loca