Blob Blame History Raw
From 4538680de36c523e8e8e82569f7f8ee5836be54a Mon Sep 17 00:00:00 2001
From: Orit Wasserman <owasserm@redhat.com>
Date: Tue, 5 Nov 2013 13:13:44 +0100
Subject: Fix migration from rhel6.5 to rhel7 with ipxe

RH-Author: Orit Wasserman <owasserm@redhat.com>
Message-id: <1383657224-18599-4-git-send-email-owasserm@redhat.com>
Patchwork-id: 55377
O-Subject: [RHEL-7.0 qemu-kvm 3/3] Fix migration from rhel6.5 to rhel7 with ipxe
Bugzilla: 997702
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
RH-Acked-by: Alex Williamson <alex.williamson@redhat.com>
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
RH-Acked-by: Juan Quintela <quintela@redhat.com>

Use rhel6 ipxe roms for rhel6 machine types (to have compatible roms sizes
when migrating)

Signed-off-by: Orit Wasserman <owasserm@redhat.com>

diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 05a60a1..1b21f93 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -1027,6 +1027,22 @@ static QEMUMachine pc_machine_rhel700 = {
         .driver   = "usb-ccid",\
         .property = "serial",\
         .value    = "1",\
+    },{\
+        .driver   = "ne2k_pci",\
+        .property = "romfile",\
+        .value    = "rhel6-ne2k_pci.rom",\
+    },{\
+        .driver   = "pcnet",\
+        .property = "romfile",\
+        .value    = "rhel6-pcnet.rom",\
+    },{\
+        .driver   = "rtl8139",\
+        .property = "romfile",\
+        .value    = "rhel6-rtl8139.rom",\
+    },{\
+        .driver   = "virtio-net-pci",\
+        .property = "romfile",\
+        .value    = "rhel6-virtio.rom",\
     }
 
 static void pc_init_rhel650(MachineState *machine)