Re: [PATCH v2 00/11] VFIO: misc cleanups

2024-05-16 Thread Cédric Le Goater
On 5/7/24 08:42, Zhenzhong Duan wrote: Hi This is a cleanup series to change functions in hw/vfio/ to return bool when the error is passed through errp parameter, also some cleanup with g_autofree. See discussion at https://lists.gnu.org/archive/html/qemu-devel/2024-04/msg04782.html This

RE: [PATCH v2 00/11] VFIO: misc cleanups

2024-05-13 Thread Duan, Zhenzhong
Hi All, When I looked into more functions passing 'Error **', I see many are in "int testfunc(..., Error **errp)" format. I was a bit confused. The qapi/error.h suggests: * - Whenever practical, also return a value that indicates success / * failure. This can make the error checking more