Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1027896pxb; Fri, 22 Apr 2022 17:13:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1QmWCPXupDe1jKqy9OWTBLOa1KCA0dcETYcDUAZgVI94D828ItSDxAdlUJdFxykAdQSSU X-Received: by 2002:a17:907:6d8b:b0:6f0:2533:72fb with SMTP id sb11-20020a1709076d8b00b006f0253372fbmr6275843ejc.93.1650672835983; Fri, 22 Apr 2022 17:13:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650672835; cv=none; d=google.com; s=arc-20160816; b=ljQRhtlXRWe2qcV40jMMrr3DCPJy6H0P3MtZ4xNEFyq7G02bIAuOMHx2UF6WAefYbm Z7fyXtqV09awHt1kp7GdkbETHVZbJZws12BGbjH4K0jR9wtvL1tLioKuiRD7q+NF+syi /6iBDJVNy4SCO2d5X/MGOiiQZixjprqGPqCzBUTe937adS3xMbWYmgnJf4lwJoPQsgpI P1vm4VosNvRboI2ESjz47sV5gZ8j1NzSzzSF8CYaPIW4o1cpQd5JmBMfPjC7hsUksKqQ jLwzSne8VkXo/dLwoQMMJuxO0YWPESmDLuwz18jzvSsLj9/4Mi0wKciAOBFw5NH9vNfN BQvQ== 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=s8j9kj4vlgoBbVsMqTWGwW74KTbhvSIyPcu9kjmk3mg=; b=xqRFc4lEKlsmYk2kXEawVbEJx57uoySiaS+48dbv6GX7H3G62VHVfzu1B0N9etJLJI DUA56DsActkMERtVu6U4iZsPgPylLHzJ4zP22vM869SXrYU8h2duel4Q872RKB7nSybh BCvklGa4SYH/0m0wfH076/e0QpvXoTaU7/2OXPaNUuKb55mwRyZiOMHDnvYBpfAVASNL sCGrme/SG2vkCxcSLNJrbRtLPe1lZgWkJMiDVVUOmIl0iDt8D3/p49Nja6eMFncI+cKb jnqByV+gBNyThFLwEblNgHjHsXVmcGZc/nApacrsqJ4tcsJkDkzEwAgze06Kwk9F2Mkw mS/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="Kf/obMym"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a056402190800b00423e13a04casi9302112edz.445.2022.04.22.17.13.32; Fri, 22 Apr 2022 17:13:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="Kf/obMym"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231378AbiDWAII (ORCPT + 99 others); Fri, 22 Apr 2022 20:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbiDWAHB (ORCPT ); Fri, 22 Apr 2022 20:07:01 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B722D210187 for ; Fri, 22 Apr 2022 17:03:51 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id n4-20020a170902f60400b00158d1f2d442so5579755plg.18 for ; Fri, 22 Apr 2022 17:03:51 -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=s8j9kj4vlgoBbVsMqTWGwW74KTbhvSIyPcu9kjmk3mg=; b=Kf/obMymV4dKTLaHQ9vU4iXvPrE4oPgT1V7IU2nfscX8IQV7XePv3hocOPRD9WGWS5 qbqdVHGKg+NzqNIxosRgBK0ZoTUP+V1zuEf6JCVhnsdtSIorKYV1lMswst4f7/aOwsXN TeEL29nm1GDndxDwEEU3sPxLD9aehBKPDUQZpO0M6iqu8+C67ydwXnTP6ypLb2nzUYNl 3bAkmcX7/05uXq7IYcs+GDKCo15Jr0qbLoY55JX2cug1q4nIlf+sfHk3sMv2J68Dro9K XIimltu0kNIfB1I9N9SHiI9/77weHhz3n+dpmKV1HpVytDTq+/WIiA8uWayp2iVwGfBz D/lQ== 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=s8j9kj4vlgoBbVsMqTWGwW74KTbhvSIyPcu9kjmk3mg=; b=eUAYzK4k4XqypiG6dopom/TeEJmYTOv79MNDaPUje/D5kKclQ4S0ZDEpP4p2hLAHDp Kq3DQjARglgiRDAG9vzQ1Mh8WwbVpPMOQHSMk1FfCrH6XitvhHiJpuhuhJgR2UQ4ejgz +zCvkVPtrzcZEQkKmybG14jrNsxL+hCtZve/mCc1jpZ0cWnF39Kh9hQqGAizZs9fbhyo J3bHf5PxnG1Ng3cOHfZJMHdWtbTiXdf+/3kNQ+GlrohY4z4IajLsWx2MG1y6HFPVTUpi Epw8qzlOnMwDCxRpx+oL+iWUhjQ9xPKkNmZn6C6SnRsf8wVtM6AscDQ0EFrZa/CwY5yK /zdw== X-Gm-Message-State: AOAM533JjmrI6h01gII08RMv1EQaEqhcNLh4BPcVRBd+Z1OuzuWeWAl/ 4P2FCioZykeZPA3Wm5YgefdB7P+ezAoP X-Received: from rananta-virt.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1bcc]) (user=rananta job=sendgmr) by 2002:aa7:9522:0:b0:4e1:d277:ce8 with SMTP id c2-20020aa79522000000b004e1d2770ce8mr7486812pfp.16.1650672230928; Fri, 22 Apr 2022 17:03:50 -0700 (PDT) Date: Sat, 23 Apr 2022 00:03:28 +0000 In-Reply-To: <20220423000328.2103733-1-rananta@google.com> Message-Id: <20220423000328.2103733-10-rananta@google.com> Mime-Version: 1.0 References: <20220423000328.2103733-1-rananta@google.com> X-Mailer: git-send-email 2.36.0.rc2.479.g8af0fa9b8e-goog Subject: [PATCH v6 9/9] 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.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham 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 0b571f3fe64c..d3a7dbfcbb3d 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)); @@ -692,6 +697,9 @@ static __u64 base_regs[] = { KVM_REG_ARM_FW_REG(1), /* KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_1 */ KVM_REG_ARM_FW_REG(2), /* KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2 */ KVM_REG_ARM_FW_REG(3), /* KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_3 */ + 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.36.0.rc2.479.g8af0fa9b8e-goog