Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1050787pxb; Wed, 3 Nov 2021 17:26:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7ZsZSC1hki8E7+wuLVMEOb/Prq8Yy+fWTU0snDwm/HDSsOBq5qcDJZc12m01Nw+UFDVJP X-Received: by 2002:a17:907:2da5:: with SMTP id gt37mr36766082ejc.316.1635985578499; Wed, 03 Nov 2021 17:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635985578; cv=none; d=google.com; s=arc-20160816; b=FYGKf6XqsXFgnAHpRqj8VnhK6aw3+jLEdsc5aG0bGnsVCC4W+5mUO+9XKLLNJqSZoK ozOglM/c55/vM7iPUWNzg6d1X/w7rXgNdqzqNgBl1+/NXATIDtOcX1Xx32IzyBAnRZ1d EJW4/6zVu4cUo7/rpZaN4WsR6acF92JLQxF1QuMzxN+6V/uCbHSfAFPiu1vsTCaYqFcD 42TZFWvC/GQ7H3ykgUHoAOUJczBB+gYht25rXjDg74ZRx3D2vBSLOm8wdeIUApbA0QT4 KzbEqXZcmfbvrTDseSI1jxabluWXdTch/MpPl3ykul9IUKLCJqy7iNhHYsqLfDc7pM8S 65rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GJHduIoLbm++PXo1EI9ctmGW1RwoyK72y3OY0VPBDcU=; b=bDOzq4Kimcz+Ab5c33JdW975jJ12iN6Sdq92ZAMKdepp0Y3ue2mkX/unR76nEwwP28 1dGH48CS141bgyyp9H5GsiTaG1q+9PassrvGyrmrB63UxLOv8laILJTFBsJtBK6YBKLh 8U8BeZznWzCktbDyQcm1e4eCd/ALmWnzzkNlKdsDus/WnRpadDn2nVPTQa1lEl05Y9A4 +opPH64wDVIJvOlGMg94KxXvPX2ooP+FbzuV6dQDhZX9r/oJaRdwDBKZF8Rt9s4IguZY W4Q34Ynt5qfIIlGbk6oKIjA8MzIvvLRkjt8+3NGiFH+urGjQRvCIrzFE6+jU8eQeYr4T 2AZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="jUR/GFvW"; 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 s1si5552667edi.608.2021.11.03.17.25.54; Wed, 03 Nov 2021 17:26:18 -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="jUR/GFvW"; 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 S232755AbhKDA03 (ORCPT + 99 others); Wed, 3 Nov 2021 20:26:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232399AbhKDA02 (ORCPT ); Wed, 3 Nov 2021 20:26:28 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49767C06127A for ; Wed, 3 Nov 2021 17:23:51 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id f9so4913495ioo.11 for ; Wed, 03 Nov 2021 17:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GJHduIoLbm++PXo1EI9ctmGW1RwoyK72y3OY0VPBDcU=; b=jUR/GFvWK1GOvD7Tfxk3VIQLmqOGgFb5VaXQJqkZQpsZVHVN1VvJwhZ9ekdTub4o3Y /FoswRQyi2S84daaMTIAWZ+mbmA4/ahSy+DhuOt0Gs4dAsaoDjJsyaxFD1o/zDdXwMwr IQeiiLI//6cJ1aPm9ItJN8j7Y5V+O5EUei3K7AEOsdK7bAREGOclHn9V3b3D/qfWNdnQ 46bl9OMMumnpjKt5V3ThiCfCTAjXlmBk6pMLd2s++zGNkoI7NOhithCH4bedvs+7gl1d odN7ejoM2KJDLUmOnsxjtAq0MYDaTBwDI81FkSVeYHBkWV87C4htjIKhLS0zCxoxGl1s jObg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GJHduIoLbm++PXo1EI9ctmGW1RwoyK72y3OY0VPBDcU=; b=0KDPkWFVBx6UT6KgYL4rT+HT1/hVQWarkIkxDaM/ZzlfKRv0lZuXg0yA69RQWe7QHy yzWWupyW7rMBVephUMIDw9s6nwve0lDvbOK99mUYoLrWEC5tfblWeUoe6lkjzWJCIMJG ILoyP9Mk5K8XUsdsVzLKFjHMsVcFdG1KZZgFoVCsc9X2D6JyFX4kpH8i1IRovpTonYll QPD5OxGllvdE9SA0MP/SzPX+d5OKM+dCrCeLMYmAPNKrV5FcDjNQkqlHYc5xoaVpb6Jk 6wS4Q9/kY1TdkoMjHGwdn0xQ2g1bvmy31gYG5kWA0j8yY8R+DlkmFdt80Zf+QUFPHLwX 5rZg== X-Gm-Message-State: AOAM533bXDsvpmAYoEis6Ff/FUnCBUaaN7993AmfgovwCKv5qLnW7ACe BzUwhps08q5X/hFHjW/Nddu0eA== X-Received: by 2002:a5d:954b:: with SMTP id a11mr33541647ios.99.1635985429851; Wed, 03 Nov 2021 17:23:49 -0700 (PDT) Received: from google.com (194.225.68.34.bc.googleusercontent.com. [34.68.225.194]) by smtp.gmail.com with ESMTPSA id s5sm1881667ilq.59.2021.11.03.17.23.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 17:23:49 -0700 (PDT) Date: Thu, 4 Nov 2021 00:23:45 +0000 From: Oliver Upton To: Raghavendra Rao Ananta 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 Subject: Re: [RFC PATCH 6/8] tools: Import the firmware registers Message-ID: References: <20211102002203.1046069-1-rananta@google.com> <20211102002203.1046069-7-rananta@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211102002203.1046069-7-rananta@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- 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 >