Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp833651pxb; Thu, 9 Sep 2021 13:11:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9xA/gMGAaZ6U1SZzRlM5ll1QXr6YdhFCtbkZWdkhbFhfPxRud6swxikGupx5RbI4QX5oZ X-Received: by 2002:a17:906:2c14:: with SMTP id e20mr5377543ejh.46.1631218280713; Thu, 09 Sep 2021 13:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631218280; cv=none; d=google.com; s=arc-20160816; b=NPVFbrENkO9q1rbUI2mwC2jv6Y4z9YK7Ig0hLlGWthh5G1GQDJAtT8rqD0hpqekniV PMYRSGOM5iE07nfktQU4QmEm8dcxPMmzTb82NkFaqR+tHfmfNXwnKIIrkRL7nG6p28nn WI5JK8IpoeI5bH6oRYx1FwCW5n5CI8QOrJ5vNlnvstVCuLodbddFGKVitpOtxZTHJDAz HybLrYBDn+502F4IQv404RAJqnIqMttLQAaHrx09QYjGQjkpS5XCz4bhPLmepWwQsgDo HNkJcnM0yMm/ygK7jTC6pMNmoiASKSjUHh6KLlubop/C/UzUfPt4v41OYeNI8Nf7utGX FJSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tO7FQvr77frYJi3nZmu6+pwHGzzGpRLOFUZlxjTtI1U=; b=xfluclDLThr5SlNTsp81Vbk+Iuwoy/00iWHu/nU00mZP5PygVIkYdA2sV9rH48uqaq 4gP1WbJjaYVBcocXYdHulS8pTcrPKpdl5rrq7RQ8J5ickSHs9oJezXuCEstf8vfdyEoR 4uWeI0tbUTR4mMHbAfXBzbPGvWzO9L0C+1LXsz51zEiT0SvxfG1Yf6Mh6iquZHDt2kzz TeV2I8fLiIJxtS1fMM/7eMqbD30EXTsfn/2drpRDJmF9SdA6mY9Wh5tP4T+wV4lqHmSm 7rXKnhJVpNOrLZVle0q5WZiHk3E/YQTQDebiIAhPnWLM+0ya3o71eZ2SL5+CxPT0WOkN +lDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Oy8ce1O5; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd5si3633289ejc.375.2021.09.09.13.10.38; Thu, 09 Sep 2021 13:11:20 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=Oy8ce1O5; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237322AbhIIUHy (ORCPT + 99 others); Thu, 9 Sep 2021 16:07:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231422AbhIIUHx (ORCPT ); Thu, 9 Sep 2021 16:07:53 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16B02C061574 for ; Thu, 9 Sep 2021 13:06:44 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id v10so6308809ybq.7 for ; Thu, 09 Sep 2021 13:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tO7FQvr77frYJi3nZmu6+pwHGzzGpRLOFUZlxjTtI1U=; b=Oy8ce1O5/wmCpWya7nBN8qiLzyBclFRFa2r5eAlAZU84jaC9rRJqZj+6BkGTdfIpgW Xo43sUbTTRgBrpwz5atoMw8WujebQDagPIFYaWoWcjBinCeRRovpaAoErPviwwGktYxP 2IzfCacZM2oMqC39Ot+/X5X/Dm9DDMIjRuU6S0+QBgx2AmPIUXBsbIFrNplp1T8lCRh8 yi+d82k1py9m7Zw1jRBRnzaBMTHpxNDk1JlsO3SBLSBfCH36zQGB1BjjhcxRxp10WXKe 5KDRIbkrpMER8mwxPbVPhljAg1QG2K6yLR41eqOBWjdb0KAOLc1agFTWxfHGFr2zJmrQ svJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tO7FQvr77frYJi3nZmu6+pwHGzzGpRLOFUZlxjTtI1U=; b=i+NdqcfqQ2nhP6sfkCF6KoOFFI/ieIOMwtNp7nwZEmE/npPrK8V1aiDPmP/4SlTvje ifzAZGaqQthhGxga5cNoQlS8e9ZADdej1TywGUVOuH5tVAKP0EnJcdQDyg2SaZYPA2Rv P/cniYhCZhgkLnjyHvKkvTGfZxG+ewD+E3GbeXrGgCCvEQVADB75QLC8dtvSJbiLKN8C fXE98lX/cct9gYjzjCm9U+OgrSsqmuHnWrrPARAn5Dl46GDAu8DvWKHSP1ZdwGvpWmEJ N4sNrwxRV+FuPpEmKXXu7d4vRWeaOOvv9H2q6NFg5N1zKAeynaQ4fJ9tUO/dT77Vz8eT VT4Q== X-Gm-Message-State: AOAM531b2v6uQ70Sw4ZqUEPRWWwl4L19KS4qIXlCNAWDQLrzLJH835X/ ejaA5AS1lySvErbOu9UU+wv7p/tkKit8lT9eiYQaDg== X-Received: by 2002:a25:8093:: with SMTP id n19mr6441809ybk.414.1631218003111; Thu, 09 Sep 2021 13:06:43 -0700 (PDT) MIME-Version: 1.0 References: <20210909013818.1191270-1-rananta@google.com> <20210909013818.1191270-3-rananta@google.com> <20210909171755.GF5176@sirena.org.uk> In-Reply-To: <20210909171755.GF5176@sirena.org.uk> From: Raghavendra Rao Ananta Date: Thu, 9 Sep 2021 13:06:31 -0700 Message-ID: Subject: Re: [PATCH v4 02/18] KVM: arm64: selftests: Add sysreg.h To: Mark Brown Cc: Paolo Bonzini , Marc Zyngier , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 9, 2021 at 10:18 AM Mark Brown wrote: > > On Thu, Sep 09, 2021 at 01:38:02AM +0000, Raghavendra Rao Ananta wrote: > > Bring-in the kernel's arch/arm64/include/asm/sysreg.h > > into selftests to make use of all the standard > > register definitions in consistence with the kernel. > > > Signed-off-by: Raghavendra Rao Ananta > > --- > > .../selftests/kvm/include/aarch64/sysreg.h | 1278 +++++++++++++++++ > > 1 file changed, 1278 insertions(+) > > create mode 100644 tools/testing/selftests/kvm/include/aarch64/sysreg.h > > Can we arrange to copy this at build time rather than having a duplicate > copy we need to keep in sync? We have some stuff to do this for uapi > headers already. That's a great idea actually (I wasn't aware of it). But, probably should've mentioned it earlier, I had a hard time compiling the header as is so I modified it a little bit and made the definitions of [write|read]_sysreg_s() similar to the ones in kvm-unit-tests. I'll try my best to get the original format working and try to implement your idea if it works. Regards, Raghavendra