Re: [PATCH v5] osdep: add a qemu_close_all_open_fd() helper

2024-07-29 Thread Clément Léger
On 29/07/2024 23:32, Richard Henderson wrote: > On 7/30/24 00:20, Clément Léger wrote: >> >> >> On 29/07/2024 16:00, Philippe Mathieu-Daudé wrote: >>> Hi Clément, >>> >>> On 26/7/24 09:54, Clément Léger wrote: Since commit 03e471c41d8b ("qemu_init: increase NOFILE soft limit on POSIX")

Re: [PATCH v5] osdep: add a qemu_close_all_open_fd() helper

2024-07-29 Thread Richard Henderson
On 7/30/24 00:20, Clément Léger wrote: On 29/07/2024 16:00, Philippe Mathieu-Daudé wrote: Hi Clément, On 26/7/24 09:54, Clément Léger wrote: Since commit 03e471c41d8b ("qemu_init: increase NOFILE soft limit on POSIX"), the maximum number of file descriptors that can be opened are raised to n

Re: [PATCH v5] osdep: add a qemu_close_all_open_fd() helper

2024-07-29 Thread Clément Léger
On 29/07/2024 16:00, Philippe Mathieu-Daudé wrote: > Hi Clément, > > On 26/7/24 09:54, Clément Léger wrote: >> Since commit 03e471c41d8b ("qemu_init: increase NOFILE soft limit on >> POSIX"), the maximum number of file descriptors that can be opened are >> raised to nofile.rlim_max. On recent d

Re: [PATCH v5] osdep: add a qemu_close_all_open_fd() helper

2024-07-29 Thread Philippe Mathieu-Daudé
Hi Clément, On 26/7/24 09:54, Clément Léger wrote: Since commit 03e471c41d8b ("qemu_init: increase NOFILE soft limit on POSIX"), the maximum number of file descriptors that can be opened are raised to nofile.rlim_max. On recent debian distro, this yield a maximum of 1073741816 file descriptors.

[PATCH v5] osdep: add a qemu_close_all_open_fd() helper

2024-07-26 Thread Clément Léger
Since commit 03e471c41d8b ("qemu_init: increase NOFILE soft limit on POSIX"), the maximum number of file descriptors that can be opened are raised to nofile.rlim_max. On recent debian distro, this yield a maximum of 1073741816 file descriptors. Now, when forking to start qemu-bridge-helper, this ac