Message ID | 20230801152007.337272-8-jingzhangos@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42DB0C04FDF for <linux-arm-kernel@archiver.kernel.org>; Tue, 1 Aug 2023 15:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8G9S68adx8FCYp1oWOiQT7PnMGgg1dt0kJKWxx7n7sU=; b=fflMKdYz7946eTtn2lh7g0Mc1M 5nOXjjMb+5U7HoAiWbTqMhwXrpDKz4kT/ISbMXBfYfDjkTK1Pdd8ww12oE/2VFseyY9Q+YIVw7VjG myAaYW4i0yekzUGh84gvWnX/cTJ9bf3WLUj0QrcImezBxR1cJlO7iN9ct5Qvl0kudQuEhcc7I8MF3 xKkcwendvhEzK0MDdln2he5nMzuKTQRmfgG988oJtHvKRCjOowsbM1ps75+6JyeG6oVzrqgVaYxTj BSTSTeA4/OME6HU5gt5sYtJ69w/6qzkzTjVoZ07eM4vxWlE39awPN+wPIRNvHP00v6KhH9J9+5l+M 4IIYjvsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQrAr-002hlg-0W; Tue, 01 Aug 2023 15:20:37 +0000 Received: from mail-pg1-x54a.google.com ([2607:f8b0:4864:20::54a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQrAl-002hcx-0K for linux-arm-kernel@lists.infradead.org; Tue, 01 Aug 2023 15:20:32 +0000 Received: by mail-pg1-x54a.google.com with SMTP id 41be03b00d2f7-55c79a55650so5649851a12.0 for <linux-arm-kernel@lists.infradead.org>; Tue, 01 Aug 2023 08:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690903225; x=1691508025; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=f1iJwrUwzrr4LImgyPThesTLhstaE6VPmgVvDL2bXp0=; b=5gd7OaRBrRYmMMIOxe18B8NXMNA1PK1Vvk4zSEoSg9JQcQOfWjTweZXq40eI9c+L1N Pjiy2HD7ipih05DuZXxzwty4Zw4J8+YSCFDSyWhYQhA/eRCTC3NQm/LNPt3/lxoIqT/H yEdDVYoCx3+f6eh5fJ3LuJn0o/Km7f1yoe+NQ9khAuuY1oAei/RTPdKYNFD0OwONNvvb kbXnJ3CRoz/wqDo4SV2g5RL02zHpUNdBV4qR9IumhIJdoJlaT5U/0IAW7sgDaA00TRO2 /GMyXkKsKtW8TNrQmuN0DxVxyEryPcHsKqI8SVdchgkvx3neZaCiwBlrlr7BGR0ut5s5 DjDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690903225; x=1691508025; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f1iJwrUwzrr4LImgyPThesTLhstaE6VPmgVvDL2bXp0=; b=OOmpNbKx7NcFpWzRh3L0i2yHu7ArmuMIE3S+Rv4uYGCIX6VVqcq8Sc3nLVUPxjGBrh vOIWsWQqktWFioRegBNXXItfxVV4RC1iuzZlUOW4eCeCcCD+16JMrNHwNrWrO/yKeVbD POtRu2rQwH+J6EtXkSuoAL9dADeInHAVUoNWgmwBykj283jWm0b9E94EUprqQGf+jvnf VvW05SfAoMDSYvXQVostDAuvLtp57qFbaTLeh/+AEow7ix1V5Drp+iGG56vkLbktjJMg kF6B616/Ccce6KC877K7gsTB34EwjlqRdGVl0sg8VaW0Ru2oLPnTVFPJAlW1bmCvpXvS mHZw== X-Gm-Message-State: ABy/qLbR47SNKFJJJzHwg7FyAXTb5l5w57h/wpXgsK/L82N3Z6gYf5sM 0xNQa8avk0ZcKvGC7kA42xdgQtsulHRnXEbSzQ== X-Google-Smtp-Source: APBJJlGHdElaUhiJW+cJ/Bn2gO8XjYZHEO/Zt8CW/zpfo34kurpBDGJ2kXAnPcGIqggba9Ii19yPInx1FB+5h5bOeg== X-Received: from jgzg.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1acf]) (user=jingzhangos job=sendgmr) by 2002:a63:6dcf:0:b0:563:8dc4:c851 with SMTP id i198-20020a636dcf000000b005638dc4c851mr62368pgc.9.1690903225626; Tue, 01 Aug 2023 08:20:25 -0700 (PDT) Date: Tue, 1 Aug 2023 08:20:03 -0700 In-Reply-To: <20230801152007.337272-1-jingzhangos@google.com> Mime-Version: 1.0 References: <20230801152007.337272-1-jingzhangos@google.com> X-Mailer: git-send-email 2.41.0.585.gd2178a4bd4-goog Message-ID: <20230801152007.337272-8-jingzhangos@google.com> Subject: [PATCH v7 07/10] KVM: arm64: Enable writable for ID_AA64PFR0_EL1 From: Jing Zhang <jingzhangos@google.com> To: KVM <kvm@vger.kernel.org>, KVMARM <kvmarm@lists.linux.dev>, ARMLinux <linux-arm-kernel@lists.infradead.org>, Marc Zyngier <maz@kernel.org>, Oliver Upton <oliver.upton@linux.dev> Cc: Will Deacon <will@kernel.org>, Paolo Bonzini <pbonzini@redhat.com>, James Morse <james.morse@arm.com>, Alexandru Elisei <alexandru.elisei@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Fuad Tabba <tabba@google.com>, Reiji Watanabe <reijiw@google.com>, Raghavendra Rao Ananta <rananta@google.com>, Suraj Jitindar Singh <surajjs@amazon.com>, Cornelia Huck <cohuck@redhat.com>, Jing Zhang <jingzhangos@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230801_082031_155118_0B0DCBB9 X-CRM114-Status: GOOD ( 12.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Enable writable for idregs DFR0,PFR0, MMFR{0,1,2,3}
|
expand
|
diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c index 5a886ccb33fa..0a406058abb9 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -2041,7 +2041,7 @@ static const struct sys_reg_desc sys_reg_descs[] = { .get_user = get_id_reg, .set_user = set_id_reg, .reset = read_sanitised_id_aa64pfr0_el1, - .val = ID_AA64PFR0_EL1_CSV2_MASK | ID_AA64PFR0_EL1_CSV3_MASK, }, + .val = GENMASK(63, 0), }, ID_SANITISED(ID_AA64PFR1_EL1), ID_UNALLOCATED(4,2), ID_UNALLOCATED(4,3),
All valid fields in ID_AA64PFR0_EL1 are writable from usrespace with this change. Signed-off-by: Jing Zhang <jingzhangos@google.com> --- arch/arm64/kvm/sys_regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)