From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cornelia Huck Subject: Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs Date: Fri, 22 Apr 2016 12:22:10 +0200 Message-ID: <20160422122210.50450345.cornelia.huck@de.ibm.com> References: <146124809455.32509.15232948272580716135.stgit@bahia.huguette.org> <146124811255.32509.17679765789502091772.stgit@bahia.huguette.org> <20160421160018.GA31953@potion> <20160421184500.6cb5fd8a@bahia.huguette.org> <20160421173611.GB30356@potion> <20160422112538.41b23a9d@bahia.huguette.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Radim =?UTF-8?B?S3LEjW3DocWZ?= , Paolo Bonzini , james.hogan@imgtec.com, mingo@redhat.com, linux-mips@linux-mips.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, David Hildenbrand , qemu-ppc@nongnu.org, Paul Mackerras , David Gibson To: Greg Kurz Return-path: In-Reply-To: <20160422112538.41b23a9d@bahia.huguette.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Fri, 22 Apr 2016 11:25:38 +0200 Greg Kurz wrote: > On Thu, 21 Apr 2016 19:36:11 +0200 > Radim Kr=C4=8Dm=C3=A1=C5=99 wrote: > > > For other architectures, it is simply KVM_MAX_VCPUS. =20 > >=20 > > (Other architectures would not implement the capability.) > >=20 >=20 > So this would be KVM_CAP_PPC_MAX_VCPU_ID ? >=20 > > >> I think this would also clarify the connection between VCPU limi= t and > > >> VCPU_ID limit. Or is a boolean cap better? > > >> =20 > > >=20 > > > Well, I'm not fan of adding a generic API to handle a corner case= =2E.. =20 > >=20 > > I don't like it either, but I think that introducing the capability= is > > worth avoided problems. > >=20 >=20 > I admit that having separate capabilities for the number of vcpus and= the > maximum vcpu id fixes the confusion once and for all. Yes, and I think that the new max_vpcu_id cap should be generic for that reason.