From 7ccf9e16235fbdeaace374f057136b65d7086c07 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 8 Jul 2009 15:59:09 +0000 Subject: [PATCH] -Add fix for IO during migration problems --- kvm/qemu-kvm-0.10.5-flush-aio-on-migration.patch | 11 +++++++++++ kvm/qemu-kvm.spec | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 kvm/qemu-kvm-0.10.5-flush-aio-on-migration.patch diff --git a/kvm/qemu-kvm-0.10.5-flush-aio-on-migration.patch b/kvm/qemu-kvm-0.10.5-flush-aio-on-migration.patch new file mode 100644 index 0000000..592f688 --- /dev/null +++ b/kvm/qemu-kvm-0.10.5-flush-aio-on-migration.patch @@ -0,0 +1,11 @@ +diff -urN qemu-kvm-0.10.5/migration.c qemu-kvm-0.10.5-flush-aio-on-migration/migration.c +--- qemu-kvm-0.10.5/migration.c 2009-05-21 05:05:19.000000000 -0400 ++++ qemu-kvm-0.10.5-flush-aio-on-migration/migration.c 2009-07-08 11:53:42.000000000 -0400 +@@ -216,6 +216,7 @@ + dprintf("done iterating\n"); + vm_stop(0); + ++ qemu_aio_flush(); + bdrv_flush_all(); + if ((qemu_savevm_state_complete(s->file)) < 0) { + vm_start(); diff --git a/kvm/qemu-kvm.spec b/kvm/qemu-kvm.spec index 8c76825..1cd1e05 100644 --- a/kvm/qemu-kvm.spec +++ b/kvm/qemu-kvm.spec @@ -1,6 +1,6 @@ Name: qemu-kvm Version: 0.10.5 -Release: 1 +Release: 2 Summary: Kernel Virtual Machine virtualization environment Group: System Environment/Kernel @@ -18,6 +18,7 @@ BuildRequires: zlib-devel Source0: qemu-kvm-0.10.5.tar.gz Patch: qemu-option-rom-expansion.patch +Patch1: qemu-kvm-0.10.5-flush-aio-on-migration.patch %description The Kernel Virtual Machine provides a virtualization enviroment for processors @@ -27,6 +28,7 @@ with hardware support for virtualization: Intel's VT-x&VT-i and AMD's AMD-V. %setup %patch -p1 +%patch1 -p1 %build rm -rf %{buildroot}