From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWLAt-00038Y-OJ for qemu-devel@nongnu.org; Thu, 18 Feb 2016 04:47:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWLAq-0004pY-IF for qemu-devel@nongnu.org; Thu, 18 Feb 2016 04:47:03 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:50029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWLAq-0004p3-7b for qemu-devel@nongnu.org; Thu, 18 Feb 2016 04:47:00 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 18 Feb 2016 09:46:58 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 18888219005E for ; Thu, 18 Feb 2016 09:46:40 +0000 (GMT) Received: from d06av10.portsmouth.uk.ibm.com (d06av10.portsmouth.uk.ibm.com [9.149.37.251]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u1I9ksgn50266152 for ; Thu, 18 Feb 2016 09:46:54 GMT Received: from d06av10.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u1I8ktxO028088 for ; Thu, 18 Feb 2016 01:46:56 -0700 Date: Thu, 18 Feb 2016 10:46:52 +0100 From: David Hildenbrand Message-ID: <20160218104652.3cfd35ad@thinkpad-w530> In-Reply-To: <20160218104113.23376c1f@nial.brq.redhat.com> References: <1455739955-28139-1-git-send-email-mjrosato@linux.vnet.ibm.com> <1455739955-28139-6-git-send-email-mjrosato@linux.vnet.ibm.com> <20160218104113.23376c1f@nial.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 5/5] s390x/cpu: Allow hotplug of CPUs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: Matthew Rosato , qemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com, bharata@linux.vnet.ibm.com, cornelia.huck@de.ibm.com, pbonzini@redhat.com, afaerber@suse.de, rth@twiddle.net > > #if !defined(CONFIG_USER_ONLY) > > +void s390_hot_add_cpu(const int64_t id, Error **errp) > > +{ > to make it future-proof wrt migration it could be better to > enforce here that 'id' grows in +1 steps so user > won't be able create cpus with gaps. That should be already covered by: if (id != next_cpu_id) ... or am I missing something? David