From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5siA-0004Di-L2 for qemu-devel@nongnu.org; Tue, 10 Apr 2018 08:49:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5si7-0000h9-Ez for qemu-devel@nongnu.org; Tue, 10 Apr 2018 08:49:22 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34994 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f5si7-0000h3-9x for qemu-devel@nongnu.org; Tue, 10 Apr 2018 08:49:19 -0400 From: Peter Xu Date: Tue, 10 Apr 2018 20:49:11 +0800 Message-Id: <20180410124913.10832-1-peterx@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] qemu-thread: allow cur_mon be per thread List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng , peterx@redhat.com, Eric Blake , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Markus Armbruster , Stefan Hajnoczi , "Dr . David Alan Gilbert" This should be for 2.13. But I'd like to get early review comments too if there is any. Now cur_mon is still only be accessed by the main thread. So we don't even need per-thread cur_mon. However after more commands become OOB compatible, cur_mon can be accessed by more than main thread now. The major user should be the monitor IOThread. This series tries to let cur_mon be per-thread, so that we can be well-prepared. The first patch is a cleanup. The second patch does the idea. Any early review comments would be welcomed. Thanks, Peter Xu (2): qemu-thread: always keep the posix wrapper layer qemu-thread: let cur_mon be per-thread include/monitor/monitor.h | 2 +- include/qemu/thread-win32.h | 1 + monitor.c | 2 +- stubs/monitor.c | 2 +- tests/test-util-sockets.c | 2 +- util/qemu-thread-posix.c | 39 +++++++++++++++++++-------------------- util/qemu-thread-win32.c | 6 ++++++ 7 files changed, 30 insertions(+), 24 deletions(-) -- 2.14.3