From nobody Mon Feb 9 21:20:55 2026 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=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1537961670518354.9600398953555; Wed, 26 Sep 2018 04:34:30 -0700 (PDT) Received: from localhost ([::1]:57728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g585G-0000W3-5G for importer@patchew.org; Wed, 26 Sep 2018 07:34:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g582a-0006IA-VJ for qemu-devel@nongnu.org; Wed, 26 Sep 2018 07:31:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g57sD-00016S-34 for qemu-devel@nongnu.org; Wed, 26 Sep 2018 07:20:55 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:53050) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g57sC-00014t-S8 for qemu-devel@nongnu.org; Wed, 26 Sep 2018 07:20:53 -0400 Received: by mail-wm1-x329.google.com with SMTP id l7-v6so1858372wme.2 for ; Wed, 26 Sep 2018 04:20:52 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y128-v6sm5013297wmy.26.2018.09.26.04.20.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Sep 2018 04:20:49 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id BBFF43E0442; Wed, 26 Sep 2018 12:20:48 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hvcbVe1lmx2/vFZx9MUhWU5Mc+LZnSeTTBY8pimf380=; b=XNz983fT2OZXd2Cx42GZrN3TMAsNfPNP8YiC1Yx5QZnlXcjSMeT8dnxUjcyQsQ0/IA GOhatbXF3ypfIiZ4uhPrtZHosCub++7DLDmIZ2XseeraKPc1UqpFy+do2Idsk2fIdsuN B6yaZakY1D2b9/a0u4fhpSR/tasRhGiRxFcDA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hvcbVe1lmx2/vFZx9MUhWU5Mc+LZnSeTTBY8pimf380=; b=bLfN67MLgJC5xr6FP3r1zfn1CRIu/46yn5LVZytHYasm27DQYGgn5xKEkggsz90faZ A6Lwx68K4qm2w3OPImXvWEdbRxT6X3Md5orhGNppf5HpqYYEr1ypR67fe7zAv2V0zTl4 C1F7roOcvwewFzKRPELoTtOhW6fR3xx+IeHbmYvVW6HEyLXngjPVqNwY9B3I0yL373i8 cJWKfw1W21K0EYK+BMpM521W2/V1bEcXX4ioN2fnsoWaF4CLMNF0Bz8BuzHO1DgTIR55 awIJnty9CklWUN6s+nLMHZ5H8fw3UZ6p/ERHtGrkbt6cyF+Eu96IElr981gysglgnx2T Y+gA== X-Gm-Message-State: ABuFfohOJyAx/ilAFwzjk2IOEkKlCT9cNZydIs+Lx9T94ZKHjLDZH/fI xs8hHaeC5UCD+UZfGM9avmE+qQ== X-Google-Smtp-Source: ACcGV60iq3iDDGEzVNdaUOYdarZqatKdrgZ63YHSViNiL48CNGtoLA/UByu+zCcOMDhvMewqMdWT6A== X-Received: by 2002:a1c:3351:: with SMTP id z78-v6mr4100123wmz.23.1537960851447; Wed, 26 Sep 2018 04:20:51 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 26 Sep 2018 12:20:46 +0100 Message-Id: <20180926112048.17778-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180926112048.17778-1-alex.bennee@linaro.org> References: <20180926112048.17778-1-alex.bennee@linaro.org> 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::329 Subject: [Qemu-devel] [PATCH v1 2/4] target/arm64: hold BQL when calling do_interrupt() 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: ard.biesheuvel@linaro.org, Peter Maydell , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , omair.javaid@linaro.org 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 Fix the assertion failure when running interrupts. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Peter Maydell --- target/arm/kvm64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index 80ad07ed0c..346e1f1a73 100644 --- a/target/arm/kvm64.c +++ b/target/arm/kvm64.c @@ -984,7 +984,9 @@ bool kvm_arm_handle_debug(CPUState *cs, struct kvm_debu= g_exit_arch *debug_exit) cs->exception_index =3D EXCP_BKPT; env->exception.syndrome =3D debug_exit->hsr; env->exception.vaddress =3D debug_exit->far; + qemu_mutex_lock_iothread(); cc->do_interrupt(cs); + qemu_mutex_unlock_iothread(); =20 return false; } --=20 2.17.1