Message ID | 57763049.2090800@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D249E607D8 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 1 Jul 2016 08:57:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C261528690 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 1 Jul 2016 08:57:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6D83286A2; Fri, 1 Jul 2016 08:57:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3A88728690 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 1 Jul 2016 08:57:11 +0000 (UTC) Received: from localhost ([::1]:54523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1bIuG6-0000Ay-H5 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 01 Jul 2016 04:57:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <serge.fdrv@gmail.com>) id 1bIuFq-0000Ae-1E for qemu-devel@nongnu.org; Fri, 01 Jul 2016 04:56:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <serge.fdrv@gmail.com>) id 1bIuFj-0002oi-Uy for qemu-devel@nongnu.org; Fri, 01 Jul 2016 04:56:51 -0400 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:33815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <serge.fdrv@gmail.com>) id 1bIuFj-0002nE-I2 for qemu-devel@nongnu.org; Fri, 01 Jul 2016 04:56:47 -0400 Received: by mail-lf0-x241.google.com with SMTP id l184so10726458lfl.1 for <qemu-devel@nongnu.org>; Fri, 01 Jul 2016 01:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=IjVfDhBm8tHQlbzYysPJjKvPGbkVlKwpAmkH6CUSOVw=; b=OnZg11fXCsWHAnYqcwBFhO7TcT4MUpFbNBz3p1eXBAWAUgrITxb1UZHItdKyACoJpr JZZqScWEt8n1lqkL5EMHinMaH15Eh8n/A6nP5M12Y9OmaFCuvBOuGmz117USV4l0bOm0 xeznI+S8oIfpeLgt/+kC65H3YPnyKfLNLe0+10LBWIIo7/k2D5TBsyqLfSDdmep0iESe UzSiKGsouK3RvB1RExuHhVcfF0ykrENf9GotI7NOdJx5QZ7IpWo7b5mPATLh6AqwqlQj 4ILSzMn80AelxcRDFvsJw55v7wjvr1MxljAaBKzA/BfuhyvMfY/spyHZGJryjVYkvpy4 JhCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=IjVfDhBm8tHQlbzYysPJjKvPGbkVlKwpAmkH6CUSOVw=; b=Jf69QJ0URT3qss8YXqWWp93hYggQ6wWTMeVRRGGKkXZI3YzJ4osIVLTcdUos5xM+jg xN7IpKUM8HlMNBdWY1ZyL5djuiqN6VS4ne9qyE6gTOkBoelP74sYc0bmeAdaRdrnHtpF A6U/1Hwv8y32QDKjTZGOQbrDOZJsbe1T/u4pZp7HFBdr4dOPl0xkRMh+WDUu2VbRAAs1 hSCH4rFCeSBdcX2Qzx/m+Guou9bWWBcKdnDG1hU4FHDSQKS/WVFgi3dqbi0icsiBzU+Z mnd7CURsJi7oSBgYGOQSeaKwOBnB/TjwT0/5nmRvlST3CZy6OQSn6bMqgHRLTY0ilb0U Ssfg== X-Gm-Message-State: ALyK8tLP4lGggnTwlwsF/oHs3+wKyoeRObg5sH4YkTKZ4KL6swuwDggPFYkzrQGV7kigDA== X-Received: by 10.25.169.195 with SMTP id s186mr5320340lfe.84.1467363403824; Fri, 01 Jul 2016 01:56:43 -0700 (PDT) Received: from [192.168.0.65] (broadband-46-188-121-154.2com.net. [46.188.121.154]) by smtp.gmail.com with ESMTPSA id 4sm2199840ljf.9.2016.07.01.01.56.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jul 2016 01:56:42 -0700 (PDT) To: =?UTF-8?Q?Alex_Benn=c3=a9e?= <alex.bennee@linaro.org> References: <1466375313-7562-1-git-send-email-sergey.fedorov@linaro.org> <1466375313-7562-7-git-send-email-sergey.fedorov@linaro.org> <87lh1o0y1k.fsf@linaro.org> <5774E8C2.1050506@gmail.com> <87furvq85v.fsf@linaro.org> <5774F60C.3010707@gmail.com> From: Sergey Fedorov <serge.fdrv@gmail.com> Message-ID: <57763049.2090800@gmail.com> Date: Fri, 1 Jul 2016 11:56:41 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <5774F60C.3010707@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::241 Subject: Re: [Qemu-devel] [RFC 6/8] linux-user: Support CPU work queue X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Peter Crosthwaite <crosthwaite.peter@gmail.com>, Sergey Fedorov <sergey.fedorov@linaro.org>, patches@linaro.org, Riku Voipio <riku.voipio@iki.fi>, qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <rth@twiddle.net> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/linux-user/main.c b/linux-user/main.c index 6da3bb32186b..1dca55145c56 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -214,7 +214,7 @@ static inline void cpu_exec_end(CPUState *cpu) cpu->running = false; tcg_pending_cpus--; if (!tcg_pending_cpus) { - pthread_cond_broadcast(&exclusive_cond); + signal_cpu_work(); } exclusive_idle(); flush_queued_work(cpu);