From patchwork Fri Nov 9 15:21:14 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: 150656 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp73096ljp; Fri, 9 Nov 2018 07:22:03 -0800 (PST) X-Google-Smtp-Source: AJdET5faqMmTSwv2dG3BrrRo6Vgr0pdFP6ny7TD6ZMNYhk4Iq57dS31PEUGuhSE4kO5uZ4H9YujJ X-Received: by 2002:a37:8245:: with SMTP id e66-v6mr8750459qkd.335.1541776923384; Fri, 09 Nov 2018 07:22:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541776923; cv=none; d=google.com; s=arc-20160816; b=IzDM3jCUR6x89x+Xhrucpezj1coRhRS2zF1YvKYuezQVYE8GQs2Fj3GOirBFohat01 RtLLYOC+C9p6FFat8D9NBFpzFoH9vR624CN1meD6C7xY0iNqvyF1QFjQv9XaOiUSwx1O UoYqo3y4RZV6fntU31j/NR+yw8AK0oQspv+VPdIYsXMyqK5N7zJdAn2lxoY1WBaE9Hii YOpTeeCt16P4D3UfLV60Yiw0ZXZPxlfA9cBO4cs39ekPq99bJkqx3wqXYO/Yy5HfLuno l6sVI5TTeq4LI9IhZTB1ieAln6Wt9YbomLmoAY8Rh8cF63pp+c9lX3ioFtAafyFBeo7x 0rRQ== 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=TOuMJWy6Z+buH6QIOlPoGBEco/kLCfuouHDYpwE2lqQ=; b=tayfo/0AFOGo1dERKPAK5N0a34TFs7M4iTK8CA6NCKfA3Dxxn4MuC1O6kXtVF25Vf3 p2udTpj1KY8nC0UujP1qDsGk9PJWThtANK+CJFD+/DRfhf+4oFsyOF4ey6WdO6TYxEZd GxMDaqFzZzOfMwh4tXQEO9wfD8JVK2Qh4RW1TIuUVOPxJe/YEhepYO0+uQO4LZOz8bUS kUF/9AsL2Bi9E56aY7YEOlEACRQgSJilyRU1Q+xkprWOUTsMPfHdrR3kpcVl6wZJoZgp dPrhRINFTjq1URXq/ELoPN0dwgveFMVKr8XaQJJtHkq+g8LR2wUcqKC/aiFBijF+A0sf Lz+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bpA+AkPY; 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 u62si6245266qku.212.2018.11.09.07.22.03 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 09 Nov 2018 07:22:03 -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=bpA+AkPY; 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]:34710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL8bi-0001ES-NP for patch@linaro.org; Fri, 09 Nov 2018 10:22:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL8bC-0001CF-29 for qemu-devel@nongnu.org; Fri, 09 Nov 2018 10:21:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gL8b8-0002yI-Pw for qemu-devel@nongnu.org; Fri, 09 Nov 2018 10:21:29 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:42773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gL8b6-0002jU-V9 for qemu-devel@nongnu.org; Fri, 09 Nov 2018 10:21:25 -0500 Received: by mail-wr1-x444.google.com with SMTP id y15-v6so2283225wru.9 for ; Fri, 09 Nov 2018 07:21:23 -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=TOuMJWy6Z+buH6QIOlPoGBEco/kLCfuouHDYpwE2lqQ=; b=bpA+AkPYV6x0Qbu0zjmfFozZNuQiCWo+maGP/NIUDdv7F4UUsjsr8CfUFZs9cbHLuj MovSgfP/M6wBImacUYIY+OL31BQEjZIz8nbxKoxaf/2Q1AVgE0Ri97GJVX9xJFuWZPtA jxQRWMzfyJCUmWUcmLINLFJUl+oVpegHZ/VvQ= 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=TOuMJWy6Z+buH6QIOlPoGBEco/kLCfuouHDYpwE2lqQ=; b=btJSgANVLgHS3uzYPauoVSYUYesW4dWXAd5Km28wQf5YXgvEv7L/oZJmQz9bDC/KFB JT6AFq8xt2Bc2eivNi4oe2qPhOjaBqZJXspLEwD6Y6XqxaF0Opu7nseRa+K5QEp7dZfl yzMplXlwZodCACtCpvRaEPRhEEBufp1A6INTxXYdlE6c0Jkxw1TDo2ZQO0zNTpIMqPZL LkbTQoDXRQoYizx8jltBHQ+9hE60yZJoDOZlKeAzJ6dO2LoM/qnzWOiMqj4kOebEg9LB i6sC8iR3t4jY4NF2GMGPYIUkDAnJ4obiAte6dvxUbPVJrm5Omu91lavf/Rw3D88Z9Abo iPCQ== X-Gm-Message-State: AGRZ1gLIzLJtzbCBN2N+j+sMwFb+oWBz2oK98KzYhOy1qCGKiBR1T5eN IWbg6s701qTYeo0/lUK2UAUUtg== X-Received: by 2002:adf:f20a:: with SMTP id p10-v6mr8429403wro.293.1541776882133; Fri, 09 Nov 2018 07:21:22 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v129-v6sm1458686wme.45.2018.11.09.07.21.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Nov 2018 07:21:21 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3EC5F3E0467; Fri, 9 Nov 2018 15:21:19 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 9 Nov 2018 15:21:14 +0000 Message-Id: <20181109152119.9242-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181109152119.9242-1-alex.bennee@linaro.org> References: <20181109152119.9242-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::444 Subject: [Qemu-devel] [PATCH v3 2/7] 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 Reviewed-by: Richard Henderson --- target/arm/kvm64.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index 6351a54b28..c39150e5e1 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; }