Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp33194pxh; Thu, 7 Apr 2022 13:07:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhnbFpOQ8cqQOV34xROvBx108ys9P2y71MDUVfb5ek7oIOPQh9SyU3Cw+mjOrAeNGWlD1P X-Received: by 2002:a05:6a02:105:b0:381:fd01:330f with SMTP id bg5-20020a056a02010500b00381fd01330fmr12240426pgb.483.1649362033698; Thu, 07 Apr 2022 13:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649362033; cv=none; d=google.com; s=arc-20160816; b=duxz2aGQe2ygI7q0wdXSK+53Az7XVeg0Gfa8pzad6LwhcCaSjpDwGB/82Yc3pvKRw0 L1vQ/VFP9XKDWXM2j6M41Lgcfiv3BT8/NlVLF5MyUwXQwMhm8ZjpnoM58P4bFXXfWYaL etdwWzbKrGyHU3hCpW5IcYV4TTCCzcJxSrAav7BM6XVQCUUT7N7a/s7ZyC1lIHhpWwU0 juDlOHt0F/BCIBHsIUftExG1D9FdyML6xi39IAsZUeBy2+cfhFMsJI+nvWtD4wTazr/B HrV4WH/KGHEPQvlgaODLFZKmud0FJePhX/uyVGso1wfz1ZAaWOUG8lzts1MsSV7Ivlsi Jn8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=801d9Et6vVPhDQnC0iYG+wLGLuQ795kMLNdzkGD2gNg=; b=RoYS2tzDh3I+mvPtzNT0qKjGmEWkhfNTyB1ah983j78S+qSWxPc5LTF97NIQUdh4OB lH2fYfjAFV7NFVbST7SZgIQWotnwt6D/wF/ABZ1gvEfUora17h/PlYjjIGlmZ8NAi1sm xXHfVPiID3/NzqCJfL02YTXwicrt1XAVMz/fNOK/i3x6LWb6wYtBQC/F9eVWr6ZSxg6O +HJjxOqSYYR3scRf0y+NUuW0o2R+Al4T1/VGoLC+YhwRCcPw1sQznQP6jnSxj+sLfLwZ XjBdw0nX5BTUvbw59nyI3DDGwm22NJUlPPr3PHGHU/K/lahHfWq96JGSnPlU0TPlGt2V uAUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=h5szE2fz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s10-20020a17090a880a00b001cacb85ebb5si2511544pjn.178.2022.04.07.13.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:07:13 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=h5szE2fz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2B8032AA1A2; Thu, 7 Apr 2022 12:30:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239711AbiDGB3K (ORCPT + 99 others); Wed, 6 Apr 2022 21:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240464AbiDGBUB (ORCPT ); Wed, 6 Apr 2022 21:20:01 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 103B919479B for ; Wed, 6 Apr 2022 18:16:29 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-2eb2bc9018aso36237737b3.18 for ; Wed, 06 Apr 2022 18:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=801d9Et6vVPhDQnC0iYG+wLGLuQ795kMLNdzkGD2gNg=; b=h5szE2fzWy8unckrJRjuzttjaMFlCcU+82BRrO8olCmurNzU8jZvoJFOn1xDWBrXmK NwnWbROflIEd0ETxmbJkDrnEIb2AcZmo6IHmvnH8nMi9WyvKNXBoPq+EoD1iZcw0xgLn 0uO5C/9xBMWbMKuie7m6Y5TUyEZbXDSONoteBhLYRtbBJZYUQ05gVsAUB+Q+ESOK7KB4 v7bpw+vehDTDo8JhEINYrVM4TwLupBEQYVM7VTc3IPOhevr+Sg+PbzNc62T0GylEh1om gaT29p/EN5kZc6LTyZf0WNTOT58HpPj/iK/nVyIzooYy2LW0J9jXMOGsGZmFP2JpGdSV WMkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=801d9Et6vVPhDQnC0iYG+wLGLuQ795kMLNdzkGD2gNg=; b=uaeGUzq+vlYl8v0Dtw1nxN/0m6F08cFObEx31RUEElzd6UTQ8ChIp28REoKjceUdy5 fmaZhJhyBpyC3tYHTwfhVmA1i/FccTz28q16D+62JRJi4yURsh95tzp/61fnyN3uYHt/ kYlNkyt9YlZqI/MEz2z9d6u+t3lGTJdrK+Z4m/33vr/GZStQD6ZdPnYrep7H+qRsVwrv Va7zTv9IpH5EBWxWNpq+iAz23BsTedkpPjnKYKb7zK2ANOMiPLBsDI0bE2va0+rCBJNS xz5UC+2fnhyvE9f68UrxXA/rgIBmteXqFww+BF3Ykd4sY+0tgedMU2pb7zbcxU5oTB0a 6sGQ== X-Gm-Message-State: AOAM530RcgTVUj33ifLA3HoVBLCNXHz77PE5QPyYCYtRJFQkZsRTWSF8 q2DsqRLf7iOA55/z3Oq0bf9tZ5hiIiPH X-Received: from rananta-virt.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1bcc]) (user=rananta job=sendgmr) by 2002:a0d:d404:0:b0:2e6:be16:e0ae with SMTP id w4-20020a0dd404000000b002e6be16e0aemr9753775ywd.517.1649294188279; Wed, 06 Apr 2022 18:16:28 -0700 (PDT) Date: Thu, 7 Apr 2022 01:16:04 +0000 In-Reply-To: <20220407011605.1966778-1-rananta@google.com> Message-Id: <20220407011605.1966778-10-rananta@google.com> Mime-Version: 1.0 References: <20220407011605.1966778-1-rananta@google.com> X-Mailer: git-send-email 2.35.1.1094.g7c7d902a7c-goog Subject: [PATCH v5 09/10] selftests: KVM: aarch64: Add the bitmap firmware registers to get-reg-list From: Raghavendra Rao Ananta To: Marc Zyngier , Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose Cc: Paolo Bonzini , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Oliver Upton , Reiji Watanabe , Jing Zhang , Raghavendra Rao Anata , 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" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the psuedo-firmware registers KVM_REG_ARM_STD_BMAP, KVM_REG_ARM_STD_HYP_BMAP, and KVM_REG_ARM_VENDOR_HYP_BMAP to the base_regs[] list. Also, add the COPROC support for KVM_REG_ARM_FW_FEAT_BMAP. Signed-off-by: Raghavendra Rao Ananta --- tools/testing/selftests/kvm/aarch64/get-reg-list.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/kvm/aarch64/get-reg-list.c b/tools/testing/selftests/kvm/aarch64/get-reg-list.c index f12147c43464..281c08b3fdd2 100644 --- a/tools/testing/selftests/kvm/aarch64/get-reg-list.c +++ b/tools/testing/selftests/kvm/aarch64/get-reg-list.c @@ -294,6 +294,11 @@ static void print_reg(struct vcpu_config *c, __u64 id) "%s: Unexpected bits set in FW reg id: 0x%llx", config_name(c), id); printf("\tKVM_REG_ARM_FW_REG(%lld),\n", id & 0xffff); break; + case KVM_REG_ARM_FW_FEAT_BMAP: + TEST_ASSERT(id == KVM_REG_ARM_FW_FEAT_BMAP_REG(id & 0xffff), + "%s: Unexpected bits set in the bitmap feature FW reg id: 0x%llx", config_name(c), id); + printf("\tKVM_REG_ARM_FW_FEAT_BMAP_REG(%lld),\n", id & 0xffff); + break; case KVM_REG_ARM64_SVE: if (has_cap(c, KVM_CAP_ARM_SVE)) printf("\t%s,\n", sve_id_to_str(c, id)); @@ -686,6 +691,9 @@ static __u64 base_regs[] = { KVM_REG_ARM_FW_REG(0), KVM_REG_ARM_FW_REG(1), KVM_REG_ARM_FW_REG(2), + KVM_REG_ARM_FW_FEAT_BMAP_REG(0), /* KVM_REG_ARM_STD_BMAP */ + KVM_REG_ARM_FW_FEAT_BMAP_REG(1), /* KVM_REG_ARM_STD_HYP_BMAP */ + KVM_REG_ARM_FW_FEAT_BMAP_REG(2), /* KVM_REG_ARM_VENDOR_HYP_BMAP */ ARM64_SYS_REG(3, 3, 14, 3, 1), /* CNTV_CTL_EL0 */ ARM64_SYS_REG(3, 3, 14, 3, 2), /* CNTV_CVAL_EL0 */ ARM64_SYS_REG(3, 3, 14, 0, 2), -- 2.35.1.1094.g7c7d902a7c-goog