Message ID | 20230821212243.491660-1-jingzhangos@google.com (mailing list archive) |
---|---|
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 2AD68EE49A0 for <linux-arm-kernel@archiver.kernel.org>; Mon, 21 Aug 2023 21:23:20 +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=yCP4NlOtOT9HZD0CQU2lSvywDddaaRYCh2g0SnBzTKA=; b=U2Y TY5K0iNdonIPuSAJ5PdiXbbxcOovgSFtabqcBNyRTj+O+fPPoq4iaHYsBHJevEAEaTWEyEM4TqXh4 vt0K0+OtaIwUc/v7a9hkMEDcomA3z3pUhyJ/fR0l0wX5OUq447eFJz5YhN6257TDic4qZ5dHokxed QuFXqozJf5EEG/RzTrrBHfQlaHjZX1kWVX15eDFfQ1XhbPJ84gYLp67FXa6MlElhgY2HVbJl39Ih+ vSR3UHO0+toX3J246RHw0eHzlDVhxUDV3IJ44v+Nec+U3vWu0M8wTNNRJpifbkwIKAz5YGhanz5iK iL8d/cgsMB/lDS38klajN/zN/PxBUjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYCMN-00EiDX-2l; Mon, 21 Aug 2023 21:22:51 +0000 Received: from mail-pg1-x54a.google.com ([2607:f8b0:4864:20::54a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYCMK-00EiCg-2F for linux-arm-kernel@lists.infradead.org; Mon, 21 Aug 2023 21:22:50 +0000 Received: by mail-pg1-x54a.google.com with SMTP id 41be03b00d2f7-564656d952aso3996921a12.3 for <linux-arm-kernel@lists.infradead.org>; Mon, 21 Aug 2023 14:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1692652967; x=1693257767; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=7W2Zs0/pm7I7OHogR/tSUzcr/GJKDVTJTJBw8czH204=; b=p3zT+it1diA8XrOL4pxuaxQWqBQCA6sbz/0wUWEj44sZuMzpL7NzWP+kXYjUffQHJo kstYgT1CskbgAuGyy4kZMfKUIXlxk+tnL29GRBwKxVgEGpk3P6z5UK1Tr3mNHuUFRtbl 4Zj+cxp2lu3MR/7wgiJeloEi+J6xd8Q5jyciEb6kU3vlV5vuzIJ6vTD/vQOmaEAfU+g0 d8KO5ZP5NnhbnOlGO3D9wQqZuLTg1hcqeVxEEH1Z+V9tWp8Y1w+Q+ElKMBajg0VflFC3 pmVbJeqFYaVuQe5vvKwO9uA7SZxaST3ZNMtNHTlmoGmBN12dY2CO3R2u+VeRNCM4OYYG J6XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692652967; x=1693257767; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7W2Zs0/pm7I7OHogR/tSUzcr/GJKDVTJTJBw8czH204=; b=i+qVYx/XD75N0JTPLoEEyWZ93dwhsqK2Wp/otESroNUGy/OeEUf7eDVwqQ0M2jbrya HDxtPvwy9JBwZyEVRfhBTLs33tQtDQrXanTnG7Nx2Tc+hbdB/WANvEo5GHn4UDqVr+f4 ERrTKWztK6+Y473yHuF51r0+h6oMpjNmmCsH90bEn+7yZP+f1M60R65DUbtN1JL0S27m VzRu/p8/gIPfplBdZY13bEQ+s+sgt3uXPFc/BAWwlaALj9pU9DETJTc2ho2awVGRFV/y 07IsCJmcMfHMDZ5LgZd2MyOWWkj2lEMQwtd6JFIbzzgs2vnA7u59LtuOqF+SAvifX1sB LnBw== X-Gm-Message-State: AOJu0YxJUjzI9D5kiyshGFc7PfTto72RYRXgiHgMR2+nhjoUMwQRYyXz tbq7SCqxFWNGBCRjysWI5LW5Hg1djXB9nv7oXg== X-Google-Smtp-Source: AGHT+IEVzZXRt8y+Ma6R9WjGxt5eCIhgyL+3uY7/hqkASZkb9M84mnZETxus4J6hL7V+d5xXL8bw+PHEff/qJQhSmQ== X-Received: from jgzg.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1acf]) (user=jingzhangos job=sendgmr) by 2002:a17:903:1c4:b0:1bc:7c69:925c with SMTP id e4-20020a17090301c400b001bc7c69925cmr3776051plh.10.1692652967025; Mon, 21 Aug 2023 14:22:47 -0700 (PDT) Date: Mon, 21 Aug 2023 14:22:32 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.rc1.204.g551eb34607-goog Message-ID: <20230821212243.491660-1-jingzhangos@google.com> Subject: [PATCH v9 00/11] Enable writable for idregs DFR0,PFR0, MMFR{0,1,2,3} 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 <oliver.upton@linux.dev> 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>, Suraj Jitindar Singh <surajjs@amazon.com>, Cornelia Huck <cohuck@redhat.com>, Shaoqin Huang <shahuang@redhat.com>, Jing Zhang <jingzhangos@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230821_142248_735710_F19AE5EF X-CRM114-Status: GOOD ( 13.68 ) 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,3}
|
expand
|
On Mon, Aug 21 2023, Jing Zhang <jingzhangos@google.com> wrote: > This patch series enable userspace writable for below idregs: > ID_AA64DFR0_EL1, ID_DFR0_EL1, ID_AA64PFR0_EL1, ID_AA64MMFR{0, 1, 2, 3}_EL1. > A vm ioctl is added to get feature ID register writable masks from userspace. > A selftest is added to verify that KVM handles the writings from user space > correctly. > A relevant patch from Oliver is picked from [3]. > > --- > > * v8 -> v9 > - Rebase on v6.5-rc7. > - Don't allow writable on RES0 fields and those fields not exposed by KVM. > - Fixed build dependency issue for system register definition generation in > selftest. What about the changes to the userspace interface as proposed by Marc in <86sf8hg45k.wl-maz@kernel.org>?