Re: [PATCH v6 1/1] linux-user: add openat2 support in linux-user

2024-09-22 Thread Richard Henderson
On 9/20/24 11:22, Michael Vogt wrote: +static int do_openat2(CPUArchState *cpu_env, abi_long dirfd, + abi_ptr guest_pathname, abi_ptr guest_open_how, + abi_long guest_size) abi_ulong guest_size, as the "real" type is the unsigned size_t. +

Re: [PATCH v6 1/1] linux-user: add openat2 support in linux-user

2024-09-20 Thread Laurent Vivier
Le 20/09/2024 à 11:22, Michael Vogt a écrit : This commit adds support for the `openat2()` syscall in the `linux-user` userspace emulator. It is implemented by extracting a new helper `maybe_do_fake_open()` out of the exiting `do_guest_openat()` and share that with the new `do_guest_openat2()`.

[PATCH v6 1/1] linux-user: add openat2 support in linux-user

2024-09-20 Thread Michael Vogt
This commit adds support for the `openat2()` syscall in the `linux-user` userspace emulator. It is implemented by extracting a new helper `maybe_do_fake_open()` out of the exiting `do_guest_openat()` and share that with the new `do_guest_openat2()`. Unfortunately we cannot just make do_guest_opena