]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio: add strread/writeerror()
authorJohn Levon <john.levon@nutanix.com>
Wed, 7 May 2025 15:20:11 +0000 (16:20 +0100)
committerCédric Le Goater <clg@redhat.com>
Fri, 9 May 2025 10:42:28 +0000 (12:42 +0200)
commit5363a1a117ea6e1af520d1faed303f944975f760
treec9a010fa01dd218801d98df22dedf1e3f1b63bd3
parent2e27becf17be231bc15588a51c0b61efec68d021
vfio: add strread/writeerror()

Add simple helpers to correctly report failures from read/write routines
using the return -errno style.

Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250507152020.1254632-7-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
include/hw/vfio/vfio-device.h