From nobody Mon Feb 9 20:35:39 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 1549305701222658.7951439818485; Mon, 4 Feb 2019 10:41:41 -0800 (PST) Received: from localhost ([127.0.0.1]:47332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqjBX-0000J9-6E for importer@patchew.org; Mon, 04 Feb 2019 13:41:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqj6l-0004xH-SG for qemu-devel@nongnu.org; Mon, 04 Feb 2019 13:36:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqj6h-0003Ob-MV for qemu-devel@nongnu.org; Mon, 04 Feb 2019 13:36:39 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:33125) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqj6e-0003L2-2e for qemu-devel@nongnu.org; Mon, 04 Feb 2019 13:36:35 -0500 Received: by mail-wr1-x42e.google.com with SMTP id a16so998496wrv.0 for ; Mon, 04 Feb 2019 10:36:29 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id s132sm8836236wmf.28.2019.02.04.10.36.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 10:36:27 -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=Zp29a41k7F+6l0wNd1AiUEOBlqY/ojtfc6CydOsGq1vd4x8LD+BaQw38Rj06reqmcj rlTz01YtYsdwPCrzA/SedwL6kQGD5jNKYPrOg2jDZSZMTZQT+4UkgAMsesfXXPn4N30O 65XYSOJ+sqrS5eco7qRcxGxAkNEnqklazYZevl1+36L7/vrxzAOOq0ZjXSjF1m8F5Ajs orhRrqEV8j/bUw+FkyF/Z1of/O6IFkU3h2Lei5vUjHPVYvRckWhnMCuwuW1B0gFATsZM uOjap5Yunw2na5QStREFQ7yaW6TUFkLPYYf23/7oF0JDNy5I+StaWcP4gUsI8HFsZSmB b0Qw== 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=OdTxYrZvep6CC5k7DdGqvdblzUx+Gl8/AaV5Bn7fr+lSOE+MH9QZL8u6OlWwaXMhKs jzMP138xeAWS7zVS+RlNbxBBAVyUBG9VKrVBVAoN7qcf3PFjmqjzoAYVoN1gSzJiiD93 +Z2/xRDwyyzhp2jdea0c2fmV+KeQquoVlz1Ko3L/X5eo4iGIuT5xM9xY/8B2VRnNG+kq 6s9aBaDgdQzUBZb/Nc0v4/Ca14ybSpSFOHpMl2viYnGIN2hcZVgFascbWtdm+Six87+7 V5hCeZ9K0L/mamZs8PBOgZN0yVi7Oz4ZmJqhoWPvsNlhYHr8ur+iVjYgvYVvQU8hJqy0 IeCg== X-Gm-Message-State: AHQUAuZYjEE/7dwQhBkW3EfSQv7xSsgM0rGF00n6SlRn0MlfBODZrXQ2 0AEmiUBf0SxK4ti4rSLl45gd7nD5 X-Google-Smtp-Source: AHgI3IZ73YO+YgKq9zI3VNp6dNaWSY1HpYii1pZEb8b6l5qC0RiyP0+7dxameyZiMtuTJ2+2asuCXg== X-Received: by 2002:a5d:4acb:: with SMTP id y11mr528760wrs.281.1549305388512; Mon, 04 Feb 2019 10:36:28 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 4 Feb 2019 19:35:10 +0100 Message-Id: <1549305379-51117-9-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::42e Subject: [Qemu-devel] [PULL 08/77] 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