From nobody Mon Feb 9 17:08:13 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 1549390901880315.6069263671278; Tue, 5 Feb 2019 10:21:41 -0800 (PST) Received: from localhost ([127.0.0.1]:37118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr5Lh-0006RD-GQ for importer@patchew.org; Tue, 05 Feb 2019 13:21:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr5GH-0002Jx-W7 for qemu-devel@nongnu.org; Tue, 05 Feb 2019 13:16:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gr5GG-0003l4-N0 for qemu-devel@nongnu.org; Tue, 05 Feb 2019 13:15:57 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:51892) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gr5GG-0003W7-Cy for qemu-devel@nongnu.org; Tue, 05 Feb 2019 13:15:56 -0500 Received: by mail-wm1-x332.google.com with SMTP id b11so4694792wmj.1 for ; Tue, 05 Feb 2019 10:15:36 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id p5sm8931665wmh.16.2019.02.05.10.15.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 10:15:34 -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=vL0OrSrFVyP0f49N+zvpzugQjVdjOQGPy3gvAQt4AuQ=; b=qr5Hj0V0mMjSpfoW9e402yKCxch2oLNoHPXmCGnkJQoS/0svvJYz54Wbd874TVBbFg Vc97C/FI8qJDlrCEmHGpa/NyMpLpbYVjT3jTs5piKyA1lwUDmbnBcl6hZukuaSllAAF6 y1R8F3II+K5UWOy57LyrCsL0q+YaDOQVbJJXG9naruQdQUgZXlQPi6YR3HK0itg+FJS/ Bm+t4bWm2nQk9nmRPrtb3eMvkFnYYouRfToz8Eh+ppCEDCesHbuy3M3szECOS2U7ZsMo sM09+JjuJh3cqT6X06iu41mWFp5RHg53j3YAdDskr6dfZBjyRr1xqOYaDh4RQulekrfI WbPg== 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=vL0OrSrFVyP0f49N+zvpzugQjVdjOQGPy3gvAQt4AuQ=; b=S0Rd6MUks/LsTztS47O6IJT7LFkUC2tqBTJ77AJj2LN498Me7qPpVb/t2CLgRKUwKu ww83hxhA9R9PWyc91PGKX/CwumCxCwzv1hpEGjJRmYWpTbFKiwGm6zegWEI7teqwnmlB Z1eUQCtHizCL4JM9UO0lRve132dJvFvbxzpv/k+ICELrNNE2c+pRrVWxK75GMN9UjvW0 5k1hnpsdllUaU3+1oUaztaPJhJcxxKVqY6vpaIrA5mg3nsueXG02QR2Lbsz9Qs7v4pzl pb7qwD6T0Q5Ica23qBgnLgi1iyOfw2ww6LtfCCCbLodJFUujm+qUwbtlv8KZOJ0Mkmg3 ryBw== X-Gm-Message-State: AHQUAuaCj3PSubD0PvOHCTnkOLLAVHyAovCx9RzaH9DEF7xx0lDbDJbE KbQJtWtvsgCTxwE6Hqv1IOwcOoNC X-Google-Smtp-Source: AHgI3IYoVuE5aTnbNnQrksnyJmELScc6A2n5IyMF/WPc63b5Eg8yQDtHIq/iWD9Bp/BGxz2tVc4JeA== X-Received: by 2002:a1c:ce0e:: with SMTP id e14mr4991352wmg.53.1549390535329; Tue, 05 Feb 2019 10:15:35 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 5 Feb 2019 19:14:17 +0100 Message-Id: <1549390526-24246-8-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1549390526-24246-1-git-send-email-pbonzini@redhat.com> References: <1549390526-24246-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::332 Subject: [Qemu-devel] [PULL 07/76] cpu-exec: add assert_no_pages_locked() after longjmp 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" We forgot to add this check in faa9372c07 ("translate-all: introduce assert_no_pages_locked", 2018-06-15); we only added it after returning from a longjmp in cpu_exec_step_atomic. Fix it. Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- accel/tcg/cpu-exec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index 7cf1292..49b3259 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -702,6 +702,7 @@ int cpu_exec(CPUState *cpu) if (qemu_mutex_iothread_locked()) { qemu_mutex_unlock_iothread(); } + assert_no_pages_locked(); } =20 /* if an exception is pending, we execute it here */ --=20 1.8.3.1