From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJmLr-0002Al-U9 for qemu-devel@nongnu.org; Mon, 27 Jul 2015 13:38:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJmLp-0003Bd-57 for qemu-devel@nongnu.org; Mon, 27 Jul 2015 13:38:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJmLo-0003BN-Vx for qemu-devel@nongnu.org; Mon, 27 Jul 2015 13:38:09 -0400 Date: Mon, 27 Jul 2015 18:38:02 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20150727173802.GC27613@work-vm> References: <1434450415-11339-1-git-send-email-dgilbert@redhat.com> <1434450415-11339-22-git-send-email-dgilbert@redhat.com> <20150721072905.GE10280@grmbl.mre> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150721072905.GE10280@grmbl.mre> Subject: Re: [Qemu-devel] [PATCH v7 21/42] postcopy: OS support test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: aarcange@redhat.com, yamahata@private.email.ne.jp, quintela@redhat.com, liang.z.li@intel.com, qemu-devel@nongnu.org, luis@cs.umu.se, pbonzini@redhat.com, david@gibson.dropbear.id.au * Amit Shah (amit.shah@redhat.com) wrote: > On (Tue) 16 Jun 2015 [11:26:34], Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > Provide a check to see if the OS we're running on has all the bits > > needed for postcopy. > > > > Creates postcopy-ram.c which will get most of the other helpers we need. > > > > Signed-off-by: Dr. David Alan Gilbert > > > @@ -1165,6 +1166,10 @@ static int loadvm_postcopy_handle_advise(MigrationIncomingState *mis, > > return -1; > > } > > > > + if (!postcopy_ram_supported_by_host()) { > > + return -1; > > + } > > + > > So this is just advise: if we receive this, and we can't handle > postcopy, we're going to abort migration? Shouldn't we continue and > let src know that we can't accept postcopy? ie the problem is > currently punted to higher levels, should we try to handle it > ourselves? We could, although it happens right at the start of migration, and it only happens if you explicitly enabled the postcopy capability, so I'm not sure there's any advantage in trying to fall back when you've been told to use it. Dave > > > > Amit -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK