Re: [PATCH v6 4/5] qemu/osdep: Add excluded fd parameter to qemu_close_all_open_fd()

2024-07-30 Thread Richard Henderson
On 7/30/24 22:24, Clément Léger wrote: diff --git a/util/oslib-posix.c b/util/oslib-posix.c index a6749d9f9b..e7bffaea16 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -808,11 +808,14 @@ int qemu_msync(void *addr, size_t length, int fd) return msync(addr, length, MS_SYNC); }

[PATCH v6 4/5] qemu/osdep: Add excluded fd parameter to qemu_close_all_open_fd()

2024-07-30 Thread Clément Léger
In order for this function to be usable by tap.c code, add a list of file descriptors that should not be closed. Signed-off-by: Clément Léger --- include/qemu/osdep.h| 8 +++- system/async-teardown.c | 2 +- util/oslib-posix.c | 99 ++--- 3 files ch