From patchwork Wed Sep 26 11:20:44 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: 147566 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp603649lji; Wed, 26 Sep 2018 04:36:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV629+2N9Dp0icNL0zNFq5+1DzlEfeSG4KIRN2UurAvSvZfti8mIM62Q6kPdMjclZuBzhgYGc X-Received: by 2002:a0c:c119:: with SMTP id f25-v6mr3014442qvh.219.1537961804012; Wed, 26 Sep 2018 04:36:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537961804; cv=none; d=google.com; s=arc-20160816; b=Qn0PS7XQvpdtotJZdniOvacjkB8oo571ObhODFzlKitl+LxdeQFQrr02mcdUxMUt1s QHTYIDIpPuRFg9fWsASsU+7hKJXn618edVDwSmj7HLNVAf7mVRu75nwfbNL2HU9LJJ9t NoYTFxxmOZ6bm781bgm7Xtj9UBebhSjSp6XxrJqrAoH+C9I6ko/pBYnGhFhOJ0YRnWNv SfzUJ6DjjlucYIb3JLKZpysi0+OWXCmNjoLpcj+MpWhreeaC55Y5amIu+h9BwjYWrD/B D+tePI1AlvVdUj9i+jgyGL44yVITObLBKLprMzErsa9U642vYxRmyF07Y2YRBOado1I5 Noeg== 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:message-id:date:to:from :dkim-signature; bh=2aTOMvCci9hhQ4ASwcKVKaLeaGU+Uzgn+60aOR5ZT6s=; b=dV6+MHBQ0DQbsnvp3MV2lgstrh6+AYwuBkN/nvqXzf12fDKH73GHLthibxHIwyY3z8 MlrU0IqPZcF5JT/n+XO+Ua+t/gDqsh5QoGnzR5ohl5zfwYMv+f6eFLJA4FwpwZEtLoHu 3LVj1sHhqq9lzr44XLegEwOT3ghjRfci193oeTPXo+bqOiJ1Co7y3ssmOmGBMU8/fImc KHVV6agPyOdP7UlBYRdkPsnF4AJc3zrvM63vS4HMT9HqbKg1xoGX9k/32gFGq556AMCj UubVr48iGO5wKddVXMP4oMPhxR5phdH1z3iJcz0pp2EHBgoa4Z8y62Itc1iyVDsKNfYu 13XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Wv0bKpzN; 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 w3-v6si785877qvw.271.2018.09.26.04.36.42 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 26 Sep 2018 04:36:44 -0700 (PDT) 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=Wv0bKpzN; 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]:57751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g587W-0002fJ-BA for patch@linaro.org; Wed, 26 Sep 2018 07:36:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g582d-0006IT-QY 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 1g57sB-00014g-Qv for qemu-devel@nongnu.org; Wed, 26 Sep 2018 07:20:55 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:35631) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g57sB-00012u-90 for qemu-devel@nongnu.org; Wed, 26 Sep 2018 07:20:51 -0400 Received: by mail-wm1-x334.google.com with SMTP id o18-v6so1896665wmc.0 for ; Wed, 26 Sep 2018 04:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2aTOMvCci9hhQ4ASwcKVKaLeaGU+Uzgn+60aOR5ZT6s=; b=Wv0bKpzN6kmojWvc9Ra+LZj3ScGL4XXFUYNbOJhYZYVKzypyuq5k8iwag5eLR2SL2C K+0Q0eu2DohbNEcGyqcgyQMT/EMPZzhz/JMMabaC31sB32am7jwmX4VlieldJfwJ7trU NTnRII6vjs0CVdER2KYA98sgaSmS8aYwA/I/s= 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:mime-version :content-transfer-encoding; bh=2aTOMvCci9hhQ4ASwcKVKaLeaGU+Uzgn+60aOR5ZT6s=; b=d5d/nZ/G2zgHz8L5CMKi97pNe43SVNq1D/4moL1TvEnzEem6SplK3D3s6vlk8Yciyo 6oEx1lEfqDdeyD7PU8vueTsYdCqMZJCraxB2bd8fdUa7HJ3QlH5EShvxii8sSXjl9Q+z LfBRDh132G7vcVLjOs0fbsdrP/Q8c4VEvRW8C8njEHnFutePmbZnbypg+NMjL6bGsABi 3mwlFG+fFbTkCr9/xnqyDVqXbyLy97z9xAGNO1ASV3Ve9fpJma0crBrqzuu4RVm71dU7 b/o05SeD3Y/7om6FEyAz+WH8hsiSpdCGlspmfty3Vr0Iq9dkHWsPUTBy4jlkLaHamPgG a8AA== X-Gm-Message-State: ABuFfogg/b1ZlvK6CKlUnHdJSTE0/KHvSio7I1X45CkqNCIdyWK+y+Hu rc8mJQd5AQIDje2jJxZOksyZ+A== X-Received: by 2002:a1c:1a48:: with SMTP id a69-v6mr3960010wma.43.1537960849882; Wed, 26 Sep 2018 04:20:49 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t20-v6sm3460635wmi.24.2018.09.26.04.20.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Sep 2018 04:20:48 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 966ED3E03F8; Wed, 26 Sep 2018 12:20:48 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 26 Sep 2018 12:20:44 +0100 Message-Id: <20180926112048.17778-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 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::334 Subject: [Qemu-devel] [PATCH v1 0/4] fixes for kvm/arm64 guest debug 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, qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , omair.javaid@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, While at Connect I had a go at reproducing a problem that Ard had reported to me about guest debug not working. I managed to replicate it and uncovered a few other nits in the process. While upgrading to a tip-of-tree gdb to get around: https://sourceware.org/bugzilla/show_bug.cgi?id=23127 works we certainly can be better at handling the DBGBVR bits in QEMU. That fixed the additional BQL assertion and target_el assertion failures are harder to trigger (you need to debug your debug while debugging debug). However I've included the obvious fixes for that as well. Alex Bennée (4): target/arm64: properly handle DBGVR RESS bits target/arm64: hold BQL when calling do_interrupt() target/arm64: kvm debug set target_el when passing exception to guest tests/guest-debug: fix scoping of failcount target/arm/kvm64.c | 15 ++++++++++++++- tests/guest-debug/test-gdbstub.py | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) -- 2.17.1