Re: [Qemu-devel] [PATCH 1/3] PPC/KVM: early validation of vcpu id

2016-05-26 Thread David Gibson
On Thu, May 26, 2016 at 10:02:10AM +0200, Greg Kurz wrote: > The KVM API restricts vcpu ids to be < KVM_CAP_MAX_VCPUS. On PowerPC > targets, depending on the number of threads per core in the host and > in the guest, some topologies do generate higher vcpu ids actually. > When this happens, QEMU ba

[Qemu-devel] [PATCH 1/3] PPC/KVM: early validation of vcpu id

2016-05-26 Thread Greg Kurz
The KVM API restricts vcpu ids to be < KVM_CAP_MAX_VCPUS. On PowerPC targets, depending on the number of threads per core in the host and in the guest, some topologies do generate higher vcpu ids actually. When this happens, QEMU bails out with the following error: kvm_init_vcpu failed: Invalid ar