Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
I have a pci controller topology in domain configuration, like this
pxb-pcie -- root-port -- upstream-port -- downstream-port. I attach
1 nic with either rtl8139 or e1000 to downstream port. I cannot acquire ip address in guest. Nic works well if using virtio model
Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.6.0-15.el7.x86_64
libvirt-2.0.0-3.el7.x86_64
3.10.0-481.el7.x86_64 for guest
How reproducible:
100%
Steps to Reproduce:
1. start vm with pxb-pcie -- root-port -- upstream-port -- downstream-port.
/usr/libexec/qemu-kvm -machine q35,accel=kvm,usb=off \
-smp 4,maxcpus=4,cores=2,threads=2,sockets=1 \
-cpu SandyBridge,enforce \
-m 2G \
-boot strict=on \
-device i82801b11-bridge,id=pci.1,bus=pcie.0,addr=0x1e \
-device pci-bridge,chassis_nr=2,id=pci.2,bus=pci.1,addr=0x0 \
-device pxb-pcie,id=pci.3,bus=pcie.0,bus_nr=10 \
-device ioh3420,bus=pci.3,id=pci.4,slot=1 \
-device x3130-upstream,bus=pci.4,id=pci.5 \
-device xio3130-downstream,bus=pci.5,id=pci.6,chassis=6 \
-netdev tap,id=macvtap0,fd=23 \
-device rtl8139,netdev=macvtap0,id=net0,bus=pci.6,mac=52:54:00:ee:0e:23 23<>/dev/tap23 \
-drive file=/mnt/nfs2/RHEL-7.3-latest.qcow2,format=qcow2,if=none,id=drive-virtio-disk0 \
-device virtio-blk-pci,scsi=off,bus=pci.2,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \
-monitor stdio -spice port=5931,disable-ticketing -boot menu=on \
-qmp tcp:0:6666,server,nowait
2.get ip addr in guest
guest]# ifconfig
enp13s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 52:54:00:ee:0e:26 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 289 overruns 0 carrier 0 collisions 0
guest]# dhclient -d
Internet Systems Consortium DHCP Client 4.2.5
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp13s0/52:54:00:ee:0e:26
Sending on LPF/enp13s0/52:54:00:ee:0e:26
Sending on Socket/fallback
DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 8 (xid=0x12f12a51)
DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 9 (xid=0x12f12a51)
DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 9 (xid=0x12f12a51)
DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 10 (xid=0x12f12a51)
DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 9 (xid=0x12f12a51)
DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 15 (xid=0x12f12a51)
DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 1 (xid=0x12f12a51)
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
3.
Actual results:
virtio model nic: nic works normally
rtl8139, e1000 model nic: cannot get ip addr
Expected results:
Nic works well
Additional info:
Checked it without pxb-pcie devices, rtl8139 worked correctly
q35 machine type:
root port -- upstream port --downstream port --rtl8139
pc machine type with rtl8139
As QE understanding, rtl8139 should connected through i82801b11-bridge because the nic device is too old for q35 machine type.So I tested it with following scenario, but rtl8139 didn't be found (bug1358665).
i82801b11-bridge -- pci bridge --rtl8139
pxb-pcie -- i82801b11-bridge -- pci bridge --rtl8139
Thanks
Jing Zhao
(In reply to jingzhao from comment #2)
> As QE understanding, rtl8139 should connected through i82801b11-bridge
> because the nic device is too old for q35 machine type.So I tested it with
> following scenario, but rtl8139 didn't be found (bug1358665).
>
> i82801b11-bridge -- pci bridge --rtl8139
>
> pxb-pcie -- i82801b11-bridge -- pci bridge --rtl8139
>
>
> Thanks
> Jing Zhao
Hi,
Does it happen if the no pxb-pcie: pcie.0 - i82801b11-bridge -- pci bridge --rtl8139?
Does it happen on i440fx : pci bridge --rtl8139?
Thanks,
Marcel
(In reply to Marcel Apfelbaum from comment #4)
> (In reply to jingzhao from comment #2)
> > As QE understanding, rtl8139 should connected through i82801b11-bridge
> > because the nic device is too old for q35 machine type.So I tested it with
> > following scenario, but rtl8139 didn't be found (bug1358665).
> >
> > i82801b11-bridge -- pci bridge --rtl8139
> >
> > pxb-pcie -- i82801b11-bridge -- pci bridge --rtl8139
> >
> >
> > Thanks
> > Jing Zhao
>
> Hi,
>
> Does it happen if the no pxb-pcie: pcie.0 - i82801b11-bridge -- pci bridge
> --rtl8139?
> Does it happen on i440fx : pci bridge --rtl8139?
>
> Thanks,
> Marcel
Sorry, I didn't see comment #2.
Thanks,
Marcel
(In reply to Marcel Apfelbaum from comment #6)
> Hi,
>
> Thank you for your fast response!
> Last question, will it happen with virtio-nic-pci?
>
> Thanks,
> Marcel
Hi Marcel
Checked it with virtio-net-pci, didn't hit the issue.
Thanks
Jing Zhao
Description of problem: I have a pci controller topology in domain configuration, like this pxb-pcie -- root-port -- upstream-port -- downstream-port. I attach 1 nic with either rtl8139 or e1000 to downstream port. I cannot acquire ip address in guest. Nic works well if using virtio model Version-Release number of selected component (if applicable): qemu-kvm-rhev-2.6.0-15.el7.x86_64 libvirt-2.0.0-3.el7.x86_64 3.10.0-481.el7.x86_64 for guest How reproducible: 100% Steps to Reproduce: 1. start vm with pxb-pcie -- root-port -- upstream-port -- downstream-port. /usr/libexec/qemu-kvm -machine q35,accel=kvm,usb=off \ -smp 4,maxcpus=4,cores=2,threads=2,sockets=1 \ -cpu SandyBridge,enforce \ -m 2G \ -boot strict=on \ -device i82801b11-bridge,id=pci.1,bus=pcie.0,addr=0x1e \ -device pci-bridge,chassis_nr=2,id=pci.2,bus=pci.1,addr=0x0 \ -device pxb-pcie,id=pci.3,bus=pcie.0,bus_nr=10 \ -device ioh3420,bus=pci.3,id=pci.4,slot=1 \ -device x3130-upstream,bus=pci.4,id=pci.5 \ -device xio3130-downstream,bus=pci.5,id=pci.6,chassis=6 \ -netdev tap,id=macvtap0,fd=23 \ -device rtl8139,netdev=macvtap0,id=net0,bus=pci.6,mac=52:54:00:ee:0e:23 23<>/dev/tap23 \ -drive file=/mnt/nfs2/RHEL-7.3-latest.qcow2,format=qcow2,if=none,id=drive-virtio-disk0 \ -device virtio-blk-pci,scsi=off,bus=pci.2,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \ -monitor stdio -spice port=5931,disable-ticketing -boot menu=on \ -qmp tcp:0:6666,server,nowait 2.get ip addr in guest guest]# ifconfig enp13s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether 52:54:00:ee:0e:26 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 289 overruns 0 carrier 0 collisions 0 guest]# dhclient -d Internet Systems Consortium DHCP Client 4.2.5 Copyright 2004-2013 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/enp13s0/52:54:00:ee:0e:26 Sending on LPF/enp13s0/52:54:00:ee:0e:26 Sending on Socket/fallback DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 8 (xid=0x12f12a51) DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 9 (xid=0x12f12a51) DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 9 (xid=0x12f12a51) DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 10 (xid=0x12f12a51) DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 9 (xid=0x12f12a51) DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 15 (xid=0x12f12a51) DHCPDISCOVER on enp13s0 to 255.255.255.255 port 67 interval 1 (xid=0x12f12a51) No DHCPOFFERS received. No working leases in persistent database - sleeping. 3. Actual results: virtio model nic: nic works normally rtl8139, e1000 model nic: cannot get ip addr Expected results: Nic works well Additional info: