From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W403v-00062s-Sx for qemu-devel@nongnu.org; Thu, 16 Jan 2014 22:25:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W403p-0000dv-Kt for qemu-devel@nongnu.org; Thu, 16 Jan 2014 22:25:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W403p-0000dp-7o for qemu-devel@nongnu.org; Thu, 16 Jan 2014 22:25:33 -0500 Date: Fri, 17 Jan 2014 11:25:21 +0800 From: Stefan Hajnoczi Message-ID: <20140117032521.GB16061@stefanha-thinkpad.redhat.com> References: <1389435213-4378-1-git-send-email-b.galvani@gmail.com> <1389435213-4378-2-git-send-email-b.galvani@gmail.com> <20140114051938.GC4803@stefanha-thinkpad.redhat.com> <20140116024511.GA11535@stefanha-thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: Edgar Iglesias , Peter Maydell , Juan Quintela , "qemu-devel@nongnu.org Developers" , Beniamino Galvani , Li Guang On Thu, Jan 16, 2014 at 10:52:19PM +1000, Peter Crosthwaite wrote: > > Perhaps we should just rely on > > NetClient->link_ok. > > > > I think we are in agreement then? There is no need for phy.link_ok as > same information is captured in NetClient. This means there is no > link_ok field to migrate. Just migrate the phy registers themselves. > > For completeness you just need to poll NetClient state post_load which > will nicely handle my degenerate case of link activity between save > and load (same handler as link_state_changed). In the more usual case > of the link state not changing between save and load, this function > call will just be a nop, leading to no change of state on the freshly > migrated phy registers. Sounds good. Stefan