KVM: arm64: Advertise selected DebugVer in DBGDIDR.Version
authorOliver Upton <oliver.upton@linux.dev>
Wed, 4 Oct 2023 17:03:17 +0000 (17:03 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 4 Oct 2023 17:10:15 +0000 (17:10 +0000)
commit5a23e5c7cb0d5b2b38c33417579cd628be7d14c5
tree40f0eb3568bf37ada94ecb865e57479309ae3e8d
parent8b6958d6ace19d56b44ca0f961f4fa480d4b48fc
KVM: arm64: Advertise selected DebugVer in DBGDIDR.Version

Much like we do for other fields, extract the Debug architecture version
from the ID register to populate the corresponding field in DBGDIDR.
Rewrite the existing sysreg field extractors to use SYS_FIELD_GET() for
consistency.

Suggested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c