Andrew Jones 95eb49c8a3 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>
2016-07-14 16:51:37 +01:00
..
2016-05-12 13:40:48 +01:00
2016-07-04 13:15:22 +01:00
2016-05-19 16:42:27 +02:00
2016-06-06 16:59:31 +01:00
2016-06-06 16:59:31 +01:00
2016-06-06 16:59:31 +01:00
2016-06-13 13:24:41 +02:00
2016-05-12 13:42:08 +01:00
2016-06-13 13:24:41 +02:00
2016-07-04 13:15:22 +01:00
2016-06-06 16:59:31 +01:00
2016-05-19 16:42:29 +02:00
2016-06-13 13:24:41 +02:00
2016-06-06 16:59:31 +01:00
2016-07-14 16:51:37 +01:00
2016-07-04 13:15:22 +01:00
2016-07-04 13:15:22 +01:00