Now that KVM_CAP_MAX_VCPU_ID is in Linux 4.6, we can use it to support topologies that generate vCPU ids >= KVM_MAX_VCPUS. This is especially useful for PPC targets when the guest has fewer threads per core than the host.
The first patch was already posted and accepted by David last month, but since it hasn't been pushed to an official tree yet, I resend it so that the series applies against master. --- Greg Kurz (3): PPC/KVM: early validation of vcpu id linux-headers: update to Linux 4.6 KVM: use KVM_CAP_MAX_VCPU_ID include/standard-headers/linux/pci_regs.h | 20 +++++++++++++++++++- include/standard-headers/linux/virtio_config.h | 2 ++ include/sysemu/kvm.h | 2 ++ kvm-all.c | 12 ++++++++++++ linux-headers/asm-arm/unistd.h | 2 ++ linux-headers/asm-arm64/unistd.h | 3 +++ linux-headers/asm-powerpc/unistd.h | 2 ++ linux-headers/asm-s390/kvm.h | 1 + linux-headers/asm-s390/unistd.h | 4 +++- linux-headers/asm-x86/kvm.h | 6 +++--- linux-headers/asm-x86/unistd_x32.h | 2 ++ linux-headers/linux/kvm.h | 1 + target-ppc/translate_init.c | 8 ++++++++ 13 files changed, 60 insertions(+), 5 deletions(-) -- Greg