Re: [PATCH v7 02/31] main loop: macros to mark GS and I/O functions

2022-03-01 Thread Kevin Wolf
Am 11.02.2022 um 15:51 hat Emanuele Giuseppe Esposito geschrieben: > Righ now, IO_CODE and IO_OR_GS_CODE are nop, as there isn't > really a way to check that a function is only called in I/O. > On the other side, we can use qemu_in_main_thread to check if > we are in the main loop. > > Signed-off-

[PATCH v7 02/31] main loop: macros to mark GS and I/O functions

2022-02-11 Thread Emanuele Giuseppe Esposito
Righ now, IO_CODE and IO_OR_GS_CODE are nop, as there isn't really a way to check that a function is only called in I/O. On the other side, we can use qemu_in_main_thread to check if we are in the main loop. Signed-off-by: Emanuele Giuseppe Esposito --- include/qemu/main-loop.h | 9 + 1