Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1408751pxb; Mon, 11 Oct 2021 05:31:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfxUHLtv8wcBzVPWMl2eiCFalRZuGgEZvbLpXbvZdFQKohfQXKSsGPWr7/RvvqwM4tYqbi X-Received: by 2002:a17:902:c713:b0:13f:295d:803c with SMTP id p19-20020a170902c71300b0013f295d803cmr11208477plp.46.1633955477366; Mon, 11 Oct 2021 05:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633955477; cv=none; d=google.com; s=arc-20160816; b=MX1qecxgnPlyy+tZzBIuvUmGbwY8uX0YVvf91q90OmtbISA7zIvzYBrlHs0fslgnm4 prt90dDMDu8iiwsTkBD2yM6F6XtgQy7GGEU/0R+C+84nu70pMqY6hPVg+vrWjWO9e2cM 5bwi1JxyZhfC+gVFExymr4VMkfkpEcCw3t6GO3Tnts5Zvx+G4xT4f1AAFButFfQs1HzA SHd1xVDCM+Ys2UjCRn+xHf2ltfSVVrqfJKS8M5DnDRPLYhVpCJqSsK+uiOwGCwMqpvWa H1PJ0cx7v8QDqvLkMI6USjDSm4BPHKxsAJeaYdMizkkfYlYKMXCII/amoDfceapOgYdy DVrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=cHdlQLZTVgpOP0joyOXAJAQNqPAPBSoDFyKb3zZem44=; b=EkKmujQYTwD9f5xRJhcF3Y/I96WJyz0uotvW+/FIMs7a57Z/e95Ksb4YFUkAyALkU3 rt1Rl8/OWLNX1ywnpDLrTxKxBuWA6L7nxHQFDzgOuv3xe2MQrSYKy8C1vy+GunnKqpBV Nni1J1czxJVmdhUptNVvDiCcgfsVWUFGL2H8agDoa2yhCP/YkIq68xcIwmHDMTCcxY/e GuVpnZOz+m1vGS4vP8qqDH/R+IJXPjaRgo6XWZ9HbyoJKA72VfKlEifCtD92qzu+7RdT puQ1oBHpvUArYwf8OEmV66G7vTEBxZh+W4K2nd6rUaeMtAPsx5Q8y/0oI+aDTWPVIU7q 8ywA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k1si14336529plk.15.2021.10.11.05.31.04; Mon, 11 Oct 2021 05:31:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234890AbhJKIRQ (ORCPT + 99 others); Mon, 11 Oct 2021 04:17:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:47362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231300AbhJKIRP (ORCPT ); Mon, 11 Oct 2021 04:17:15 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5F02A60ED4; Mon, 11 Oct 2021 08:15:16 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mZqSo-00FxTa-3C; Mon, 11 Oct 2021 09:15:14 +0100 Date: Mon, 11 Oct 2021 09:15:13 +0100 Message-ID: <87y270ou3y.wl-maz@kernel.org> From: Marc Zyngier To: Raghavendra Rao Ananta Cc: Paolo Bonzini , Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Oliver Upton , Reiji Watanabe , Jing Zhang , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v8 03/15] KVM: arm64: selftests: Use read/write definitions from sysreg.h In-Reply-To: <20211007233439.1826892-4-rananta@google.com> References: <20211007233439.1826892-1-rananta@google.com> <20211007233439.1826892-4-rananta@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: rananta@google.com, pbonzini@redhat.com, drjones@redhat.com, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, will@kernel.org, pshier@google.com, ricarkol@google.com, oupton@google.com, reijiw@google.com, jingzhangos@google.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Raghavendra, On Fri, 08 Oct 2021 00:34:27 +0100, Raghavendra Rao Ananta wrote: > > Make use of the register read/write definitions from > sysreg.h, instead of the existing definitions. A syntax > correction is needed for the files that use write_sysreg() > to make it compliant with the new (kernel's) syntax. > > Signed-off-by: Raghavendra Rao Ananta > Reviewed-by: Oliver Upton > Reviewed-by: Andrew Jones > --- > .../selftests/kvm/aarch64/debug-exceptions.c | 28 +++++++++---------- > .../selftests/kvm/include/aarch64/processor.h | 13 +-------- > 2 files changed, 15 insertions(+), 26 deletions(-) > > diff --git a/tools/testing/selftests/kvm/aarch64/debug-exceptions.c b/tools/testing/selftests/kvm/aarch64/debug-exceptions.c > index e5e6c92b60da..11fd23e21cb4 100644 > --- a/tools/testing/selftests/kvm/aarch64/debug-exceptions.c > +++ b/tools/testing/selftests/kvm/aarch64/debug-exceptions.c > @@ -34,16 +34,16 @@ static void reset_debug_state(void) > { > asm volatile("msr daifset, #8"); > > - write_sysreg(osdlr_el1, 0); > - write_sysreg(oslar_el1, 0); > + write_sysreg(0, osdlr_el1); > + write_sysreg(0, oslar_el1); The previous patch has obviously introduced significant breakage which this patch is now fixing. In the interval, the build is broken, which isn't great. You can either rework this series to work around the issue, or I can squash patches #2 and #3 together. Thanks, M. -- Without deviation from the norm, progress is not possible.