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