|
From: | Eric Blake |
Subject: | Re: [PATCH v6 06/12] monitor: Make current monitor a per-coroutine property |
Date: | Thu, 28 May 2020 13:44:54 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 5/28/20 10:37 AM, Kevin Wolf wrote:
This way, a monitor command handler will still be able to access the current monitor, but when it yields, all other code code will correctly get NULL from monitor_cur(). Outside of coroutine context, qemu_coroutine_self() returns the leader coroutine of the current thread. Signed-off-by: Kevin Wolf <kwolf@redhat.com> ---
Reviewed-by: Eric Blake <eblake@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |