KVM: arm64: Handle ID register reads using the VM-wide values
authorOliver Upton <oliver.upton@linux.dev>
Fri, 9 Jun 2023 19:00:53 +0000 (19:00 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 15 Jun 2023 12:55:35 +0000 (12:55 +0000)
commit6db7af0d5b2b6073caf6a7f3364d8dd2005584d4
tree984894461d21e83d910df1bb4664ef640c4a2e1f
parentc39f5974d38f7250782c2fe52b2793cd00efaac0
KVM: arm64: Handle ID register reads using the VM-wide values

Everything is in place now to use the generic ID register
infrastructure. Use the VM-wide values to service ID register reads.
The ID registers are invariant after the VM has started, so there is no
need for locking in that case. This is rather desirable for VM live
migration, as the needless lock contention could prolong the VM blackout
period.

Link: https://lore.kernel.org/r/20230609190054.1542113-11-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c