From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rclai-0002dk-Lf for qemu-devel@nongnu.org; Mon, 19 Dec 2011 17:21:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rclah-00065v-IB for qemu-devel@nongnu.org; Mon, 19 Dec 2011 17:21:52 -0500 Received: from mail-gx0-f173.google.com ([209.85.161.173]:61659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rclah-00065p-Bo for qemu-devel@nongnu.org; Mon, 19 Dec 2011 17:21:51 -0500 Received: by ggnk1 with SMTP id k1so5007217ggn.4 for ; Mon, 19 Dec 2011 14:21:50 -0800 (PST) Message-ID: <4EEFB8FB.3030105@codemonkey.ws> Date: Mon, 19 Dec 2011 16:21:47 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <61e59db37279bb3834b996c84e9a0523638f5e35.1323952403.git.jan.kiszka@siemens.com> In-Reply-To: <61e59db37279bb3834b996c84e9a0523638f5e35.1323952403.git.jan.kiszka@siemens.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 07/16] apic: Open-code timer save/restore List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Anthony Liguori , kvm@vger.kernel.org, "Michael S. Tsirkin" , Marcelo Tosatti , qemu-devel , Blue Swirl , Avi Kivity On 12/15/2011 06:33 AM, Jan Kiszka wrote: > To enable migration between accelerated and non-accelerated APIC models, > we will need to handle the timer saving and restoring specially and can > no longer rely on the automatics of VMSTATE_TIMER. Specifically, > accelerated model will not start any QEMUTimer. > > This patch therefore factors out the generic bits into apic_next_timer > and introduces a post-load callback that can be implemented differently > by both models. > > Signed-off-by: Jan Kiszka So you basically want the timer to be a dummy field for the in-kernel apic? Can you fix this up in a pre-save routine (put QEMUTimer into a state where there isn't an event pending)? Regards, Anthony Liguori