From patchwork Sun Mar 26 01:19:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jing Zhang X-Patchwork-Id: 13187952 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90D3DC6FD1C for ; Sun, 26 Mar 2023 01:19:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229779AbjCZBT6 (ORCPT ); Sat, 25 Mar 2023 21:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjCZBTz (ORCPT ); Sat, 25 Mar 2023 21:19:55 -0400 Received: from mail-pf1-x449.google.com (mail-pf1-x449.google.com [IPv6:2607:f8b0:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBCB3AD0C for ; Sat, 25 Mar 2023 18:19:54 -0700 (PDT) Received: by mail-pf1-x449.google.com with SMTP id a6-20020aa795a6000000b006262c174d64so2621102pfk.7 for ; Sat, 25 Mar 2023 18:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679793594; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=4AdblhZEHm//uRFsWabYDVuAv1CTU23Gx2a5/zWd7Zk=; b=fuP6m9MTHjiXuIxZrs+rh6MP6B5q/xQ2kqA0PIoEZ2Kc1YPpTzP5b7EJnxJ3DSRVDw oVcvFgbAAe6sZh/yB+8/Z4WXOlyqNfZRD5yt9ZlfYVBhz3csTlZbTg2KWt+EG5V+A922 G4bgNh8hJCgy3RWhR9YJS3yxCcn/HxqWyLBiWa0xIKW+FSs9epyTryCmfhYkgK3xWVUX 9yXZR7ynRBuibZ3xRX0Y7208PLarQk2jiF7Y/BItI+43QnPgzHAG29hHauGmuQvcBfrF Et8CKAUS3PMl3vjiAfEIo9+Ar5b9YDUxPnn9Ajrm/RSJWy3v/2APdzpvkCrm478le8d0 Qmwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679793594; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4AdblhZEHm//uRFsWabYDVuAv1CTU23Gx2a5/zWd7Zk=; b=GxvNb/xzBqRSbktcRpaPAkKUXnhiPMbhwEfWDhY3fEzM3b9bYCHt7jw1pwVOzfggkW 0KHmlwevk/A3JnPU7TBXcP+tcpj6QQuOVBEKs0/ga8KgGjknY9wpo3UOB7aFfeXzS83X oEZgZuZPQ9hqzaIXSMu5vYkwTMTHfz8cE3SfIkXzBeSR8yDMfB0Itp3ghWPBC+W+5r7u Qu/ArlL9HsTlAIzAANPmdA+LxwTmJp+27RtecLuCvsjSwi0f4IAgI+799J9SMRxYqjS6 IBQ/P5ldJDMzIyaZDfS0lbitnPGlyzX0pZYb5pYiUEi/VB2TY63mVGcby70/IqeYKtDp RBYg== X-Gm-Message-State: AAQBX9fNQxz9EQwy/FG0CkwLc2pxrwEmITivX2gxn8NTB7EcsdtOFDdM fScB5KyfZ9WYHsQgl+neEMm6R7lAVnQfEF61kwar4crGHOx7hl5RbKvefmfMhlm/0eMJvCJD8Vw h4fERlB94/jr1TSPO2YTfRJtqXU4P7vDZrzZpLuNFUose1S5RCS0bmFVy1ti/HKaYAWsn6FY= X-Google-Smtp-Source: AKy350bE3Sf1p2xK3QENi7/awHWmwhm0zLowXbSZSUe3G/TX+QbyZk6Fvzag/iBkznD4HhUrxqLGGHPAlupyq9aHLg== X-Received: from jgzg.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1acf]) (user=jingzhangos job=sendgmr) by 2002:a63:4955:0:b0:50f:8d8d:60f0 with SMTP id y21-20020a634955000000b0050f8d8d60f0mr1867213pgk.10.1679793594164; Sat, 25 Mar 2023 18:19:54 -0700 (PDT) Date: Sun, 26 Mar 2023 01:19:47 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Message-ID: <20230326011950.405749-1-jingzhangos@google.com> Subject: [PATCH v1 0/3] Enable writable for ID_AA64DFR0_EL1 and ID_DFR0_EL1 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 , Ricardo Koller , Raghavendra Rao Ananta , Jing Zhang Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This patch series is based on a previous patch series which adds the framework to allow enabling writable from userspace for CPU ID register easily. That patch series is at https://lore.kernel.org/all/20230317050637.766317-1-jingzhangos@google.com. This patch series shows how easy to enable writable for feature fields with dependencies and enable writable for a bunch of feature fields in an ID register. --- Jing Zhang (3): KVM: arm64: Enable writable for BRPs and CTX_CMPs for ID_AA64DFR0_EL1 KVM: arm64: Enable writable for remaining fields for ID_AA64DFR0_EL1 KVM: arm64: Enable writable for all fields in ID_DFR0_EL1 arch/arm64/kvm/id_regs.c | 45 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) base-commit: 020e96f196a31bf5c5aa2549cdfc4a401a8cf478