arm/arm64: KVM: Statically configure the host's view of MPIDR
We currently eagerly save/restore MPIDR. It turns out to be slightly pointless: - On the host, this value is known as soon as we're scheduled on a physical CPU - In the guest, this value cannot change, as it is set by KVM (and this is a read-only register) The result of the above is that we can perfectly avoid the eager saving of MPIDR_EL1, and only keep the restore. We just have to setup the host contexts appropriately at boot time. Signed-off-by:Marc Zyngier <marc.zyngier@arm.com> Acked-by:
Christoffer Dall <christoffer.dall@arm.com> Signed-off-by:
Christoffer Dall <christoffer.dall@arm.com>
Showing
- arch/arm/include/asm/kvm_host.h 8 additions, 0 deletionsarch/arm/include/asm/kvm_host.h
- arch/arm/kvm/hyp/cp15-sr.c 0 additions, 1 deletionarch/arm/kvm/hyp/cp15-sr.c
- arch/arm64/include/asm/kvm_host.h 8 additions, 0 deletionsarch/arm64/include/asm/kvm_host.h
- arch/arm64/kvm/hyp/sysreg-sr.c 0 additions, 1 deletionarch/arm64/kvm/hyp/sysreg-sr.c
- virt/kvm/arm/arm.c 1 addition, 0 deletionsvirt/kvm/arm/arm.c
Please register or sign in to comment