hw/arm/virt: tcg: adjust MPIDR like KVM
commit95eb49c8a302f8adf5e360bca026af1c5ef21716
authorAndrew Jones <drjones@redhat.com>
Thu, 14 Jul 2016 15:51:37 +0000 (14 16:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Jul 2016 15:51:37 +0000 (14 16:51 +0100)
tree0c18d51ae91f1c54c0c93581825b5e735b057f61
parentc8efd802c40ed7f06eeebd4c8f7ff558424d7225
hw/arm/virt: tcg: adjust MPIDR like KVM

KVM adjusts the MPIDR of guest vcpus based on the architecture of
the host, 32-bit vs. 64-bit, and, for 64-bit, also on the type of
GIC the guest is using. To be consistent and improve SGI efficiency
we make the same adjustments for TCG as 64-bit KVM hosts. We neglect
to add consistency with 32-bit KVM hosts, as that would reduce SGI
efficiency and KVM is expected to change.

As MPIDR is a system register, and thus guest visible, we only make
adjustments for current and later versioned machines.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-id: 1467378129-23302-3-git-send-email-drjones@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c