From patchwork Mon Apr 3 00:37:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jing Zhang X-Patchwork-Id: 13197587 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 C839CC76196 for ; Mon, 3 Apr 2023 00:39:00 +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=9+/Hc3VdwCm2vOB5opTcY8nhJkcYdYU9yltOzBFcJ1Y=; b=l+Q /xKcIcpFPyYM9aX0ZG5Ct8V5jAoGGS0P7pQ39elof2I7/K7fi0JjDGp/ktItpuoRRlzGUwio5OQth u2RHb7JrJxIT7WnRS+0oZPc5yzRyzLVmqjDGFjXKF0Hc140E6nMM/TjvmpO7i+3ZXs8FOV43tptD9 FvdTvPw48o13kAlaW2fgsWk1KEk2obJwNtLSAnaQDMunFG/1o5ZQVuVHHN0IR0mRtXc/zlxW2KAI/ aOGvqZR2B4JzchRtKhEKhivXi8tahV4O4BR7zYaYb9FJmTmkEHqae7WF0zOAGZdGhJLE0rCHNohmn oRobFTSy5tTqcqBxRFw5MvSifs1NhyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pj8CS-00DWLo-0G; Mon, 03 Apr 2023 00:37:32 +0000 Received: from mail-yw1-x114a.google.com ([2607:f8b0:4864:20::114a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pj8CO-00DWKi-2k for linux-arm-kernel@lists.infradead.org; Mon, 03 Apr 2023 00:37:30 +0000 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-54574d6204aso274291877b3.15 for ; Sun, 02 Apr 2023 17:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680482246; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=7cbkKDYMk+VvT0sZcvXM38Hovglc7Ib8g99EWCrwY8c=; b=p3KcxgWW4f/5Zh38+7KQO1Ua2tlTD3GFa5IiommfGPumeywuZB56OGE2Sm3Gg8KtOs DVw+a6q3PbfhCGIEQXuk4/kJPHTfowjYfiBhjkwS+oRdkexXorj/RXOLxZrm1negFJS5 EdIJVhXDbBL4qcFWsl6opQCMzf9c5NwrV81m7drR/EwA+pefSHG4EOaeZl3wrBwlXFgI ODu8X4C50h8/x3cbBIUHrnTLugQoUJWN+Qq6oTTYF4J2vM0EXdvaVyHEJGLtn8Jnn6zH uhuGuLFUlX9XUQNyarsZ0H7kpMXV3b+QXh+ce0U+PNz3+OJiT5g0Fv12vHnOHXbrmm7g H/zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680482246; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7cbkKDYMk+VvT0sZcvXM38Hovglc7Ib8g99EWCrwY8c=; b=HQ5Py+AlhnnQ1xVzVBiGzkKmR34dXhb8p7EMSSCrN9IZwv8VE+OaDEgT7PvU1dZ+qZ I/8S0qqpIeOxxTSeuyv4/iP5RciWKNUGBqrd0492xyf4q+N38MGvgd4/kdH8O6ypkKNJ EN5cHkwSP0NM8Tqo+1KklT/MG8kCwNT496I8uwuzCn8OMF7IfCF9Jb2G7KwvkQua5Qrb P+htSQ6hH7E9dEvCjfud+izODufKQsVS4RJ7kjQw6EiwjXeHtue9RNRQPRNQxrZyndx1 08+4s9/Hhi0PgOgW26rOII/HxRlwBo/iX7EDcNzGR47Bn0nLNQ4W30MfNxKc3efyO6uI 9lLA== X-Gm-Message-State: AAQBX9doEnYr21QgjSj8gBEfylQjhd23E4ybJ9H9VVJtZ9WY8vv64ocN eW44rRJJYawdrXaHO0S36Db/9yhjgAE0gwmbYA== X-Google-Smtp-Source: AKy350ad/EeyiNhWuRLhO4Zw2rF2u3v9HNXTPPROAH2x+Andj0LdaNnvp3Qch0+QUfKMPzbj0KuRy0LBjqwLON7Emg== X-Received: from jgzg.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1acf]) (user=jingzhangos job=sendgmr) by 2002:a05:6902:722:b0:a09:314f:a3ef with SMTP id l2-20020a056902072200b00a09314fa3efmr22360648ybt.12.1680482245950; Sun, 02 Apr 2023 17:37:25 -0700 (PDT) Date: Mon, 3 Apr 2023 00:37:21 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Message-ID: <20230403003723.3199828-1-jingzhangos@google.com> Subject: [PATCH v2 0/2] 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 , Raghavendra Rao Ananta , Jing Zhang X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230402_173728_933586_78BEE0CB X-CRM114-Status: UNSURE ( 8.63 ) 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 is based on a previous patch series which adds the infrastructure to allow enabling writable from userspace for CPU ID register easily. That patch series is at [1]. --- * 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 --- Jing Zhang (2): KVM: arm64: Enable writable for ID_AA64DFR0_EL1 KVM: arm64: Enable writable for ID_DFR0_EL1 arch/arm64/kvm/id_regs.c | 79 +++++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 37 deletions(-) base-commit: 921048c77a673221e27f4777a82661248465bad0