KVM: arm64: nv: Turn encoding ranges into discrete XArray stores
authorMarc Zyngier <maz@kernel.org>
Wed, 14 Feb 2024 13:18:11 +0000 (13:18 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 19 Feb 2024 17:13:00 +0000 (17:13 +0000)
commitfdd8e3452359d513cdad1bb8467791b69697181a
treed23c5425d7a1b42d18f2d8aa986d9668e19467b3
parent9958d58779c92b72ef5b29284d073ecaa2a28764
KVM: arm64: nv: Turn encoding ranges into discrete XArray stores

In order to be able to store different values for member of an
encoding range, replace xa_store_range() calls with discrete
xa_store() calls and an encoding iterator.

We end-up using a bit more memory, but we gain some flexibility
that we will make use of shortly.

Take this opportunity to tidy up the error handling path.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20240214131827.2856277-11-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/emulate-nested.c