Blame SOURCES/0020-Migration-compat-for-pckbd.patch

357786
From a13b85a600a676b75777d71dd6f11c233a5d8849 Mon Sep 17 00:00:00 2001
9bac43
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
9bac43
Date: Thu, 25 Jun 2015 16:34:25 +0200
9bac43
Subject: Migration compat for pckbd
9bac43
9bac43
Patchwork-id: 66497
9bac43
O-Subject: [RHEL-7.2 qemu-kvm-rhev PATCH 1/1] Migration compat for pckbd
9bac43
Bugzilla: 1215092
9bac43
RH-Acked-by: Juan Quintela <quintela@redhat.com>
9bac43
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9bac43
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9bac43
9bac43
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
9bac43
9bac43
2.2 added a new subsection to the pc keyboard model to preserve
9bac43
the value of 'outport' across migration; to maintain migration
9bac43
backwards compatibility this patch disables it on older machine types.
9bac43
This leaves us no-worse-off than in older versions.
9bac43
9bac43
Even with the new code, the value migrated in 'outport' isn't used
9bac43
anywhere in the pckbd model; for example the value migrated doesn't
9bac43
change the state of the A20 line or potentially do a reset.
9bac43
9bac43
The only effect, as far as I can tell is if the guest were to
9bac43
explicitly read the outport value it might get a more sensible reply.
9bac43
9bac43
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
9bac43
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9bac43
(cherry picked from commit d2aba8a17b40c081f2ce29bc12b3945b7fb91d53)
357786
(cherry picked from commit 583b819622f77c9e62bf3cd4f44b08de8aa46dcd)
357786
357786
Conflicts:
357786
	hw/input/pckbd.c
357786
357786
(cherry picked from commit b26d8202c6a76320865d3a9dad113e570f4e1bad)
357786
(cherry picked from commit fd17a12528099d896cbdb032425f08d393fca145)
357786
(cherry picked from commit 9fb05d3c53161d680e58dc44b3db75d4c9a43453)
9bac43
---
9bac43
 hw/input/pckbd.c | 6 ++++++
9bac43
 1 file changed, 6 insertions(+)
9bac43
9bac43
diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c
357786
index 66adb83..bbd4112 100644
9bac43
--- a/hw/input/pckbd.c
9bac43
+++ b/hw/input/pckbd.c
357786
@@ -27,6 +27,7 @@
9bac43
 #include "hw/i386/pc.h"
9bac43
 #include "hw/input/ps2.h"
357786
 #include "hw/input/i8042.h"
9bac43
+#include "migration/migration.h"
9bac43
 #include "sysemu/sysemu.h"
9bac43
 
9bac43
 /* debug PC keyboard */
357786
@@ -390,6 +391,11 @@ static int kbd_outport_post_load(void *opaque, int version_id)
9bac43
 static bool kbd_outport_needed(void *opaque)
9bac43
 {
9bac43
     KBDState *s = opaque;
9bac43
+
9bac43
+    if (migrate_pre_2_2) {
9bac43
+        return false;
9bac43
+    }
9bac43
+
9bac43
     return s->outport != kbd_outport_default(s);
9bac43
 }
9bac43
 
9bac43
-- 
9bac43
1.8.3.1
9bac43