Message ID | 20180814013801.26036-3-cota@braap.org (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-2.web.codeaurora.org (Postfix) with ESMTP id 7E4DE13B4 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 14 Aug 2018 01:39:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F1D22944B for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 14 Aug 2018 01:39:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6304A29496; Tue, 14 Aug 2018 01:39:29 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,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 E2F5129464 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 14 Aug 2018 01:39:27 +0000 (UTC) Received: from localhost ([::1]:42040 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 1fpOIx-0007A3-3r for patchwork-qemu-devel@patchwork.kernel.org; Mon, 13 Aug 2018 21:39:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <cota@braap.org>) id 1fpOHm-0006H5-Q1 for qemu-devel@nongnu.org; Mon, 13 Aug 2018 21:38:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <cota@braap.org>) id 1fpOHj-0002GH-Jf for qemu-devel@nongnu.org; Mon, 13 Aug 2018 21:38:14 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:52151) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <cota@braap.org>) id 1fpOHj-0002Fx-Da for qemu-devel@nongnu.org; Mon, 13 Aug 2018 21:38:11 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C5E4A21E9E; Mon, 13 Aug 2018 21:38:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 13 Aug 2018 21:38:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=o/X4jVHM41XomX e2N5wNeWhwMWOlptSYClPx+i7xgNg=; b=NyhTPxrSJflUHFk5G+TBPgs8swW4MO ikT2qHXwVEYTLQAQYW6vzaXKIafD4uZ8nsPfMKGm8OU9k9F2HDsUmEA0H0hQtXbi jztrO9uHgoSF67VVBBPE5TL2GOUhTO2HdouipSb8wNzxr/ngFWYtkQhsbnOup+9t aPq4Xj6ZVofpo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=o/X4jVHM41XomXe2N5wNeWhwMWOlptSYClPx+i7xgNg=; b=A3K7B3BF qaTqg6MQRIRpCwVHEaCYnbmWuTqt3obofmyg3QVK4iV76CH/ern4dRwpAnJooZpj i6IzKfvOSxbGMpyzrDirJxDpLelEc7hAHI3yPGDTLN/YB1AXAET3MTACzcIK5+Kt M6NiptAX7qJh1kDsaQrDNpFJCUcLj9Mshw2ulzjnYQntDj9sDUYmrNNtwV7GVuQS tnesGADwNIbSY8Gzddbjnqw5vBW/icyWdjTPUs1HZ5xuiUpxz4LHCx/tdjQ+mKJr RtyzQ+bN9jZDGYyAFOlk96n0E0VntZFy67gvbvuR4EmnOmPzomAlYNy0iUlS0n5v j4dk+auR8IjEtQ== X-ME-Proxy: <xmx:gjJyW10AVhmzLQpTNCUpwRXo4BX4POPj9KTGiOP0jECVRzZyAloxFg> <xmx:gjJyW8Sr9j0K2dH2-CkSYn4HHNQevinU88kAkYG3lJxDhcjzQfgVOQ> <xmx:gjJyW3uD43hUvbQfTQ0AupwmhtiSesSLEYv2l648gRh7m_6bWYlElg> <xmx:gjJyWxb7Karq6yuIL3fubzeAfrQdWSXyKcXEA4WKZQwRxjeX_mZ9rQ> <xmx:gjJyW8uXVVUcxQaD1Q0jigL-9HQc1z_fSbGwb15-7C3PGmncKhBZWQ> <xmx:gjJyWw7y8PJhGC8rRGB70xv1Ydwc8H5D4J-iPL5_UrKpZUWD7gpgsA> X-ME-Sender: <xms:gjJyW_gSTmaifpbstvDA5TiRgt7l1-0puii8Ivn03eQpF-KtSMyxKA> Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 4CA29E4696; Mon, 13 Aug 2018 21:38:10 -0400 (EDT) From: "Emilio G. Cota" <cota@braap.org> To: qemu-devel@nongnu.org Date: Mon, 13 Aug 2018 21:37:59 -0400 Message-Id: <20180814013801.26036-3-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180814013801.26036-1-cota@braap.org> References: <20180814013801.26036-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 Subject: [Qemu-devel] [PATCH 2/4] cpus: assert that the BQL is held in cpu_get_ticks 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: Eduardo Habkost <ehabkost@redhat.com>, "Michael S . Tsirkin" <mst@redhat.com>, Peter Crosthwaite <crosthwaite.peter@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, 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 |
Series |
x86_64 mttcg
|
expand
|
diff --git a/cpus.c b/cpus.c index b5844b7103..b23bf6fef7 100644 --- a/cpus.c +++ b/cpus.c @@ -308,6 +308,8 @@ int64_t cpu_get_ticks(void) { int64_t ticks; + g_assert(qemu_mutex_iothread_locked()); + if (use_icount) { return cpu_get_icount(); }
Signed-off-by: Emilio G. Cota <cota@braap.org> --- cpus.c | 2 ++ 1 file changed, 2 insertions(+)