]> git.proxmox.com Git - mirror_qemu.git/commit
backends: Have HostMemoryBackendClass::alloc() handler return a boolean
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 20 Nov 2023 12:50:52 +0000 (13:50 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jan 2024 15:20:15 +0000 (16:20 +0100)
commitfdb63cf3b57a230f4cc530ea2515229aeada0998
tree431ecedada38c7c3b925b2b99430350ed9a36edf
parente199f7ad4df8b2c2efad0acdea91b936c130261c
backends: Have HostMemoryBackendClass::alloc() handler return a boolean

Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have HostMemoryBackendClass::alloc
return a boolean indicating whether an error is set or not.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-17-philmd@linaro.org>
backends/hostmem-epc.c
backends/hostmem-file.c
backends/hostmem-memfd.c
backends/hostmem-ram.c
backends/hostmem.c
include/sysemu/hostmem.h