Message ID | 20230718164522.3498236-5-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 5672DEB64DA for <linux-arm-kernel@archiver.kernel.org>; Wed, 19 Jul 2023 06:22:30 +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=wV7NaEsWhoe8h6zjQHC8CdUfLVDU5XwTU9knwKw727E=; b=WMSzBu366LYoxAfCnLKaQ7xSjT TyJJv2XCZmAi44ne6j8K2NNW3J28ucjrAS872QJ5nvRgZ4TZZPPL1CBXa0E1UVKeUb0gfouzEg8Ye xit6QWisuY/33N+N0g3YzuM/XNSNDiiKSr3z4V/WSt/hYc5aRpHUefc7Z46zv2eX5oVnOONPX8xyg 0NiHrIO8V1QzYqnIq7TCCmDlEI+x6B68j5L7jb2NPANtApqva/T1FtsObGa4O2kKQjqrDhld9oz+d INoH8PFQKpzTxtk46p5of1XCz57gTWNxxDp6aYwXWXngABzV5Mge1Vi+9EhjTuf4oAQzXWTzNkgYQ fbgzixnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM0Zi-005ggg-0r; Wed, 19 Jul 2023 06:22:14 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM0Zg-005gen-0Q for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 06:22:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Cc:To:From:Subject: Message-ID:References:Mime-Version:In-Reply-To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xS0acJp+aIDXIQPo5QGK2XMol5RfSj1wMM22zpXYALg=; b=SDgDBIiYs7UbXtNOG4fBivjel7 7shT/ls7UcDI5a54unvKKLoKLT75gFqLqujAV40qy2S9xzGo3b2WMdcDoXOGlGbkLNMap7QCwnM90 mjNy5ffMmTFb/jIgbYyRwKgHuaMKPSCzN4cjUBfP0gEpCCwa6UchJWLQ8MkCYUvCeCbvOfhumvcgu tlmSV8ccfCDKJ63fsP4TpVLxfrwwQBgPzcD72+90oxvxiTySyphUufibtKyNBuEf30oZNidN7clGT 5EXDyHLlZR4RxN1FddR1asau1uN5ERoVfAB8ZVg8RiaHrEajxGHsjRuAho32wJfhQ9v8RxKEWcSol MJuYF3UA==; Received: from mail-yw1-x114a.google.com ([2607:f8b0:4864:20::114a]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLnqS-00BlT1-1K for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2023 16:46:42 +0000 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-57704a25be9so84887917b3.1 for <linux-arm-kernel@lists.infradead.org>; Tue, 18 Jul 2023 09:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689698734; x=1692290734; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=xS0acJp+aIDXIQPo5QGK2XMol5RfSj1wMM22zpXYALg=; b=EmteLCMQlNbrceRaps12nferypQUXRntTEFrR9lZz6K827vbH7l9xInXAD8nRBwgvg Nva18ll74bKF8/JyGdMnCPK6Z5eslobhaqxhrZQXBercFtxS1nvRRu6VslmWJ9U5xlzC J82k7CDSz52ze/FeoVydqdPa0/dVg1iSLdO9q1FCCO8sqCF5WHiCRTu4+p/e9SlcTfbA Rc/JesNjjDk9jSuEVjFWNQFfHkMlTK2oJmGd9ptCIhR5AoSRUHhNWPA264e7oLmqdDgL +2Y7q2wR2u7v/LnQXbl2PTC6Z0bqSTlqmvRIh6DIgrGRYcHCTTCxgzeZ5vJgJiP3rQ9T j/Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689698734; x=1692290734; 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=xS0acJp+aIDXIQPo5QGK2XMol5RfSj1wMM22zpXYALg=; b=ktaryxDCnqk1xyLmLaUBnqlCWE6+D8vzO287pgzmgIiYaaVgU+Lv5VkWpydzadz/o1 RKZOKgwTjgVnVQa79NYpmOPj+2DJufa0Tk8v2erSfNAHmMXX8apwYM7JtNZ9og6tDZTa LPAhA0RJarT7ZSkYVX1grGtzIuUL1qj2esbRHddfFk2AxitPM2RrzXzYQNUQaj1CO496 HBzfXw2eRUoz16HXdm0Gax930CFj5X+aMVABb4yp4tLx//DYFJ3tgtpm8FTzEE19pib3 Ykp0CRNOrOaumTChUl7IQsMeRAunst7OFsBen/ATuhUgyO4HYxu+EROfS6ozJpwgvrtg kRyA== X-Gm-Message-State: ABy/qLa/8+6pL1KVFhTsFVfo58UuySMtjFfAjmfWglKeXxm+wq68swVk oYfGCaQMA0l8XnewKdqYilX8isbSebEfJXy6UQ== X-Google-Smtp-Source: APBJJlEQmDSoHkGi9JQIAr4wuITHz7fAluVasMRt8k18NTKlsRsIsnD0bdJ4EqDubIUM0oQB7DLI1CT99QjPdZDFHQ== X-Received: from jgzg.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1acf]) (user=jingzhangos job=sendgmr) by 2002:a81:fe09:0:b0:57a:6019:62aa with SMTP id j9-20020a81fe09000000b0057a601962aamr237002ywn.5.1689698734735; Tue, 18 Jul 2023 09:45:34 -0700 (PDT) Date: Tue, 18 Jul 2023 16:45:20 +0000 In-Reply-To: <20230718164522.3498236-1-jingzhangos@google.com> Mime-Version: 1.0 References: <20230718164522.3498236-1-jingzhangos@google.com> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog Message-ID: <20230718164522.3498236-5-jingzhangos@google.com> Subject: [PATCH v6 4/6] 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-20230718_174640_608458_4F50DF2D X-CRM114-Status: GOOD ( 10.91 ) 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 f33aec83f1b4..12b81ab27dbe 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -2042,7 +2042,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(-)