cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From 27aa81d0b84f03223414eb2e85b7fae0e0d2b86b Mon Sep 17 00:00:00 2001
9ae3a8
From: Eduardo Habkost <ehabkost@redhat.com>
9ae3a8
Date: Wed, 16 Oct 2013 13:07:15 +0200
9ae3a8
Subject: [PATCH 17/18] acpi/piix4: Enable qemu-kvm compatibility mode
9ae3a8
9ae3a8
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
9ae3a8
Message-id: <1381928835-10190-1-git-send-email-ehabkost@redhat.com>
9ae3a8
Patchwork-id: 54961
9ae3a8
O-Subject: [qemu-kvm RHEL-7 PATCH] acpi/piix4: Enable qemu-kvm compatibility mode
9ae3a8
Bugzilla: 1019474
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
9ae3a8
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
9ae3a8
9ae3a8
Bugzilla: 1019474
9ae3a8
Scratch build: https://brewweb.devel.redhat.com/taskinfo?taskID=6426533
9ae3a8
Upstream status: not applicable
9ae3a8
9ae3a8
>From the code comments:
9ae3a8
9ae3a8
  qemu-kvm 1.2 uses version 3 but advertised as 2
9ae3a8
  To support incoming qemu-kvm 1.2 migration, change version_id
9ae3a8
  and minimum_version_id to 2 below (which breaks migration from
9ae3a8
  qemu 1.2).
9ae3a8
9ae3a8
The v2 format of qemu-0.13 (implemented by upstream commit
9ae3a8
4cf3e6f3d85492f20a773dd6c9068ab89ba24a18, and the one that was used on
9ae3a8
qemu-kvm) is not compatible with the v2 format of qemu-0.15 and newer
9ae3a8
(compatibility was broken by upstream commit
9ae3a8
23910d3f669d46073b403876e30a7314599633af). RHEL-6 is using the former
9ae3a8
format (RHEL-6 commit c4101c5340988caa68da87066a88d3871c8c4bf1), which
9ae3a8
is not compatible with upstream QEMU.
9ae3a8
9ae3a8
This sets minimum_version_id to 2, so we enable the qemu-kvm
9ae3a8
compatibility mode, to allow us to load RHEL-6 migration data.
9ae3a8
9ae3a8
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
9ae3a8
---
9ae3a8
 hw/acpi/piix4.c | 2 +-
9ae3a8
 1 file changed, 1 insertion(+), 1 deletion(-)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/acpi/piix4.c |    2 +-
9ae3a8
 1 files changed, 1 insertions(+), 1 deletions(-)
9ae3a8
9ae3a8
diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
9ae3a8
index 86ff598..f14867a 100644
9ae3a8
--- a/hw/acpi/piix4.c
9ae3a8
+++ b/hw/acpi/piix4.c
9ae3a8
@@ -278,7 +278,7 @@ static int acpi_load_old(QEMUFile *f, void *opaque, int version_id)
9ae3a8
 static const VMStateDescription vmstate_acpi = {
9ae3a8
     .name = "piix4_pm",
9ae3a8
     .version_id = 3,
9ae3a8
-    .minimum_version_id = 3,
9ae3a8
+    .minimum_version_id = 2,
9ae3a8
     .minimum_version_id_old = 1,
9ae3a8
     .load_state_old = acpi_load_old,
9ae3a8
     .post_load = vmstate_acpi_post_load,
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8