From patchwork Wed Apr 5 17:21:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jing Zhang X-Patchwork-Id: 13202314 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 91CDBC76188 for ; Wed, 5 Apr 2023 17:22:57 +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=T42984sXZL3x75idVAncUTbuWnmdApvaXvwq9IwCmhc=; b=UTs YtDPL2v1NN6d/gB9s3UWpCEQBC9BYDDxmB7woaLQKsV1ElWp2+9+EVLXgr4XaoNaOVwg+gJ1CL3c0 1lokkq9Qqk9iOGphp+MBH+mxZN+Q8pTIkMfdciHbEHzR38v/KG9om3LbsEzwwq6HwOVO/qaHzCEPT oO6n0yICLOOlTsw8R5cjm9CuFo4PSOs6bGIn9r4LKLoe8LIm1axZQTtiSZAXeEJnqSBu3Z2w9S68w JexU+SPzwXVk4qKUOI4Z6GsEOu9QITeI19/qUkVxWctj38ysVtbeA3GpBHBRJbA6pJZ7pkpt9G9uH 8hIi7rBo4f1njG1ECft0ifZ1K725tiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pk6pa-005FAX-0k; Wed, 05 Apr 2023 17:21:58 +0000 Received: from mail-yw1-x1149.google.com ([2607:f8b0:4864:20::1149]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pk6pW-005F8H-19 for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 17:21:55 +0000 Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-54c055728c5so6873297b3.5 for ; Wed, 05 Apr 2023 10:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680715309; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=D3r10cm7fAHZK5D31KGbqV3r9nbkx+Y20r9KdjeSnd0=; b=jo7pPq5qM5gLK0AVnmUwM02HwmbJ7YlsjF4FrMFjqynY3C1W0CeRsJRPj+VXoMZk7K H1tiodbzp6ix7sqbBsp61kgk38NmwbO07JNngeJcAYpvtun0UJ6IFp9MQASMzK9p+i3Y MNGLPpqgxUQroCivjZrOsMij2MbnJeBZ1XaIIrpxQ/0/iOVghrAD0R4f9Cmna7Y4TytA HOc5sC5gZ47CMrIIzxdYFLt8mThsVazQFkf5fDoIUx4KkedqlNY4MDKfo7hYk1iS9ckx I2CJ0EyLXoj94dEzk63MN84NX+SegVGLZXQlyH/aoHm05+plfepLCccEf5ct/9H6eQZe lVVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680715309; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=D3r10cm7fAHZK5D31KGbqV3r9nbkx+Y20r9KdjeSnd0=; b=VWRKcR3NuVONy2nTyVfSVCP1qOTQUppgJMNfnFwyypPuCWGmgVo/nVxzirJW3sMCLc b0TeGaABo8otqLb7JMP3Ms5TLlnnU/4cYZeEQOpkAhI2CaCIBwZZO0vJLmXQCGZhQsMP iBVY48QL39k1aV7W3QzPaKu5tLpWysb9Xy+3UOgDySwet0RDhGrFhMlXPmKhrc0Hi1uA Vzt8yyVAkY3qagMWdl4N1hXyOpXpYf8/n3BUj6kDqB2buw8blR9R85EEnRWcj+mh6OQP CO2OZ76F5m2iEiM7xgnT8Rq9ObvC70nT6mv1hYPM5B+2YP88fR0aFpxXdSzyWISwtM8Z DWWQ== X-Gm-Message-State: AAQBX9dCIvabpbC0cv/SoJXByfz8W4+L6TqbY2MXvtPhFt9nuxTrHgDp G3iEsnOPtG0O8se5qYofMeihvoQImgQAxFFe+g== X-Google-Smtp-Source: AKy350ZsmL1wjm9wtYxtsRzrT48NB3/lrdHktGDRLEsJ5qmBrnGhsSqr30Yge03JnFunnf6+baS9bp4bGcu3LsycFA== X-Received: from jgzg.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1acf]) (user=jingzhangos job=sendgmr) by 2002:a25:d412:0:b0:b8b:e931:7762 with SMTP id m18-20020a25d412000000b00b8be9317762mr767239ybf.13.1680715308829; Wed, 05 Apr 2023 10:21:48 -0700 (PDT) Date: Wed, 5 Apr 2023 17:21:42 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Message-ID: <20230405172146.297208-1-jingzhangos@google.com> Subject: [PATCH v3 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 , Jing Zhang X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230405_102154_391739_D041FD50 X-CRM114-Status: UNSURE ( 6.93 ) 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 which add infrastructure for writable idregs: https://lore.kernel.org/all/20230404035344.4043856-1-jingzhangos@google.com --- * 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 [v1] https://lore.kernel.org/all/20230326011950.405749-1-jingzhangos@google.com [v2] https://lore.kernel.org/all/20230403003723.3199828-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/id_regs.c | 68 ++++++++++++++++++++++++++++++++++------ 1 file changed, 58 insertions(+), 10 deletions(-) base-commit: 8ee379b1b7b23b0cffdfc988cbe94108188f68b5