Re: [RFC PATCH-for-7.0 v4 0/2] cocoa: run qemu_init in the main thread

2022-03-21 Thread Akihiko Odaki
On 2022/03/21 18:14, Paolo Bonzini wrote: On 3/19/22 14:56, Philippe Mathieu-Daudé wrote:    1. Move setgid and setuid calls after [+NSApplication    sharedApplication] to let NSApplication initialize as the original    user. Another possibility is to move the code up to "[QemuApplication sha

Re: [RFC PATCH-for-7.0 v4 0/2] cocoa: run qemu_init in the main thread

2022-03-21 Thread Paolo Bonzini
On 3/19/22 14:56, Philippe Mathieu-Daudé wrote:    1. Move setgid and setuid calls after [+NSApplication    sharedApplication] to let NSApplication initialize as the original    user. Another possibility is to move the code up to "[QemuApplication sharedApplication]" from main() to cocoa_displ

Re: [RFC PATCH-for-7.0 v4 0/2] cocoa: run qemu_init in the main thread

2022-03-19 Thread Akihiko Odaki
On 2022/03/19 22:56, Philippe Mathieu-Daudé wrote: Hi Akihiko, Paolo, Peter. On 17/3/22 13:55, Philippe Mathieu-Daudé wrote: From: Philippe Mathieu-Daudé Posting v4 in case someone want to iterate. Pending issue raised by Akihiko Odaki: * this actually breaks the "runas" option with ui/coco

Re: [RFC PATCH-for-7.0 v4 0/2] cocoa: run qemu_init in the main thread

2022-03-19 Thread Philippe Mathieu-Daudé
Hi Akihiko, Paolo, Peter. On 17/3/22 13:55, Philippe Mathieu-Daudé wrote: From: Philippe Mathieu-Daudé Posting v4 in case someone want to iterate. Pending issue raised by Akihiko Odaki: * this actually breaks the "runas" option with ui/cocoa. [+NSApplication sharedApplication] calls isse

[RFC PATCH-for-7.0 v4 0/2] cocoa: run qemu_init in the main thread

2022-03-17 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé Posting v4 in case someone want to iterate. Pending issue raised by Akihiko Odaki: * this actually breaks the "runas" option with ui/cocoa. [+NSApplication sharedApplication] calls issetugid() to see if setgid() or setuid() is called before and calls exit() if