Re: [Qemu-devel] [PATCH v2 1/7] ui/cocoa: Ensure we have the iothread lock when calling into QEMU

2019-02-23 Thread Peter Maydell
On Fri, 22 Feb 2019 at 21:48, Roman Bolshakov wrote: > > On Fri, Feb 22, 2019 at 03:41:05PM +, Peter Maydell wrote: > > On Fri, 22 Feb 2019 at 15:19, Roman Bolshakov wrote: > > > > > > On Thu, Feb 14, 2019 at 10:28:10AM +, Peter Maydell wrote: > > > > The Cocoa UI should run on the main

Re: [Qemu-devel] [PATCH v2 1/7] ui/cocoa: Ensure we have the iothread lock when calling into QEMU

2019-02-22 Thread Roman Bolshakov
On Fri, Feb 22, 2019 at 03:41:05PM +, Peter Maydell wrote: > On Fri, 22 Feb 2019 at 15:19, Roman Bolshakov wrote: > > > > On Thu, Feb 14, 2019 at 10:28:10AM +, Peter Maydell wrote: > > > The Cocoa UI should run on the main thread; this is enforced > > > in OSX Mojave. In order to be able

Re: [Qemu-devel] [PATCH v2 1/7] ui/cocoa: Ensure we have the iothread lock when calling into QEMU

2019-02-22 Thread Peter Maydell
On Fri, 22 Feb 2019 at 15:19, Roman Bolshakov wrote: > > On Thu, Feb 14, 2019 at 10:28:10AM +, Peter Maydell wrote: > > The Cocoa UI should run on the main thread; this is enforced > > in OSX Mojave. In order to be able to run on the main thread, > > we need to make sure we hold the iothread

Re: [Qemu-devel] [PATCH v2 1/7] ui/cocoa: Ensure we have the iothread lock when calling into QEMU

2019-02-22 Thread Roman Bolshakov
On Thu, Feb 14, 2019 at 10:28:10AM +, Peter Maydell wrote: > The Cocoa UI should run on the main thread; this is enforced > in OSX Mojave. In order to be able to run on the main thread, > we need to make sure we hold the iothread lock whenever we > call into various QEMU UI midlayer functions.

[Qemu-devel] [PATCH v2 1/7] ui/cocoa: Ensure we have the iothread lock when calling into QEMU

2019-02-14 Thread Peter Maydell
The Cocoa UI should run on the main thread; this is enforced in OSX Mojave. In order to be able to run on the main thread, we need to make sure we hold the iothread lock whenever we call into various QEMU UI midlayer functions. Signed-off-by: Peter Maydell --- ui/cocoa.m | 83