Blame SOURCES/0029-migcompat-rtl8139-Work-around-version-bump.patch

9bac43
From c4753f76a30a3e96c573d8e863587ba3e686348e Mon Sep 17 00:00:00 2001
9bac43
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
9bac43
Date: Wed, 29 Mar 2017 10:57:23 +0200
9bac43
Subject: migcompat/rtl8139: Work around version bump
9bac43
9bac43
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
9bac43
Message-id: <20170329105723.7789-2-dgilbert@redhat.com>
9bac43
Patchwork-id: 74581
9bac43
O-Subject: [RHEL-7.4 qemu-kvm-rhev PATCH v2 1/1] migcompat/rtl8139: Work around version bump
9bac43
Bugzilla: 1420195
9bac43
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9bac43
RH-Acked-by: Juan Quintela <quintela@redhat.com>
9bac43
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
9bac43
9bac43
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
9bac43
9bac43
commit 46fe8bef in 2.7 bumped the version number of the rtl8139
9bac43
vmstate, and added back a field that had been lost ~7 years ago
9bac43
by 9d29cde in v0.11.
9bac43
9bac43
To keep backwards compatibility we can't bump the version, so push
9bac43
the version number back down and remove the field that was added.
9bac43
The field doesn't seem to be that significant, especially since we've
9bac43
survived for 7 years with out it.
9bac43
9bac43
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
9bac43
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9bac43
9bac43
Rebase notes (2.9.0):
9bac43
- Patch rewritten
9bac43
9bac43
(cherry picked from commit 45ca263288bcbc98f36fae68c55e1a1b55e09221)
9bac43
---
9bac43
 hw/net/rtl8139.c | 4 +++-
9bac43
 1 file changed, 3 insertions(+), 1 deletion(-)
9bac43
9bac43
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
9bac43
index 450658c..80c62dc 100644
9bac43
--- a/hw/net/rtl8139.c
9bac43
+++ b/hw/net/rtl8139.c
9bac43
@@ -3206,7 +3206,7 @@ static void rtl8139_pre_save(void *opaque)
9bac43
 
9bac43
 static const VMStateDescription vmstate_rtl8139 = {
9bac43
     .name = "rtl8139",
9bac43
-    .version_id = 5,
9bac43
+    .version_id = 4,
9bac43
     .minimum_version_id = 3,
9bac43
     .post_load = rtl8139_post_load,
9bac43
     .pre_save  = rtl8139_pre_save,
9bac43
@@ -3287,7 +3287,9 @@ static const VMStateDescription vmstate_rtl8139 = {
9bac43
         VMSTATE_UINT32(tally_counters.TxMCol, RTL8139State),
9bac43
         VMSTATE_UINT64(tally_counters.RxOkPhy, RTL8139State),
9bac43
         VMSTATE_UINT64(tally_counters.RxOkBrd, RTL8139State),
9bac43
+#if 0 /* Disabled for Red Hat Enterprise Linux bz 1420195 */
9bac43
         VMSTATE_UINT32_V(tally_counters.RxOkMul, RTL8139State, 5),
9bac43
+#endif
9bac43
         VMSTATE_UINT16(tally_counters.TxAbt, RTL8139State),
9bac43
         VMSTATE_UINT16(tally_counters.TxUndrn, RTL8139State),
9bac43
 
9bac43
-- 
9bac43
1.8.3.1
9bac43