Received: from eggs.gnu.org ([2001:4830:134:3::10]:52521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkwRc-00081B-Dv for qemu-devel@nongnu.org; Thu, 15 May 2014 10:15:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkwRW-0001Xi-Ol for qemu-devel@nongnu.org; Thu, 15 May 2014 10:15:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkwRW-0001XX-FJ for qemu-devel@nongnu.org; Thu, 15 May 2014 10:15:30 -0400 Date: Thu, 15 May 2014 11:15:26 -0300 From: Eduardo Habkost Message-ID: <20140515141526.GR3302@otherpad.lan.raisama.net> References: <1400095810-27684-1-git-send-email-ehabkost@redhat.com> <1400095810-27684-17-git-send-email-ehabkost@redhat.com> <8738gb9r2d.fsf@elfo.mitica> <5374BC55.9020301@suse.de> <87fvkb87d3.fsf@elfo.mitica> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <87fvkb87d3.fsf@elfo.mitica> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH RESEND v4 16/18] savevm: check vmsd for migratability status List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: Marcelo Tosatti , Andreas =?iso-8859-1?Q?F=E4rber?= , qemu-devel@nongnu.org On Thu, May 15, 2014 at 04:05:44PM +0200, Juan Quintela wrote: > Andreas F=E4rber wrote: > > Am 15.05.2014 14:14, schrieb Juan Quintela: > >> Eduardo Habkost wrote: > >>> From: Marcelo Tosatti > >>> > >>> Check vmsd for unmigratable field, allowing migratibility status > >>> to be modified after vmstate_register. > >>> > >>> Cc: Juan Quintela > >>> Signed-off-by: Marcelo Tosatti > >>> Reviewed-by: Eduardo Habkost > >>> Signed-off-by: Eduardo Habkost > >>=20 > >> I agree with the patch spirt, but what happens if we want to disable > >> migration in a device that has no VMSD? > > > > As the patch shows, no non-VMSD device setting no_migrate exists toda= y. > > Do you expect any to appear? I'm rather seeing more and more devices > > getting converted to VMSD. >=20 > I want people to notice that. As said, I hope that everything new uses > VMSD. Note that devices that have no VMSD couldn't set no_migrate before this patch, anyway (the only way to set no_migrate was using a VMSD). The change is not visible outside savevm.c. If we want to disable migration in a device that has no VMSD, we will need a savevm API change. If that ever happens, re-adding the field to support the API change would be trivial. --=20 Eduardo