This small patchset is actually a small extraction from vGICv3 support, as it was suggested in https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg00921.html. Initially i wanted to just make a check, but ended up full implementation which is not more difficult. Since we don't make any assumptions about particular affinity layout in non-TCG code, i don't see why this would not work with KVM.
In order to avoid using magic numbers i refactored out some useful affinity-related constants. Pavel Fedin (2): target-arm: Refactor CPU affinity handling arm/virt: Add full-sized CPU affinity handling hw/arm/virt.c | 32 ++++++++++++++++++++++++++++++-- target-arm/cpu-qom.h | 12 ++++++++++++ target-arm/cpu.c | 2 +- target-arm/kvm32.c | 3 +-- target-arm/kvm64.c | 3 +-- 5 files changed, 45 insertions(+), 7 deletions(-) -- 2.4.4