From nobody Fri Nov 7 14:33:34 2025 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 1548095218768249.69361427196384; Mon, 21 Jan 2019 10:26:58 -0800 (PST) Received: from localhost ([127.0.0.1]:57640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gleHc-0003lR-Ca for importer@patchew.org; Mon, 21 Jan 2019 13:26:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gldy8-0004OZ-QB for qemu-devel@nongnu.org; Mon, 21 Jan 2019 13:06:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gldy8-0004C4-0l for qemu-devel@nongnu.org; Mon, 21 Jan 2019 13:06:44 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:36525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gldy7-0004Ac-Q1 for qemu-devel@nongnu.org; Mon, 21 Jan 2019 13:06:43 -0500 Received: by mail-wr1-x42e.google.com with SMTP id u4so24488142wrp.3 for ; Mon, 21 Jan 2019 10:06:43 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id 133sm56197732wme.9.2019.01.21.10.06.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jan 2019 10:06:41 -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=N0nqqLDNPuHr2KhGdh8zZ7ZCA6FpeofJ5topeODU2oI=; b=plvgny6waQOmSPPy0S4eLnr6wh2MO6nPoJnBcQFrhSlBAyXKtyxHUWb5yS6ro3dPIE 2jcYYyc2F/K9C1SFlzXdJnDKrN7mVfP+0F5Cj85RwF97mybVKN7JYHL8PI1Dn4TZ0AtS YUyqyoiHEOtf/lFN7Z9jyKj5Qq+z06eoNZCVilEOWuC4HwJ/MnQYH3GUNf0Wvn347P/u tvvSQyK7q+EyHnjcTT6aBC7+/G0XMNmjUXCc4W4s6tjD848mW9ZxjQgOwCMt4iR9z/Zh T5wB8PoQFxv8Rb46pC1DLeC7o8a5tYws+HkDYpSnoBHmeDpCzKtXODt9xwXYKXzUSIBA tj5g== 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=N0nqqLDNPuHr2KhGdh8zZ7ZCA6FpeofJ5topeODU2oI=; b=DzKesTySmZpBvpV+M4TDqErVCwlxPJL3f/jkkq7I1qQqqvQ34zJjlmCityAtBe7fm5 6aTBN5MhSdUlfv6/gCsgfd5s51SmRo3czzSLoygAW1kKT+E8fggh8Yj9hx3/HvEBNOPy GKFCTc3a/IwvbcNSHVSiC3kXE8V85EU0lcXNFZTKK4DvCprIxoh2G5HNHZgrE4l8L70p kcerFD+k1GMjdvmYjOIiXkHoNp51pOqFSyMJi0VWVzI1rffFP4lruAEaF9AlI3vt1xOg CqZCToTB1pP8AfiXpiY0OU3sV5RDkQ7JyThLtoIrTIuNrCUzaQeFaOxOeDMAoaTVCwmc xbJw== X-Gm-Message-State: AJcUukfArWdn3lM9HY9/8x9jZu/NxIhGwN5AaUoTAoPIvwjbD18PSrp6 6gII9vQ319Iziucl+zhWe5C5xZe3 X-Google-Smtp-Source: ALg8bN5wcB/eYL50NZIfqC4CQf/PekPe62b045uqzln8ATm0X7eQui3nrMemtu5E3C9HjoXHhU24Mg== X-Received: by 2002:adf:dec4:: with SMTP id i4mr28164327wrn.307.1548094002689; Mon, 21 Jan 2019 10:06:42 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 21 Jan 2019 19:05:51 +0100 Message-Id: <1548093980-43088-21-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1548093980-43088-1-git-send-email-pbonzini@redhat.com> References: <1548093980-43088-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::42e Subject: [Qemu-devel] [PULL 20/49] 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 55e0ca4..fefd955 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