Re: [PATCH v2 3/4] backends/hostmem: Report error on qemu_madvise() failures

2024-05-31 Thread David Hildenbrand
On 31.05.24 09:28, Michal Privoznik wrote: If user sets .merge or .dump attributes qemu_madvise() is called with corresponding advice. But it is never checked for failure which may mislead users into thinking the attribute is set correctly. Report an appropriate error. Signed-off-by: Michal Priv

Re: [PATCH v2 3/4] backends/hostmem: Report error on qemu_madvise() failures

2024-05-31 Thread Philippe Mathieu-Daudé
On 31/5/24 09:28, Michal Privoznik wrote: If user sets .merge or .dump attributes qemu_madvise() is called with corresponding advice. But it is never checked for failure which may mislead users into thinking the attribute is set correctly. Report an appropriate error. Signed-off-by: Michal Privo

[PATCH v2 3/4] backends/hostmem: Report error on qemu_madvise() failures

2024-05-31 Thread Michal Privoznik
If user sets .merge or .dump attributes qemu_madvise() is called with corresponding advice. But it is never checked for failure which may mislead users into thinking the attribute is set correctly. Report an appropriate error. Signed-off-by: Michal Privoznik --- backends/hostmem.c | 36 +