Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752400AbcDVKWW (ORCPT ); Fri, 22 Apr 2016 06:22:22 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:44210 "EHLO e06smtp15.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751582AbcDVKWT convert rfc822-to-8bit (ORCPT ); Fri, 22 Apr 2016 06:22:19 -0400 X-IBM-Helo: d06dlp01.portsmouth.uk.ibm.com X-IBM-MailFrom: cornelia.huck@de.ibm.com X-IBM-RcptTo: kvm@vger.kernel.org;linux-kernel@vger.kernel.org Date: Fri, 22 Apr 2016 12:22:10 +0200 From: Cornelia Huck To: Greg Kurz 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 Subject: Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs Message-ID: <20160422122210.50450345.cornelia.huck@de.ibm.com> In-Reply-To: <20160422112538.41b23a9d@bahia.huguette.org> 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> Organization: IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz =?UTF-8?B?R2VzY2jDpGZ0c2bDvGhydW5nOg==?= Dirk Wittkopp Sitz der Gesellschaft: =?UTF-8?B?QsO2Ymxpbmdlbg==?= Registergericht: Amtsgericht Stuttgart, HRB 243294 X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16042210-0021-0000-0000-000033B11FB2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 900 Lines: 28 On Fri, 22 Apr 2016 11:25:38 +0200 Greg Kurz wrote: > On Thu, 21 Apr 2016 19:36:11 +0200 > Radim Krčmář wrote: > > > For other architectures, it is simply KVM_MAX_VCPUS. > > > > (Other architectures would not implement the capability.) > > > > So this would be KVM_CAP_PPC_MAX_VCPU_ID ? > > > >> I think this would also clarify the connection between VCPU limit and > > >> VCPU_ID limit. Or is a boolean cap better? > > >> > > > > > > Well, I'm not fan of adding a generic API to handle a corner case... > > > > I don't like it either, but I think that introducing the capability is > > worth avoided problems. > > > > 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.