From nobody Wed Nov 5 20:17:20 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1536622776556357.57353262735376; Mon, 10 Sep 2018 16:39:36 -0700 (PDT) Received: from localhost ([::1]:54609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzVmJ-0006h7-FE for importer@patchew.org; Mon, 10 Sep 2018 19:39:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzVjm-0003ak-Q2 for qemu-devel@nongnu.org; Mon, 10 Sep 2018 19:37:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzVbe-0005Sw-9P for qemu-devel@nongnu.org; Mon, 10 Sep 2018 19:28:38 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:44251) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fzVbe-0005Ic-1o for qemu-devel@nongnu.org; Mon, 10 Sep 2018 19:28:34 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A511221E44; Mon, 10 Sep 2018 19:28:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 10 Sep 2018 19:28:21 -0400 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 460FBE48AA; Mon, 10 Sep 2018 19:28:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=fEyUDatrEhVJoOHr+dkUvzZdYd KBiFInLL+tLj1LV3E=; b=TZgFMboE3eUtnZu8MowN1IMMz+PPNXm22neaCx30l9 d/bSzIGXI40ZK9uf7aFaOPRMi3PZTR7PdA4SVVjlNcXZxcYkCYIFnnmsHPRtd/Jy LIT1xUeeVY+vajzy/9f5XHY0O2+njsvCI8cgzx9p76uRlkKFx2HRVHt2JzF7UFRq c= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=fEyUDa trEhVJoOHr+dkUvzZdYdKBiFInLL+tLj1LV3E=; b=S6+iJmBi6QhGBc03+U2BDX MnPwAaqDe9WXS7S6HC6NWZUBkYOV0z+5kxBBCWZPZA98N1YOFuqOPnPvSqtwoJMl VSNI9K/n2JOZME2IHbdGhRJoFCYyboH7f8/CXoSOPNT1tShwbvTyUOQIEBtYLRm8 xZ+BANM4QqM+lL1CQM5nd68XHHxNOMPrZ7PtTlw31M3I+DLKNuzt00GAuNTXKKCP JtUdsYYNZnpbWY0yCLS/Etyx8LHV3BDZQDbP2M9eK2gDpAXrfMEfMCLHlCFkBQ2B jr9R/cc0leGneHObFFlxiB34GDaTdmnz4rWEkvjQTC5dYoT7nzmGwXZ9Sr4CWq3w == X-ME-Proxy: X-ME-Sender: From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Mon, 10 Sep 2018 19:27:47 -0400 Message-Id: <20180910232752.31565-8-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180910232752.31565-1-cota@braap.org> References: <20180910232752.31565-1-cota@braap.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 v2 07/12] cpus: initialize timers_state.vm_clock_lock X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , Peter Crosthwaite , Murilo Opsfelder Araujo , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 We forgot to initialize the spinlock introduced in 94377115b2 ("cpus: protect TimerState writes with a spinlock", 2018-08-23). Fix it. Reviewed-by: Alex Benn=C3=A9e Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson --- cpus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpus.c b/cpus.c index 8ee6e5db93..ebc13bac2d 100644 --- a/cpus.c +++ b/cpus.c @@ -823,6 +823,7 @@ int cpu_throttle_get_percentage(void) void cpu_ticks_init(void) { seqlock_init(&timers_state.vm_clock_seqlock); + qemu_spin_init(&timers_state.vm_clock_lock); vmstate_register(NULL, 0, &vmstate_timers, &timers_state); throttle_timer =3D timer_new_ns(QEMU_CLOCK_VIRTUAL_RT, cpu_throttle_timer_tick, NULL); --=20 2.17.1