[RESEND PATCH stable 4.14 4.19 1/2] KVM: arm64: Factor out core register ID enumeration