From nobody Mon Feb 9 17:24:50 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.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 209.51.188.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 (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1549306043443193.7310509062379; Mon, 4 Feb 2019 10:47:23 -0800 (PST) Received: from localhost ([127.0.0.1]:47412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqjH3-0005Cx-C8 for importer@patchew.org; Mon, 04 Feb 2019 13:47:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqj6p-00050Y-NR for qemu-devel@nongnu.org; Mon, 04 Feb 2019 13:36:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqj6n-0003Rv-Po for qemu-devel@nongnu.org; Mon, 04 Feb 2019 13:36:43 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:41798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqj6l-0003Lb-S3 for qemu-devel@nongnu.org; Mon, 04 Feb 2019 13:36:41 -0500 Received: by mail-wr1-x433.google.com with SMTP id x10so940547wrs.8 for ; Mon, 04 Feb 2019 10:36:30 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id s132sm8836236wmf.28.2019.02.04.10.36.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 10:36:28 -0800 (PST) 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; bh=nT6J2BhVeHWp0Myzw3B3jQ9Cnnd15cJtDbyuf8Ygp1I=; b=QJ3l8rAlDUsNsACJx/I2IQGyY0mvSW8TghrTq0+8C9QQVqttGeVvr/QJFRWJLCxfB4 QWEvu9ovb+Wmn8VRjRLEp0L1TzF/nFWNk0k0BgLJPF4MaFiRLTGbG26oXRIHn3zQte4K E+OY37M8e+PYj1UTrrMQYrA8H1pyIqzK5g9C8RLLJlpxz2TVvNA81IVRVn7kge8KJext f1sKI1cnEwedRNwv4qj00IjIZWfVBgzg13TS9PaPUOi5/EQ3UJhSb1Y+c7Br0+ouVE0p n84SDSriwDb7CRbDrc7v9WC80/b6Z6v6LhoADM8Z14x46mO7WdtpjFJM3WVvO9SM61gH LDTA== 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; bh=nT6J2BhVeHWp0Myzw3B3jQ9Cnnd15cJtDbyuf8Ygp1I=; b=GOkbjPbSE8tiVwC9y017OndplTdel35ZtlZVHD107AFdYFqDzyfDo93Dby7SFj/CxD sL40POSUNZnvZjNblJNmDyZbBH+Oz/H9V4VHNV/Wvk3ntVikGQ2os9uuD0OIeSLpyXYc qYYLLAfh2T9c+bEJZMuC31ik6Oj11XqIVR57uNvcVO/1SaUcDpXmG4PaitugVqqRMHCC iLWkhdYtrEXVqD29fuFi794kHjDntk1aDiVwXf92CuomssECSbRURd8OMUYAIKG5zM28 QEdZ7Sxh6rIQ2CftzFejqCrLqxLnivbEMEiQgAvmsnWFMWYLmFVAakYSnedd+yIgUuI1 8BKQ== X-Gm-Message-State: AHQUAuZ+nVZGMljt3Z6LaHnnMMxXzKk7MEUxbVxWdDDdAro9+pclaC+N mhlsn52dJ55wVsSr7I5XR22RZU4l X-Google-Smtp-Source: AHgI3Ib7c/hlV2sjGImwtbl2aaC8Kez+fyBOe8m8K0mULs2Q7xlwb/7d8wVsHvHAduLxhloXD8s4WQ== X-Received: by 2002:a5d:4202:: with SMTP id n2mr581948wrq.260.1549305389605; Mon, 04 Feb 2019 10:36:29 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 4 Feb 2019 19:35:11 +0100 Message-Id: <1549305379-51117-10-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1549305379-51117-1-git-send-email-pbonzini@redhat.com> References: <1549305379-51117-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::433 Subject: [Qemu-devel] [PULL 09/77] cpu-exec: reset BQL after longjmp in cpu_exec_step_atomic 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) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: "Emilio G. Cota" Just like we do in cpu_exec(). Reported-by: Max Filippov Tested-by: Max Filippov Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- accel/tcg/cpu-exec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index 49b3259..fab30af 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -266,6 +266,9 @@ void cpu_exec_step_atomic(CPUState *cpu) #ifndef CONFIG_SOFTMMU tcg_debug_assert(!have_mmap_lock()); #endif + if (qemu_mutex_iothread_locked()) { + qemu_mutex_unlock_iothread(); + } assert_no_pages_locked(); } =20 --=20 1.8.3.1