Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs

From: Greg Kurz
Date: Mon Apr 25 2016 - 10:31:12 EST


On Mon, 25 Apr 2016 16:15:22 +0200
Radim KrÄmÃÅ <rkrcmar@xxxxxxxxxx> wrote:

> 2016-04-22 16:50+0200, Greg Kurz:
> > Just to be sure I haven't missed something:
> > - change the spec to introduce the MAX_VCPU_ID concept
> > - update all related checks in KVM
> > - provide a KVM_CAP_MAX_VCPU_ID for userspace
>
> That is it, thanks a lot!
>
> (From nitpicks that come to my mind ... MAX_VCPU_ID should not be able
> to lower the VCPU_ID limit below MAX_VCPUS.)
>

Indeed it shouldn't. Thanks for the tip !