With the patch set you posted I get some kvm unit tests failures due to being unable to update register values from userspace for tests using smp. The first patch addresses this. The second 2 are optimisations/cleanups. Based on "Support writable CPU ID registers from userspace" [1] [1] https://lore.kernel.org/linux-arm-kernel/20230602005118.2899664-1-jingzhangos@xxxxxxxxxx/ Suraj Jitindar Singh (3): KVM: arm64: Update id_reg limit value based on per vcpu flags KVM: arm64: Move non per vcpu flag checks out of kvm_arm_update_id_reg() KVM: arm64: Use per guest ID register for ID_AA64PFR1_EL1.MTE arch/arm64/include/asm/kvm_host.h | 21 +++-- arch/arm64/kvm/arm.c | 11 ++- arch/arm64/kvm/sys_regs.c | 122 +++++++++++++++++++++++++----- 3 files changed, 121 insertions(+), 33 deletions(-) -- 2.34.1