From nobody Thu Nov 6 01:09:06 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; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1538295349329525.459259097254; Sun, 30 Sep 2018 01:15:49 -0700 (PDT) Received: from localhost ([::1]:54215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6WtE-0003Xy-9I for importer@patchew.org; Sun, 30 Sep 2018 04:15:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6Wr5-00024V-1g for qemu-devel@nongnu.org; Sun, 30 Sep 2018 04:13:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6Wr2-0008NM-Ib for qemu-devel@nongnu.org; Sun, 30 Sep 2018 04:13:30 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:40006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6Wr1-0008IV-Aw for qemu-devel@nongnu.org; Sun, 30 Sep 2018 04:13:28 -0400 Received: by mail-wm1-x344.google.com with SMTP id o2-v6so5729373wmh.5 for ; Sun, 30 Sep 2018 01:13:26 -0700 (PDT) Received: from 640k.lan (94-36-187-248.adsl-ull.clienti.tiscali.it. [94.36.187.248]) by smtp.gmail.com with ESMTPSA id u76-v6sm11369194wmd.10.2018.09.30.01.13.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Sep 2018 01:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VJ5tmwaw/cbmtobSKJzpEPrC2I9whES4zoUtXoBOjzg=; b=PpmXDIt42WqvT6qtLxcvFahfwW9R8XrhivKk7KBJYVQInQfL/pK1yUpjkbvmojQ7TB OmplU+UlarqDHzaTAdHYbDwVibbujixSY9UvK1gaOK/k4tzAmXjE5MYqB9i7k5AUqxrw dl0zjweUlzL3lUHg5G4YCMMzHEzNs1nfVCvg1c4wJxtBQdf081VWxmmdc3VDBAX8t1qW PBDzdGdDKmsLa63cg3BMwIH5ixqxv1qvoW1eQ2TeJ5Lsl/Mtf7Oo1bxaVTT6roCnvIWt sUNWO39X3/RO6Ovj7yMImPK8FPdXcPd+ySDIf80wvtIOfD0498VbgLdNiuqzjKv2f+nx bbng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=VJ5tmwaw/cbmtobSKJzpEPrC2I9whES4zoUtXoBOjzg=; b=e9ohrdHkWiGA2luqjguAG23fHDQd30JysIwwWZvCgbbS+hQ0+6YPGl305/tVML8aIg rbh0YOHuHSV149q5HfCcBFIZ1bSOPFiN/YrzyPpC4lA7YXSi2UpIQUZI75pORLqswQQN A63lTljLu8WZTruicae4nfcucYqHpUjMBWkGPPN7rTHvF/s3yIkKVHht2NeRQZ6tNeXx UKpHQnCqfdAcPpfFPS3lM/imZ6lespTt77tHy2SZ36WmvH0sL0Uh6T4SJRlGkKniMdwu rBflDoS49+DCVMKa6gnIDqGvuVdV3S8hT4NKVkYmcRMusRb7iosrREhpNDRosWjlIkiQ hKPQ== X-Gm-Message-State: ABuFfohnc9zM56nZ00zlc8aXEFBC9XuDZf/+pbBIaCrhPBA6ku9xkElP 16IZz//K6vErURtpUJt0wNpuLeDE X-Google-Smtp-Source: ACcGV600VniCObKrksTXdNZ0YhB/xCCwPuP3kBcrbXffYwbJ9jQihBWbAyIGqSCXJpzSivxOdfXNEA== X-Received: by 2002:a1c:1c13:: with SMTP id c19-v6mr5711035wmc.85.1538295205110; Sun, 30 Sep 2018 01:13:25 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Sun, 30 Sep 2018 10:12:04 +0200 Message-Id: <1538295197-23704-7-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1538295197-23704-1-git-send-email-pbonzini@redhat.com> References: <1538295197-23704-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 Subject: [Qemu-devel] [PULL 06/79] 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: "Emilio G. Cota" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 From: "Emilio G. Cota" We forgot to initialize the spinlock introduced in 94377115b2 ("cpus: protect TimerState writes with a spinlock", 2018-08-23). Fix it. Signed-off-by: Emilio G. Cota Message-Id: <20180903171831.15446-5-cota@braap.org> Reviewed-by: Alex Benn=C3=A9e Signed-off-by: Paolo Bonzini --- cpus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpus.c b/cpus.c index 7197883..4abc3b3 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 1.8.3.1