From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48318 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLHno-0007dT-NM for qemu-devel@nongnu.org; Wed, 24 Nov 2010 11:02:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLHea-0004fC-UI for qemu-devel@nongnu.org; Wed, 24 Nov 2010 10:55:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLHea-0004ez-NZ for qemu-devel@nongnu.org; Wed, 24 Nov 2010 10:53:04 -0500 Date: Wed, 24 Nov 2010 17:52:49 +0200 From: "Michael S. Tsirkin" Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCHv2 0/6] stable migration image on a stopped vm List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: jasowang@redhat.com, Anthony Liguori , qemu-devel@nongnu.org, quintela@redhat.com I sent the exact same patches offline to some of the Cc'd, there's been no change but they have been tested by Jason now. I'll queue them up unless there are some comments. What these patches do is arrive at a state where migrate to exec with vm stopped produces a stable result. With these patches applied it's stable, under the following conditions: 1. run with -rtc clock=vm otherwise the rtc clock keeps running with vm stopped. 2. kvm clock compiled out (-kvmclock in -cpu should have same efect but does not, this is a bug, and it breaks migration between hosts with and without kvmclock support in kernel). 3. ratelimit set to a very large value (like 100g) Tested-by: Jason Wang Michael S. Tsirkin (6): virtio-net: don't dma while vm is stopped cpus: flush all requests on each vm stop migration/savevm: no need to flush requests virtio-net: stop/start bh on vm start/stop migration: stable ram block ordering migration: allow rate > 4g arch_init.c | 35 +++++++++++++++++++++++++++++++++++ buffered_file.c | 9 ++++++--- cpu-common.h | 3 +++ cpus.c | 2 ++ exec.c | 24 ++++++++++++++++++++++-- hw/hw.h | 8 ++++---- hw/virtio-net.c | 39 +++++++++++++++++++++++++++++---------- kvm-all.c | 2 +- migration.c | 8 ++++---- savevm.c | 8 ++------ 10 files changed, 108 insertions(+), 30 deletions(-) -- 1.7.3.2.91.g446ac