9ae3a8
From caebed054838182932ee76d0dda6a8478ccf3760 Mon Sep 17 00:00:00 2001
9ae3a8
From: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
Date: Thu, 1 Aug 2013 10:02:33 +0200
9ae3a8
Subject: Disable EFI-enabled roms
9ae3a8
9ae3a8
RH-Author: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
Message-id: <e0915684c360a3df82f9205bc4858f81fdc74088.1375351149.git.mrezanin@redhat.com>
9ae3a8
Patchwork-id: 52889
9ae3a8
O-Subject: [RHEL7 qemu-kvm PATCH v2] Disable EFI-enabled roms
9ae3a8
Bugzilla: 962563
9ae3a8
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Michal Novotny <minovotn@redhat.com>
9ae3a8
9ae3a8
Bugzilla: 962563
9ae3a8
Brew:     http://brewweb.devel.redhat.com/brew/taskinfo?taskID=6115956
9ae3a8
9ae3a8
We do not ship OVMF and cannot support them therefor ipxe do not include UEFI
9ae3a8
driver. Remove usage of EFI-enabled roms
9ae3a8
9ae3a8
Note: Compatibility code is not reverted to allow cleaner backports in future.
9ae3a8
9ae3a8
v2:
9ae3a8
 - rebased to 1.5.2-2
9ae3a8
 - removing compat_props
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
9ae3a8
index 23002ce..e1bedec 100644
9ae3a8
--- a/hw/i386/pc_piix.c
9ae3a8
+++ b/hw/i386/pc_piix.c
9ae3a8
@@ -812,18 +812,6 @@ static QEMUMachine pc_machine_rhel700 = {
9ae3a8
         /* DEV_NVECTORS_UNSPECIFIED as a uint32_t string */\
9ae3a8
         .value    = stringify(0xFFFFFFFF),\
9ae3a8
     },{\
9ae3a8
-        .driver   = "e1000",\
9ae3a8
-        .property = "romfile",\
9ae3a8
-        .value    = "pxe-e1000.rom",\
9ae3a8
-    },{\
9ae3a8
-        .driver   = "rtl8139",\
9ae3a8
-        .property = "romfile",\
9ae3a8
-        .value    = "pxe-rtl8139.rom",\
9ae3a8
-    },{\
9ae3a8
-        .driver   = "virtio-net-pci",\
9ae3a8
-        .property = "romfile",\
9ae3a8
-        .value    = "pxe-virtio.rom",\
9ae3a8
-    },{\
9ae3a8
         .driver   = "486-" TYPE_X86_CPU,\
9ae3a8
         .property = "model",\
9ae3a8
         .value    = stringify(0),\
9ae3a8
diff --git a/hw/net/e1000.c b/hw/net/e1000.c
9ae3a8
index 661b461..76df2f3 100644
9ae3a8
--- a/hw/net/e1000.c
9ae3a8
+++ b/hw/net/e1000.c
9ae3a8
@@ -1388,7 +1388,7 @@ static void e1000_class_init(ObjectClass *klass, void *data)
9ae3a8
 
9ae3a8
     k->init = pci_e1000_init;
9ae3a8
     k->exit = pci_e1000_uninit;
9ae3a8
-    k->romfile = "efi-e1000.rom";
9ae3a8
+    k->romfile = "pxe-e1000.rom";
9ae3a8
     k->vendor_id = PCI_VENDOR_ID_INTEL;
9ae3a8
     k->device_id = E1000_DEVID;
9ae3a8
     k->revision = 0x03;
9ae3a8
diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c
9ae3a8
index 33ee03e..94d6110 100644
9ae3a8
--- a/hw/net/ne2000.c
9ae3a8
+++ b/hw/net/ne2000.c
9ae3a8
@@ -766,7 +766,7 @@ static void ne2000_class_init(ObjectClass *klass, void *data)
9ae3a8
 
9ae3a8
     k->init = pci_ne2000_init;
9ae3a8
     k->exit = pci_ne2000_exit;
9ae3a8
-    k->romfile = "efi-ne2k_pci.rom",
9ae3a8
+    k->romfile = "pxe-ne2k_pci.rom",
9ae3a8
     k->vendor_id = PCI_VENDOR_ID_REALTEK;
9ae3a8
     k->device_id = PCI_DEVICE_ID_REALTEK_8029;
9ae3a8
     k->class_id = PCI_CLASS_NETWORK_ETHERNET;
9ae3a8
diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c
9ae3a8
index 9df2b87..e07f388 100644
9ae3a8
--- a/hw/net/pcnet-pci.c
9ae3a8
+++ b/hw/net/pcnet-pci.c
9ae3a8
@@ -351,7 +351,7 @@ static void pcnet_class_init(ObjectClass *klass, void *data)
9ae3a8
 
9ae3a8
     k->init = pci_pcnet_init;
9ae3a8
     k->exit = pci_pcnet_uninit;
9ae3a8
-    k->romfile = "efi-pcnet.rom",
9ae3a8
+    k->romfile = "pxe-pcnet.rom",
9ae3a8
     k->vendor_id = PCI_VENDOR_ID_AMD;
9ae3a8
     k->device_id = PCI_DEVICE_ID_AMD_LANCE;
9ae3a8
     k->revision = 0x10;
9ae3a8
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
9ae3a8
index 7993f9f..1e5a679 100644
9ae3a8
--- a/hw/net/rtl8139.c
9ae3a8
+++ b/hw/net/rtl8139.c
9ae3a8
@@ -3533,7 +3533,7 @@ static void rtl8139_class_init(ObjectClass *klass, void *data)
9ae3a8
 
9ae3a8
     k->init = pci_rtl8139_init;
9ae3a8
     k->exit = pci_rtl8139_uninit;
9ae3a8
-    k->romfile = "efi-rtl8139.rom";
9ae3a8
+    k->romfile = "pxe-rtl8139.rom";
9ae3a8
     k->vendor_id = PCI_VENDOR_ID_REALTEK;
9ae3a8
     k->device_id = PCI_DEVICE_ID_REALTEK_8139;
9ae3a8
     k->revision = RTL8139_PCI_REVID; /* >=0x20 is for 8139C+ */
9ae3a8
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
9ae3a8
index 161ade3..d82f6ff 100644
9ae3a8
--- a/hw/virtio/virtio-pci.c
9ae3a8
+++ b/hw/virtio/virtio-pci.c
9ae3a8
@@ -1418,7 +1418,7 @@ static void virtio_net_pci_class_init(ObjectClass *klass, void *data)
9ae3a8
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
9ae3a8
     VirtioPCIClass *vpciklass = VIRTIO_PCI_CLASS(klass);
9ae3a8
 
9ae3a8
-    k->romfile = "efi-virtio.rom";
9ae3a8
+    k->romfile = "pxe-virtio.rom";
9ae3a8
     k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;
9ae3a8
     k->device_id = PCI_DEVICE_ID_VIRTIO_NET;
9ae3a8
     k->revision = VIRTIO_PCI_ABI_VERSION;