From patchwork Thu Nov 8 16:33:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 150536 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1041343ljp; Thu, 8 Nov 2018 08:40:22 -0800 (PST) X-Google-Smtp-Source: AJdET5esCPmlVg1duKkAEyf8yQxOIWyYTsSyBl0H/w3EhM8nuyITkt9LdmL9SMYDq42y9mS+n4GM X-Received: by 2002:a37:b6c5:: with SMTP id g188-v6mr4746527qkf.188.1541695222309; Thu, 08 Nov 2018 08:40:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541695222; cv=none; d=google.com; s=arc-20160816; b=xTRYJwMuCV2ul+Y5SaFjqNScp+h/DvMTY7ftbshO6vbBLWfgGXPGZAJVCMA/Io//OM nHFDn2JymviHF1UCTvSpOIlbmEF7No2mSMzfLZK9luABL6kAOPScwt/2WSAe8TCzwZA7 KiJnj6w9HRPyxB2JdZOOtqsQmywmI7EirgKXS20EIblKdaeE5Bx3zsj1IiODB6N0R3ki 76Eh1/RfD9AtZaMFYUqOj7GTtFdO+mzFf5lrkv8wvGYrxmcSM5eef41BPSYgUyfmr61O oVoiM3NGfUcQF/7MriC84pMLF4xIxYanRB9a8F3yhjQqZ1lex7hZChPtk03nxZMhgjED RICg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=w8M74aiMY+nmTaqeTVUxVUfMTWRrHBW+AcCZyefwKgI=; b=D1020n24htd2s6+5jNViAiFxd2u/ssF02yKP7RvYBnZB/yJc+8T76H3173cIh8VvEB Fe/5bZNt1w3IxNVZdCmtfITiTunJ8e0GIa8YaAgGkncAlY0SdB3fanbbpTZeCQXExpPA AcBr/OA32oz0t/tEamGgqCl1V4AdAYGIYIZIm+YIaTMk8g1FeO3EhzY7a43CIXE3UJS6 eBZDNc+t2pTkfcS7s0oni3qzqCXO4W4wz9ekIlByX7EYobXABkRoUtB1vDDE9zQSjNDD LouOZJFGcsprWA9KGg7Gd+PT88deL+N5YNdCpBxJBiNAHKYWr2y3oWTR+NhR6vLRXF/B vpRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=chkbAfgF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x56si2493154qtc.123.2018.11.08.08.40.21 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 08 Nov 2018 08:40:22 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=chkbAfgF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKnLx-0006uU-JO for patch@linaro.org; Thu, 08 Nov 2018 11:40:21 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKnFg-00083o-CH for qemu-devel@nongnu.org; Thu, 08 Nov 2018 11:33:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKnFe-0004ud-Lo for qemu-devel@nongnu.org; Thu, 08 Nov 2018 11:33:52 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:55670) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKnFe-0004bE-Bs for qemu-devel@nongnu.org; Thu, 08 Nov 2018 11:33:50 -0500 Received: by mail-wm1-x341.google.com with SMTP id s10-v6so1908711wmc.5 for ; Thu, 08 Nov 2018 08:33:33 -0800 (PST) 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=w8M74aiMY+nmTaqeTVUxVUfMTWRrHBW+AcCZyefwKgI=; b=chkbAfgF4Saita7FmeT0R5R5u5SShvytNjZR4MRkGUN5xI9pOWzKe7yBm2ppk7oX6d 4Z0hQAh1bWNpWFKt4ieL5nRlFF58rcLmhb8Jl6A2fWBxaInErF1WbpmK6+8YuMsulQuJ kEVOcihQJUjpHcxtvF3d1t4nH+XHRfrb3HsvI= 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=w8M74aiMY+nmTaqeTVUxVUfMTWRrHBW+AcCZyefwKgI=; b=osNjODK46Ftaxy2Hfsnt+U5nJGlRKesmBmOXqbhOkzPWWjx/e+kJ6qHOiGiJUqMTB5 1WQWY1ezycSTGrZos3eUWw1WN5xC/hRPU5Lxrkpsdij+/GlYyQ4rugMTfSVICHUc/tw/ h9PKYSTFi2k/hLrLIhWcTFR7KZbBNZNiA4v0+sCEnm/5q9/i0u9702WSTBuA/4pDPjYN 8+io2kK5t6d+IKQL1nUkj9NADxijyuvrlk1iH/hHr5q3/k80EH7RwY+yl9FbQOm4iTJG dpySh1S4WDqkltaoeAbpTZ7aqkTLyeO972BrHyRHbDTlfgeal9BB8ADE+pqGU9Ma6PNq dQZA== X-Gm-Message-State: AGRZ1gKDl9JUoBFKKYXLclmcHVp1JBad+CyWZ8PgyA8nRJFFm90XraHM mNylnqk6IABHhDdHtkVDoKORGqSIE4Y= X-Received: by 2002:a1c:96c7:: with SMTP id y190-v6mr1858599wmd.36.1541694812694; Thu, 08 Nov 2018 08:33:32 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id h16-v6sm5120832wrb.73.2018.11.08.08.33.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Nov 2018 08:33:32 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 0FAF13E0467; Thu, 8 Nov 2018 16:33:30 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 8 Nov 2018 16:33:25 +0000 Message-Id: <20181108163329.19940-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181108163329.19940-1-alex.bennee@linaro.org> References: <20181108163329.19940-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 Subject: [Qemu-devel] [PATCH v2 2/6] 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: peter.maydell@linaro.org, qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Fix the assertion failure when running interrupts. Signed-off-by: Alex Bennée Reviewed-by: Peter Maydell --- target/arm/kvm64.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 Reviewed-by: Richard Henderson diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index b92ce3437f..03b0f78831 100644 --- a/target/arm/kvm64.c +++ b/target/arm/kvm64.c @@ -1000,7 +1000,9 @@ bool kvm_arm_handle_debug(CPUState *cs, struct kvm_debug_exit_arch *debug_exit) cs->exception_index = EXCP_BKPT; env->exception.syndrome = debug_exit->hsr; env->exception.vaddress = debug_exit->far; + qemu_mutex_lock_iothread(); cc->do_interrupt(cs); + qemu_mutex_unlock_iothread(); return false; }