Received: from eggs.gnu.org ([2001:4830:134:3::10]:47016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQXHF-0006sT-FB for qemu-devel@nongnu.org; Fri, 22 Jul 2016 06:01:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQXHA-0006Pn-93 for qemu-devel@nongnu.org; Fri, 22 Jul 2016 06:01:52 -0400 Date: Fri, 22 Jul 2016 12:01:43 +0200 From: Igor Mammedov Message-ID: <20160722120143.27fb2b61@nial.brq.redhat.com> In-Reply-To: <20160722043505.GN15941@voom.fritz.box> References: <1469116479-233280-1-git-send-email-imammedo@redhat.com> <20160722005535-mutt-send-email-mst@kernel.org> <20160722043505.GN15941@voom.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/8] Fix migration issues with arbitrary cpu-hot(un)plug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: "Michael S. Tsirkin" , Eduardo Habkost , Peter Crosthwaite , Bharata B Rao , Riku Voipio , qemu-devel@nongnu.org, Alexander Graf , qemu-ppc@nongnu.org, Paolo Bonzini , Richard Henderson On Fri, 22 Jul 2016 14:35:05 +1000 David Gibson wrote: > On Fri, Jul 22, 2016 at 12:56:26AM +0300, Michael S. Tsirkin wrote: > > On Thu, Jul 21, 2016 at 05:54:31PM +0200, Igor Mammedov wrote: > > > Series fixes migration issues caused by unstable cpu_index which depended > > > on order cpus were created/destroyed. It follows David's idea to make > > > cpu_index assignable by selected boards if board supports cpu-hotplug > > > with device_add and needs stable cpu_index/'migration id' but leaves > > > behaviour of the same as before for users that don't care about > > > cpu-hot(un)plug making changes low-risk. > > > > > > tested with: > > > SRC -snapshot -enable-kvm -smp 1,maxcpus=3 -m 256M guest.img -monitor stdio \ > > > -device qemu64-x86_64-cpu,id=cpudel,apic-id=1 \ > > > -device qemu64-x86_64-cpu,apic-id=2 > > > (qemu) device_del cpudel > > > (qemu) stop > > > (qemu) migrate "exec:gzip -c > STATEFILE.gz" > > > > > > DST -snapshot -enable-kvm -smp 1,maxcpus=3 -m 256M guest.img -monitor stdio \ > > > -device qemu64-x86_64-cpu,apic-id=2 \ > > > -incoming "exec: gzip -c -d STATEFILE.gz" > > > > > > git tree to test with: > > > https://github.com/imammedo/qemu cpu-index-stable > > > to view > > > https://github.com/imammedo/qemu/commits/cpu-index-stable > > > > For PC bits: > > > > Reviewed-by: Michael S. Tsirkin > > > > This would be nice to have in 2.7. > > I agree. Despite the lateness, I think this will avoid substantial > future pain. > > > Who's reviewing/merging the rest? Eduardo? > > I've reviewed. I could merge through my tree if we don't have a > better option, but merging pc specific pieces through the ppc tree > would seem odd. Eduardo, if you take it through your tree could you drop spapr patches for now, it looks like PPC side are going to redefine core-id semantics so they'll post patches on top of this series.