Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1988709pxb; Thu, 4 Nov 2021 12:01:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg8puo2ovIpDDDUF5BrI2UX6jsPPnHBVdGuyPheNrmPOKFcvnQMyjtHUgkl0elTJ9SKGRx X-Received: by 2002:a17:907:6d82:: with SMTP id sb2mr47292889ejc.440.1636052466142; Thu, 04 Nov 2021 12:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636052466; cv=none; d=google.com; s=arc-20160816; b=IAuf9wJK7h89XnfYinBg9SVp152HcOUsBM0VWKffk/ROqE1VkJWt1D0LbMaxUTI5Wx DC9CZlZAy/bn0ExZ4p4ITcXYLG6bsAwu8KT7R5YNLzicCrbJ3NpaHYBB2yumf18H9ntj mUSFZDA8oC/N6QlA1/4atfoL8rMoRnerdia80TvlkdbMJezrrx5LdfXY896LesqXMgM0 L/sofSofB7GXjJQBhdvYNQAZOIwcw/2no0GVKy6fBI5vtlxp5wgz0xGjOU3IOW8l0MG8 5BspntsdloGOPsB62O8ubSsNjBA5fEOE0t9Y3OzqTpp/5x3dnJEzW+aHsvVBnQThp0MK ITyA== 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=nUmCcM2R27aOSL47pzbGyQqJ7fyPEFQW3dQWmWZEKC0=; b=PsKnC14nlxrphHmwGILCHnQE9FXT/xVcvtLDbpofNv/rXhMIia5TS8ckeMNPHQ4Rx/ +1VROrLrIj6gibjW6ypO9SM7YO2c89qlTsvEuoqfCikCRmdLvzRBop7ELg6pfO2qyHoD SqGHP2P6SYgzAOqqcPNtSr9hEnq9SQ07CGncfaccTm2I0hwAByvLqwv+vyy+26kyJNaK oMVZpPz94qjsqqyh6N1aHnRqhmGt49asng6LMCelbp/kZ0MnZc7J9TePF86VVJXoH46G Y/ZGzcKetulMbCh+D8gFXnDU3qjDRxwB9T7idWph08jG1ygQrBST1SkKtbxQLVUEUkXw AqlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=oQjhMPhY; 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 b10si8162086edt.156.2021.11.04.12.00.29; Thu, 04 Nov 2021 12:01:06 -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=oQjhMPhY; 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 S232141AbhKDTBI (ORCPT + 99 others); Thu, 4 Nov 2021 15:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230442AbhKDTBH (ORCPT ); Thu, 4 Nov 2021 15:01:07 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C632DC061714 for ; Thu, 4 Nov 2021 11:58:28 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id t127so16734141ybf.13 for ; Thu, 04 Nov 2021 11:58:28 -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=nUmCcM2R27aOSL47pzbGyQqJ7fyPEFQW3dQWmWZEKC0=; b=oQjhMPhYfnVcGc5KK9SCmA092z/fwG+34NzH0Wc9ooFbdCywDFlYcfLZsnjMMsT6wA UP7MYfCuyqdjsgF1ngXeQtwctBnTPnm3DAoPKWSubBQUVit3MSIN1oqZJGdcivz0ZMA2 bf9zIa941ohwL40/4HeiHvsJYLpVvUdObfiBS9tDj4l8mzXhDOryCBTaDhkCS6ZMBL05 wnkLbO2+6f3CNLWKslMFDqkVtyOw3f65Qmuz8TEmJEKSxtCjYvUlT3z2U7fo7bf8d4JR Lj+PdinXblZI0ySHphrkl8/9Avk12Y+rkrvka9L3n1cO3iUGqIeNU6rxVsxa5+rC/I1p 14jw== 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=nUmCcM2R27aOSL47pzbGyQqJ7fyPEFQW3dQWmWZEKC0=; b=GxZaD0xLARq0fUH7fA12OSACJtkjqPzkNGnsGgdNbNuwcI1f/fkvddq43HMssC01dw 9xqPen591x79pUFE2mmqQJYFjW+yFfaSSC+ij1vgkrVPKZNTDPJ0jtIaVcQV6AqRuAg7 l/76D+sL3e/QHK2f4MWRaeF2JEMzl+ta48GqgA0UhzcMLEITnx8omnEhD5f0tr3NANIo sSaRrg9ZOK4fZa4twVOCOncNtaASxhaJHSafMyPhGBrwM7Hj+V6sKrcNuYuw11FNlCEs xaEuk5H5gUb3899aUvrZN1eRDFOnA1rF3t2IeM3neCTPukp6AaNLleBTBmSsR1xlNDty M3xw== X-Gm-Message-State: AOAM533OMETGiKkt+s9CIoa0VD+mvODRBynLFeigZ7UT8+Ecg17l+OMV ler7wRkkWJWDceh1Nb1XN/VxXWaz8zz3p7np1vK6kg== X-Received: by 2002:a05:6902:10c4:: with SMTP id w4mr39840645ybu.439.1636052307853; Thu, 04 Nov 2021 11:58:27 -0700 (PDT) MIME-Version: 1.0 References: <20211102002203.1046069-1-rananta@google.com> <20211102002203.1046069-7-rananta@google.com> In-Reply-To: From: Raghavendra Rao Ananta Date: Thu, 4 Nov 2021 11:58:16 -0700 Message-ID: Subject: Re: [RFC PATCH 6/8] tools: Import the firmware registers To: Oliver Upton Cc: Marc Zyngier , Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , 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 Wed, Nov 3, 2021 at 5:23 PM Oliver Upton wrote: > > On Tue, Nov 02, 2021 at 12:22:01AM +0000, Raghavendra Rao Ananta wrote: > > Import the firmware definitions for the firmware registers, > > KVM_REG_ARM_STD, KVM_REG_ARM_STD_HYP, and KVM_REG_ARM_VENDOR_HYP. > > > > Signed-off-by: Raghavendra Rao Ananta > > > > --- > > tools/arch/arm64/include/uapi/asm/kvm.h | 18 ++++++++++++++++++ > > 1 file changed, 18 insertions(+) > > Won't we have the latest UAPI headers available in usr/include/ at build > time? > I think we do. Wasn't aware of this. I'll delete the patch. Regards, Raghavendra > -- > Oliver > > > diff --git a/tools/arch/arm64/include/uapi/asm/kvm.h b/tools/arch/arm64/include/uapi/asm/kvm.h > > index b3edde68bc3e..a1d0e8e69eed 100644 > > --- a/tools/arch/arm64/include/uapi/asm/kvm.h > > +++ b/tools/arch/arm64/include/uapi/asm/kvm.h > > @@ -281,6 +281,24 @@ struct kvm_arm_copy_mte_tags { > > #define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_NOT_REQUIRED 3 > > #define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_ENABLED (1U << 4) > > > > +#define KVM_REG_ARM_STD KVM_REG_ARM_FW_REG(3) > > +enum kvm_reg_arm_std_bmap { > > + KVM_REG_ARM_STD_TRNG_V1_0, > > + KVM_REG_ARM_STD_BMAP_MAX, > > +}; > > + > > +#define KVM_REG_ARM_STD_HYP KVM_REG_ARM_FW_REG(4) > > +enum kvm_reg_arm_std_hyp_bmap { > > + KVM_REG_ARM_STD_HYP_PV_TIME_ST, > > + KVM_REG_ARM_STD_HYP_BMAP_MAX, > > +}; > > + > > +#define KVM_REG_ARM_VENDOR_HYP KVM_REG_ARM_FW_REG(5) > > +enum kvm_reg_arm_vendor_hyp_bmap { > > + KVM_REG_ARM_VENDOR_HYP_PTP, > > + KVM_REG_ARM_VENDOR_HYP_BMAP_MAX, > > +}; > > + > > /* SVE registers */ > > #define KVM_REG_ARM64_SVE (0x15 << KVM_REG_ARM_COPROC_SHIFT) > > > > -- > > 2.33.1.1089.g2158813163f-goog > >