[-QemuCocoaView displayConsole:] can be called anytime so explicitly take the BQL before it calls console_select().
Signed-off-by: Akihiko Odaki <akihiko.od...@daynix.com> Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> --- ui/cocoa.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index cebfae04d9e8..33d31b82bcab 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1360,7 +1360,9 @@ - (void)zoomToFit:(id) sender /* Displays the console on the screen */ - (void)displayConsole:(id)sender { - console_select([sender tag]); + with_bql(^{ + console_select([sender tag]); + }); } /* Pause the guest */ -- 2.43.2