linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Allow userspace to change ID_AA64PFR1_EL1
@ 2024-06-18  6:38 Shaoqin Huang
  2024-06-18  6:38 ` [PATCH v2 1/2] KVM: arm64: " Shaoqin Huang
  2024-06-18  6:38 ` [PATCH v2 2/2] KVM: selftests: aarch64: Add writable test for ID_AA64PFR1_EL1 Shaoqin Huang
  0 siblings, 2 replies; 9+ messages in thread
From: Shaoqin Huang @ 2024-06-18  6:38 UTC (permalink / raw)
  To: Oliver Upton, Marc Zyngier, kvmarm
  Cc: Shaoqin Huang, Catalin Marinas, James Morse, kvm,
	linux-arm-kernel, linux-kernel, linux-kselftest, Paolo Bonzini,
	Shuah Khan, Suzuki K Poulose, Will Deacon, Zenghui Yu

Allow userspace to change the guest-visible value of the register with
some severe limitation:

  - No changes to features not virtualized by KVM (MPAM_frac, RAS_frac)

Also add the selftest for it.

Changelog:
----------
v1 -> v2:
  * Tackling the full register instead of single field.
  * Changing the patch title and commit message.

RFCv1 -> v1:
  * Fix the compilation error.
  * Delete the machine specific information and make the description more
    generable.

RFCv1: https://lore.kernel.org/all/20240612023553.127813-1-shahuang@redhat.com/
v1: https://lore.kernel.org/all/20240617075131.1006173-1-shahuang@redhat.com/

Shaoqin Huang (2):
  KVM: arm64: Allow userspace to change ID_AA64PFR1_EL1
  KVM: selftests: aarch64: Add writable test for ID_AA64PFR1_EL1

 arch/arm64/kvm/sys_regs.c                         | 3 ++-
 tools/testing/selftests/kvm/aarch64/set_id_regs.c | 9 +++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

-- 
2.40.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-06-26  9:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-18  6:38 [PATCH v2 0/2] Allow userspace to change ID_AA64PFR1_EL1 Shaoqin Huang
2024-06-18  6:38 ` [PATCH v2 1/2] KVM: arm64: " Shaoqin Huang
2024-06-18  7:39   ` Marc Zyngier
2024-06-19  3:14     ` Shaoqin Huang
2024-06-21  6:17     ` Shaoqin Huang
2024-06-21  7:53       ` Marc Zyngier
2024-06-26  7:33         ` Shaoqin Huang
2024-06-26  9:01           ` Shaoqin Huang
2024-06-18  6:38 ` [PATCH v2 2/2] KVM: selftests: aarch64: Add writable test for ID_AA64PFR1_EL1 Shaoqin Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).