Message ID | 20230405172146.297208-3-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 84793C77B62 for <linux-arm-kernel@archiver.kernel.org>; Wed, 5 Apr 2023 17:22:54 +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=pBzqN7DZjnYTLf1idRlK5Yfad81JkNahHQ+J/Kik/AQ=; b=WB3Xv08OR8luKs20sf4U8uCk5E AbhBgrm729PfgRsovAgs1ryC3bKpn+HBDdj8riqHLXg4ARa6K4iBboSmOLAJu5TGA1pUyFwnMAcDs Pm1DReh5DAG/Q/8zqFv/Pf6HP/DrGpfU0PcLDi0tfm6CcwC+O3UDlKGTvz4Gped0IANW5GhurJk5r ZIyKenb/5K4iyH7Wv3zoun1fUzaxkEKvcwIQCoicRd8h5iT4jCpYaDQCK94DElDu4fQ6B7/HkTf66 qmbyEBBfq3tY69bS9g8tiM67NvKL9uMFXypup3NNLaS0EDzOV3cQzpk1lNPXMF9XZAaUtI4IHM8rS 62DIpEYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pk6pe-005FBc-2n; Wed, 05 Apr 2023 17:22:02 +0000 Received: from mail-pl1-x649.google.com ([2607:f8b0:4864:20::649]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pk6pX-005F8V-1L for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 17:21:56 +0000 Received: by mail-pl1-x649.google.com with SMTP id h4-20020a170902f54400b001a1f5f00f3fso21135477plf.2 for <linux-arm-kernel@lists.infradead.org>; Wed, 05 Apr 2023 10:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680715312; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=YZXp0/8PJTGepliQmzk6iLCbVVbymsexrmTW0hRHL+M=; b=XTTnAPzj7kVG9899g25zsvj+9D1iNIV9d1Jo24v6C38NNXjhfEnP1e5H4cxXfhRBF7 b7rLGulBObZJB/MfqN+xHVqqw/2r0vWFb8H5R4i4mXlTbJPSbAkEHel4edTJvIwiVJ99 JfKmJ0+HYF8/0ZweRaMHpKJEf3JoRYzgxXM646JGYNU/m9uZp5tsCySc3V8zYN08yXLP 5w1Fv417CX67t84VJAVtfeDe4XNaPwvD5EwBoZaNh73QAPb7DQaTc0Wrn7OYfqzt1FvO zX8M24I/sLOlrJF098SFySRjZfHN/Gjzx3H7Sx2UVEq97apuH77F3DQl31XemS9y2LK5 mNaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680715312; 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=YZXp0/8PJTGepliQmzk6iLCbVVbymsexrmTW0hRHL+M=; b=2uUOfmX7R7UEgbFIweFx+UgwPkMNWW8d2ua3fmUBZ0wSKTa7mAuW5iPKOgq6Mp8SCg PGCZUClqldF8mtH8zqhODlznx8GHam1NlALE9feTvDbgpHIYxl+t8FYcIT4qXBVjxNkg utVSbzlzjDyUUeuFyhVuVf8CLqBDYlSG/jXcgxW4opTmsNq1AYa5Nc/Q3XcOLxuVoXFU EoG1zxDT3WbR3Z22SFx+BnyV8o5o0GhCCPuCDXgKE2aOVVCsQ8MtWKP6vgW+GVPEKh2Q 8PoF04YIppbXfo9192q2hv/+u4hN0rLLIplLuA3aOfM1FArZJTh9jwAfRd0R5RdtXbwf 2PMQ== X-Gm-Message-State: AAQBX9fmQ5tjp+Kd71vJ2mE5hzYWWXn1+o+hkQK7EUOLb5yuCK0YTfsg oxk23EOez2M0y8qq7txxudqyItlk9j+O7HmJ5Q== X-Google-Smtp-Source: AKy350YdnT5o9wS/pjdMEe/6lo2FY/3iyGIJvao+boVENo2vwZJtJU3No7oL73mE/HePZMnaS9bLUg8gsy47ERuERw== X-Received: from jgzg.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1acf]) (user=jingzhangos job=sendgmr) by 2002:a17:90b:e09:b0:240:228:95bd with SMTP id ge9-20020a17090b0e0900b00240022895bdmr2634779pjb.5.1680715312476; Wed, 05 Apr 2023 10:21:52 -0700 (PDT) Date: Wed, 5 Apr 2023 17:21:44 +0000 In-Reply-To: <20230405172146.297208-1-jingzhangos@google.com> Mime-Version: 1.0 References: <20230405172146.297208-1-jingzhangos@google.com> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Message-ID: <20230405172146.297208-3-jingzhangos@google.com> Subject: [PATCH v3 2/4] KVM: arm64: Enable writable for ID_DFR0_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 <oupton@google.com> 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>, Jing Zhang <jingzhangos@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230405_102155_451102_CCBD4B60 X-CRM114-Status: GOOD ( 10.86 ) 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} | expand |
diff --git a/arch/arm64/kvm/id_regs.c b/arch/arm64/kvm/id_regs.c index ca26fdabcf66..11d3a1d46ee5 100644 --- a/arch/arm64/kvm/id_regs.c +++ b/arch/arm64/kvm/id_regs.c @@ -548,7 +548,7 @@ const struct sys_reg_desc id_reg_descs[KVM_ARM_ID_REG_NUM] = { .set_user = set_id_dfr0_el1, .visibility = aa32_id_visibility, .reset = read_sanitised_id_dfr0_el1, - .val = ID_DFR0_EL1_PerfMon_MASK, }, + .val = GENMASK(63, 0), }, ID_HIDDEN(ID_AFR0_EL1), AA32_ID_SANITISED(ID_MMFR0_EL1), AA32_ID_SANITISED(ID_MMFR1_EL1),
All valid fields in ID_DFR0_EL1 are writable from usrespace with this change. Signed-off-by: Jing Zhang <jingzhangos@google.com> --- arch/arm64/kvm/id_regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)