]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Add helper for writing ID regs
authorOliver Upton <oliver.upton@linux.dev>
Wed, 19 Jun 2024 17:40:30 +0000 (17:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 17:16:44 +0000 (17:16 +0000)
commitd7508d27dd8878eb09e470855a546d96e0cfd4d3
tree83ad779d725d8060381727ce62f32f8cfaccf39f
parent97ca3fcc15cc0b19ccacb56d25545f1df080fbc0
KVM: arm64: Add helper for writing ID regs

Replace the remaining usage of IDREG() with a new helper for setting the
value of a feature ID register, with the benefit of cramming in some
extra sanity checks.

Reviewed-by: Sebastian Ott <sebott@redhat.com>
Link: https://lore.kernel.org/r/20240619174036.483943-5-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/nested.c
arch/arm64/kvm/sys_regs.c