KVM: arm64: Fail the idreg iterator if idregs aren't initialized
authorOliver Upton <oliver.upton@linux.dev>
Tue, 27 Feb 2024 09:41:14 +0000 (09:41 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 27 Feb 2024 19:19:05 +0000 (19:19 +0000)
commit29ef55cec33de325562c6c056b167f58d61ddab0
treeab4376ce898a4ac67de33c15caef6e03bc51b5d2
parent99101dda29e3186b1356b0dc4dbb835c02c71ac9
KVM: arm64: Fail the idreg iterator if idregs aren't initialized

Return an error to userspace if the VM's ID register values haven't been
initialized in preparation for changing the debugfs file initialization
order.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240227094115.1723330-2-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c