MPIDR is used to show multiprocessor affinity on arm platform. It is also used to provide an additional processor identification mechanism for scheduling purposes. To add support for setting MPIDR from usersapce an vcpu ioctl KVM_CAP_ARM_MP_AFFINITY is introduced. This patch series is needed to help qemu to build the accurate cpu topology for arm. Ying Fang (2): KVM: arm64: add KVM_CAP_ARM_MP_AFFINITY extension kvm/arm: Add mp_affinity for arm vcpu Documentation/virt/kvm/api.rst | 8 ++++++++ arch/arm64/include/asm/kvm_host.h | 5 +++++ arch/arm64/kvm/arm.c | 9 +++++++++ arch/arm64/kvm/reset.c | 11 +++++++++++ arch/arm64/kvm/sys_regs.c | 30 +++++++++++++++++++----------- include/uapi/linux/kvm.h | 3 +++ 6 files changed, 55 insertions(+), 11 deletions(-) -- 2.23.0