From patchwork Wed Jun 7 19:45:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jing Zhang X-Patchwork-Id: 13271193 Return-Path: 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 1AA66C77B7A for ; Wed, 7 Jun 2023 19:46:32 +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: Mime-Version:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=mWV2iPMxmtg3HzIrT1NGyL96Xg6k2EidYiG+rscWLC0=; b=2CD J5ZemxETz0JU0UuDiTFX9SW6B0einxELXTKp/MFyf5oP+XFk8J0AbWDAl0RchpQEM4YPC0ZGvYkHT a2EZZIx6NBTJKpQK08JBOujqDCOjaqkJfhdQXn0/sAZV/WWvaGe8vfMBTzFXzNBf97f7bWQLgXlj/ fdFRXpi459XX2W3FSH9Atby5qwiUzYDMzAYoaHMif+SsKEFq4CqZKBIbj+JCXpAKuhZXgecH1RGYH Bl0zFQZ54/CSVCMZ8zUuGguDFKkU2AEEMV1R1tk+2I4DkL8ls9ZufMUyyY50gpUAFC12AVTOeA+lD wc0436T+Dg74dAaAEhatVLd4qhAPATA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6z6b-0070UG-21; Wed, 07 Jun 2023 19:46:05 +0000 Received: from mail-pf1-x449.google.com ([2607:f8b0:4864:20::449]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6z6Y-0070SQ-0Q for linux-arm-kernel@lists.infradead.org; Wed, 07 Jun 2023 19:46:03 +0000 Received: by mail-pf1-x449.google.com with SMTP id d2e1a72fcca58-653a5de0478so718410b3a.0 for ; Wed, 07 Jun 2023 12:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686167157; x=1688759157; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=aPgsero69xFwJck0QKcCtV9CkkDCHybrauN68WHLy4A=; b=0A1Gsrces1skjswFsF50lVK2JnRk4tWOxR3MV+vcU6MJ2VWsqnwLTGQTi5DUD6N4Tm AJqBBH8FlWGmBNje8EQDCdql8N3cksHKiTRBxIhvaymhDkRV8zNLBNn/G+nYmvsbgjnZ STTQwiqz1grZqjk7XeQRIoJ9XdKxKpuVTPPtNCwpCQWABAytR+77MQ0Vg5vGq06osEQh yqPq+QKph9ugRXDTZshpK9pQZscYfiSAPtLYluUenFItsEid0QoRfBEDAUKbjR0ORjGX gxnSOzJ1nxT82tsjGK4RviJ/p8RCpLY8HZyW3jKypnYe4mWIITRS9pgrQfKMurJns8qv b74w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686167157; x=1688759157; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aPgsero69xFwJck0QKcCtV9CkkDCHybrauN68WHLy4A=; b=aF1I+ZrAWAwRM45tY3KszTA9o+S2Iv/8pjClSx07dVOhZ8YG6ioeAiagpjj9lXA+xA bTAJj/caONBF1RITQjMzhTwmbVDCywkDrfuXTPnsCliM0vy4AHzihsRVeJw7/VuofPKc wWZzhyrtZBTsNfRjHcgHxqUbFKD+EdV+A7/24F6bvB+HbrSqCmMASf7zyopVqTy7ryRR g3U22oxeQ1ApvbrUpetfkbSifisZBhvz9SUaszKMsdqs3p5ZrZj9x1xeyA2Rosp/zZ2H l7ctdG5Bpw88Nn9X9X9qxp0KzFlDehSVEm+znjmPRiDE07v8ZLF+5io4Uxiejn+hbiGJ qeKg== X-Gm-Message-State: AC+VfDwWYiiNJagdvC1qmNwOGhZd54Z5e4HI6t+vzT/2kmlrEHKb5ZvZ r/2A8GrmJQdxI3VMIE0SULHWz6abclRQk31MkQ== X-Google-Smtp-Source: ACHHUZ6Jdfp4KijOKoJc8iKkNnAT7j0Cg3mZuagkHodcduTq2g3SvL98qNbl8Vxb4j+cbgqMwwZpEe1BEtzg62RjVg== X-Received: from jgzg.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1acf]) (user=jingzhangos job=sendgmr) by 2002:a05:6a00:2e0e:b0:64f:5406:d5a2 with SMTP id fc14-20020a056a002e0e00b0064f5406d5a2mr25720pfb.0.1686167157264; Wed, 07 Jun 2023 12:45:57 -0700 (PDT) Date: Wed, 7 Jun 2023 19:45:50 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.41.0.rc0.172.g3f132b7071-goog Message-ID: <20230607194554.87359-1-jingzhangos@google.com> Subject: [PATCH v4 0/4] Enable writable for idregs DFR0,PFR0, MMFR{0,1,2} From: Jing Zhang To: KVM , KVMARM , ARMLinux , Marc Zyngier , Oliver Upton Cc: Will Deacon , Paolo Bonzini , James Morse , Alexandru Elisei , Suzuki K Poulose , Fuad Tabba , Reiji Watanabe , Raghavendra Rao Ananta , Suraj Jitindar Singh , Jing Zhang X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230607_124602_169296_BB7269ED X-CRM114-Status: UNSURE ( 7.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series enable userspace writable for below idregs: ID_AA64DFR0_EL1, ID_DFR0_EL1, ID_AA64PFR0_EL1, ID_AA64MMFR{0, 1, 2}_EL1. It is based on below series [2] which add infrastructure for writable idregs. --- * v3 -> v4 - Rebase on v11 of writable idregs series at [2]. * v2 -> v3 - Rebase on v6 of writable idregs series. - Enable writable for ID_AA64PFR0_EL1 and ID_AA64MMFR{0, 1, 2}_EL1. * v1 -> v2 - Rebase on latest patch series [1] of enabling writable ID register. [1] https://lore.kernel.org/all/20230402183735.3011540-1-jingzhangos@google.com [2] https://lore.kernel.org/all/20230602005118.2899664-1-jingzhangos@google.com [v1] https://lore.kernel.org/all/20230326011950.405749-1-jingzhangos@google.com [v2] https://lore.kernel.org/all/20230403003723.3199828-1-jingzhangos@google.com [v3] https://lore.kernel.org/all/20230405172146.297208-1-jingzhangos@google.com --- Jing Zhang (4): KVM: arm64: Enable writable for ID_AA64DFR0_EL1 KVM: arm64: Enable writable for ID_DFR0_EL1 KVM: arm64: Enable writable for ID_AA64PFR0_EL1 KVM: arm64: Enable writable for ID_AA64MMFR{0, 1, 2}_EL1 arch/arm64/kvm/sys_regs.c | 78 +++++++++++++++++++++++++++++++++------ 1 file changed, 67 insertions(+), 11 deletions(-) base-commit: 01b532e41af091a48287dd45f763db4b887bcdfc