Re: [PATCH 08/10] hw/9pfs: Allow using hw/9pfs with emscripten

2025-04-13 Thread Kohei Tokunaga
Hi Christian, > > > > Emscripten's fiber does not support submitting coroutines to other > > > > threads. So this commit modifies hw/9pfs/coth.h to disable this behavior > > > > when compiled with Emscripten. > > > > > > The lack of being able to dispatch a coroutine to a worker thread is one > >

Re: [PATCH 08/10] hw/9pfs: Allow using hw/9pfs with emscripten

2025-04-12 Thread Christian Schoenebeck
On Saturday, April 12, 2025 12:21:47 PM CEST Christian Schoenebeck wrote: > On Saturday, April 12, 2025 10:21:47 AM CEST Christian Schoenebeck wrote: > > On Friday, April 11, 2025 12:47:29 PM CEST Kohei Tokunaga wrote: [...] > Let my answer my own question: I just checked the wasi sources. The errn

Re: [PATCH 08/10] hw/9pfs: Allow using hw/9pfs with emscripten

2025-04-12 Thread Christian Schoenebeck
On Saturday, April 12, 2025 10:21:47 AM CEST Christian Schoenebeck wrote: > On Friday, April 11, 2025 12:47:29 PM CEST Kohei Tokunaga wrote: > > Hi Christian, > > > > > > Emscripten's fiber does not support submitting coroutines to other > > > > threads. So this commit modifies hw/9pfs/coth.h to d

Re: [PATCH 08/10] hw/9pfs: Allow using hw/9pfs with emscripten

2025-04-12 Thread Christian Schoenebeck
On Friday, April 11, 2025 12:47:29 PM CEST Kohei Tokunaga wrote: > Hi Christian, > > > > Emscripten's fiber does not support submitting coroutines to other > > > threads. So this commit modifies hw/9pfs/coth.h to disable this behavior > > > when compiled with Emscripten. > > > > The lack of being

Re: [PATCH 08/10] hw/9pfs: Allow using hw/9pfs with emscripten

2025-04-11 Thread Kohei Tokunaga
Hi Paolo, > > Emscripten's fiber does not support submitting coroutines to other > > threads. > > Does it work as long as the thread does not rewind? The structure used by Fiber includes a thread-specific field related to rewind [1], which prevents it from being shared across threads. The behavio

Re: [PATCH 08/10] hw/9pfs: Allow using hw/9pfs with emscripten

2025-04-11 Thread Kohei Tokunaga
Hi Christian, > > Emscripten's fiber does not support submitting coroutines to other > > threads. So this commit modifies hw/9pfs/coth.h to disable this behavior > > when compiled with Emscripten. > > The lack of being able to dispatch a coroutine to a worker thread is one > thing, however it woul

Re: [PATCH 08/10] hw/9pfs: Allow using hw/9pfs with emscripten

2025-04-10 Thread Christian Schoenebeck
On Monday, April 7, 2025 4:45:59 PM CEST Kohei Tokunaga wrote: > Emscripten's fiber does not support submitting coroutines to other > threads. So this commit modifies hw/9pfs/coth.h to disable this behavior > when compiled with Emscripten. The lack of being able to dispatch a coroutine to a worker

Re: [PATCH 08/10] hw/9pfs: Allow using hw/9pfs with emscripten

2025-04-10 Thread Paolo Bonzini
On 4/7/25 16:45, Kohei Tokunaga wrote: Emscripten's fiber does not support submitting coroutines to other threads. Does it work as long as the thread does not rewind? diff --git a/hw/9pfs/9p-util-stub.c b/hw/9pfs/9p-util-stub.c new file mode 100644 index 00..57c89902ab --- /dev/null

[PATCH 08/10] hw/9pfs: Allow using hw/9pfs with emscripten

2025-04-07 Thread Kohei Tokunaga
Emscripten's fiber does not support submitting coroutines to other threads. So this commit modifies hw/9pfs/coth.h to disable this behavior when compiled with Emscripten. Signed-off-by: Kohei Tokunaga --- fsdev/file-op-9p.h | 3 +++ fsdev/meson.build | 2 +- hw/9pfs/9p-util-stub.c | 4