Re: [Qemu-devel] [PATCH v2 0/4] coroutine-lock: polymorphic CoQueue

2018-01-25 Thread Paolo Bonzini
- Original Message - > From: "Fam Zheng" > To: "Paolo Bonzini" > Cc: "QEMU Developers" > Sent: Thursday, January 25, 2018 4:05:27 PM > Subject: Re: [Qemu-devel] [PATCH v2 0/4] coroutine-lock: polymorphic CoQueue > > On Tue, Jan 16

Re: [Qemu-devel] [PATCH v2 0/4] coroutine-lock: polymorphic CoQueue

2018-01-25 Thread Fam Zheng
On Tue, Jan 16, 2018 at 10:23 PM, Paolo Bonzini wrote: > There are cases in which a queued coroutine must be restarted from > non-coroutine context (with qemu_co_enter_next). In this cases, > qemu_co_enter_next also needs to be thread-safe, but it cannot use a > CoMutex and so cannot qemu_co_queu

Re: [Qemu-devel] [PATCH v2 0/4] coroutine-lock: polymorphic CoQueue

2018-01-24 Thread Paolo Bonzini
On 24/01/2018 04:58, Fam Zheng wrote: > On Tue, Jan 16, 2018 at 10:23 PM, Paolo Bonzini wrote: >> There are cases in which a queued coroutine must be restarted from >> non-coroutine context (with qemu_co_enter_next). In this cases, >> qemu_co_enter_next also needs to be thread-safe, but it cannot

Re: [Qemu-devel] [PATCH v2 0/4] coroutine-lock: polymorphic CoQueue

2018-01-23 Thread Fam Zheng
On Tue, Jan 16, 2018 at 10:23 PM, Paolo Bonzini wrote: > There are cases in which a queued coroutine must be restarted from > non-coroutine context (with qemu_co_enter_next). In this cases, > qemu_co_enter_next also needs to be thread-safe, but it cannot use a > CoMutex and so cannot qemu_co_queu

Re: [Qemu-devel] [PATCH v2 0/4] coroutine-lock: polymorphic CoQueue

2018-01-16 Thread no-reply
Hi, This series failed docker-build@min-glib build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180116142316.30486-1-pbonz...@redhat.com Subject: [Qemu-devel] [PATCH v2 0/4

Re: [Qemu-devel] [PATCH v2 0/4] coroutine-lock: polymorphic CoQueue

2018-01-16 Thread Fam Zheng
On 01/17/2018 02:04 PM, no-re...@patchew.org wrote: BUILD min-glib Traceback (most recent call last): File "./tests/docker/docker.py", line 407, in sys.exit(main()) File "./tests/docker/docker.py", line 404, in main return args.cmdobj.run(args, argv) File "./tests/docke

[Qemu-devel] [PATCH v2 0/4] coroutine-lock: polymorphic CoQueue

2018-01-16 Thread Paolo Bonzini
There are cases in which a queued coroutine must be restarted from non-coroutine context (with qemu_co_enter_next). In this cases, qemu_co_enter_next also needs to be thread-safe, but it cannot use a CoMutex and so cannot qemu_co_queue_wait. This happens in curl (which right now is rolling its ow