From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYAMd-0006GP-7Q for qemu-devel@nongnu.org; Tue, 23 Feb 2016 05:38:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYAMc-0006Tv-B6 for qemu-devel@nongnu.org; Tue, 23 Feb 2016 05:38:43 -0500 References: <1456132310-4826-1-git-send-email-zxq_yx_007@163.com> <56CAE2DB.3080702@163.com> <56CBEA1C.4060900@163.com> <56CC2E1E.2050705@163.com> From: hitmoon Message-ID: <56CC362B.2080907@163.com> Date: Tue, 23 Feb 2016 18:36:27 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v4 5/9] hw/timer: QOM'ify m48txx_sysbus (pass 2) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Igor Mitsyanko , Mark Cave-Ayland , QEMU Developers , Michael Walle , qemu-arm , "Edgar E. Iglesias" , Guan Xuetao , =?UTF-8?Q?Andreas_F=c3=a4rber?= 在 2016年02月23日 18:26, Peter Maydell 写道: > On 23 February 2016 at 10:02, hitmoon wrote: >> I still can NOT understand your intention properly. Can you explain more >> clearly? > VMState structures should generally mirror the structs > they are saving/restoring. The M48txxISAState has an entry > that just says "state is an M48t59State struct. Your > VMState for M48txxISAState should therefore also have an > entry saying "state is an M48t59State struct", it should > not manually include all the fields in state. If you > look for uses of VMSTATE_STRUCT in the codebase you'll > find some examples. > > You also need to be able to test that migration works > if you save data on a QEMU built before you make this change > and then reload the data after it. So you need to find a test > setup which uses this device (ie a working command line for > a machine that uses it, preferably with a real guest) and make > sure you can do vmsave/load. > > thanks > -- PMM Got it ! Thanks PMM !