From d70e85da352746423e27f6e9f6523cace73e6d4d Mon Sep 17 00:00:00 2001 From: Miroslav Rezanina Date: Mon, 4 Aug 2025 03:41:36 -0400 Subject: [PATCH] * Mon Aug 04 2025 Miroslav Rezanina - 10.0.0-9 - kvm-Declare-rtl8139-as-deprecated.patch [RHEL-45624] - Resolves: RHEL-45624 (Deprecate rtl8139 NIC in QEMU) --- kvm-Declare-rtl8139-as-deprecated.patch | 56 +++++++++++++++++++++++++ qemu-kvm.spec | 9 +++- 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 kvm-Declare-rtl8139-as-deprecated.patch diff --git a/kvm-Declare-rtl8139-as-deprecated.patch b/kvm-Declare-rtl8139-as-deprecated.patch new file mode 100644 index 0000000..71df389 --- /dev/null +++ b/kvm-Declare-rtl8139-as-deprecated.patch @@ -0,0 +1,56 @@ +From e4a324ce1f4ffca214b6d5b5681b9eca630707bf Mon Sep 17 00:00:00 2001 +From: Laurent Vivier +Date: Tue, 29 Jul 2025 17:00:50 +0200 +Subject: [PATCH] Declare rtl8139 as deprecated +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +RH-Author: Laurent Vivier +RH-MergeRequest: 396: Declare rtl8139 as deprecated +RH-Jira: RHEL-45624 +RH-Acked-by: Eugenio Pérez +RH-Acked-by: Thomas Huth +RH-Acked-by: Cindy Lu +RH-Commit: [1/1] d44c1b68b59f1442b01c84b43e07aed5f4d254bc (lvivier/qemu-kvm-centos) + +JIRA: https://issues.redhat.com/browse/RHEL-45624 +Upstream: RHEL ONLY + +The e1000+e1000e pair should be more than sufficient for the +"ancient non-virtio NIC" use case. + +There does not appear to be any compelling reason to continue supporting +the rtl8139 NIC, so we should deprecate it in RHEL-10, with a view to +deleting it in RHEL-11. + +Signed-off-by: Laurent Vivier +--- + hw/net/rtl8139.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c +index 31a6956252..7609006394 100644 +--- a/hw/net/rtl8139.c ++++ b/hw/net/rtl8139.c +@@ -57,6 +57,7 @@ + #include "system/dma.h" + #include "qemu/module.h" + #include "qemu/timer.h" ++#include "qemu/error-report.h" + #include "net/net.h" + #include "net/eth.h" + #include "system/system.h" +@@ -3364,6 +3365,9 @@ static void pci_rtl8139_realize(PCIDevice *dev, Error **errp) + DeviceState *d = DEVICE(dev); + uint8_t *pci_conf; + ++ warn_report("'rtl8139' is deprecated, " ++ "please use a different Network Interface Card"); ++ + pci_conf = dev->config; + pci_conf[PCI_INTERRUPT_PIN] = 1; /* interrupt pin A */ + /* TODO: start of capability list, but no capability +-- +2.39.3 + diff --git a/qemu-kvm.spec b/qemu-kvm.spec index adc2f66..bed3231 100644 --- a/qemu-kvm.spec +++ b/qemu-kvm.spec @@ -143,7 +143,7 @@ Obsoletes: %{name}-block-ssh <= %{epoch}:%{version} \ Summary: QEMU is a machine emulator and virtualizer Name: qemu-kvm Version: 10.0.0 -Release: 8%{?rcrel}%{?dist}%{?cc_suffix} +Release: 9%{?rcrel}%{?dist}%{?cc_suffix} # Epoch because we pushed a qemu-1.0 package. AIUI this can't ever be dropped # Epoch 15 used for RHEL 8 # Epoch 17 used for RHEL 9 (due to release versioning offset in RHEL 8.5) @@ -414,6 +414,8 @@ Patch125: kvm-block-mark-bdrv_drained_begin-and-friends-as-GRAPH_U.patch Patch126: kvm-iotests-graph-changes-while-io-remove-image-file-aft.patch # For RHEL-88561 - qemu graph deadlock during job-dismiss Patch127: kvm-iotests-graph-changes-while-io-add-test-case-with-re.patch +# For RHEL-45624 - Deprecate rtl8139 NIC in QEMU +Patch128: kvm-Declare-rtl8139-as-deprecated.patch %if %{have_clang} BuildRequires: clang @@ -1496,6 +1498,11 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \ %endif %changelog +* Mon Aug 04 2025 Miroslav Rezanina - 10.0.0-9 +- kvm-Declare-rtl8139-as-deprecated.patch [RHEL-45624] +- Resolves: RHEL-45624 + (Deprecate rtl8139 NIC in QEMU) + * Mon Jul 28 2025 Miroslav Rezanina - 10.0.0-8 - kvm-migration-multifd-move-macros-to-multifd-header.patch [RHEL-59697] - kvm-migration-refactor-channel-discovery-mechanism.patch [RHEL-59697]