-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-10.2
-
None
-
Yes
-
None
-
rhel-virt-networking-core
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
The vf nic created using the IGB emulated nic can not obtain ip address . And guest dmesg print following messages:
[ 1044.927654] igb 0000:05:00.0: 1 VFs allocated
[ 1045.928766] pci 0000:05:10.0: [8086:10ca] type 00 class 0x020000 PCIe Endpoint
[ 1045.929818] igbvf 0000:05:10.0: enabling device (0000 -> 0002)
[ 1046.961272] igbvf 0000:05:10.0: PF still in reset state. Is the PF interface up?
[ 1046.961290] igbvf 0000:05:10.0: Assigning random MAC address.
[ 1047.992404] igbvf 0000:05:10.0: PF still resetting
[ 1047.992653] igbvf 0000:05:10.0: Intel(R) 82576 Virtual Function
[ 1047.992657] igbvf 0000:05:10.0: Address: ea:2a:ad:3f:b9:45
What is the impact of this issue to you?
One test case failed
Please provide the package NVR for which the bug is seen:
kernel-6.12.0-133.el10.x86_64
qemu-kvm-10.1.0-2.el10.x86_64
How reproducible is this bug?:
100%
Steps to reproduce
1. Boot a guest with igb nic
/usr/libexec/qemu-kvm \ -name 'avocado-vt-vm1' \ -sandbox on,elevateprivileges=deny,obsolete=deny,resourcecontrol=deny \ -blockdev '{"node-name": "file_ovmf_code", "driver": "file", "filename": "/usr/share/OVMF/OVMF_CODE.secboot.fd", "auto-read-only": true, "discard": "unmap"}' \ -blockdev '{"node-name": "drive_ovmf_code", "driver": "raw", "read-only": true, "file": "file_ovmf_code"}' \ -blockdev '{"node-name": "file_ovmf_vars", "driver": "file", "filename": "/root/avocado/data/avocado-vt/avocado-vt-vm1_rhel102-64-virtio-scsi-ovmf_qcow2_filesystem_VARS.raw", "auto-read-only": true, "discard": "unmap"}' \ -blockdev '{"node-name": "drive_ovmf_vars", "driver": "raw", "read-only": false, "file": "file_ovmf_vars"}' \ -machine q35,pflash0=drive_ovmf_code,pflash1=drive_ovmf_vars,memory-backend=mem-machine_mem \ -device '{"id": "pcie-root-port-0", "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x1", "chassis": 1}' \ -device '{"id": "pcie-pci-bridge-0", "driver": "pcie-pci-bridge", "addr": "0x0", "bus": "pcie-root-port-0"}' \ -nodefaults \ -device '{"driver": "VGA", "bus": "pcie.0", "addr": "0x2"}' \ -m 125952 \ -object '{"size": 132070244352, "id": "mem-machine_mem", "qom-type": "memory-backend-ram"}' \ -smp 48,maxcpus=48,cores=24,threads=1,dies=1,sockets=2 \ -cpu 'SapphireRapids',dtes64=on,vmx=on,pdcm=on,hypervisor=on,ds=on,ss=on,tsc-adjust=on,fdp-excptn-only=on,zero-fcs-fds=on,waitpkg=on,cldemote=on,movdiri=on,movdir64b=on,md-clear=on,stibp=on,flush-l1d=on,intel-psfd=on,ipred-ctrl=on,rrsba-ctrl=on,bhi-ctrl=on,ibpb=on,ibrs=on,amd-stibp=on,amd-ssbd=on,tsx-ctrl=on,sbdr-ssdp-no=on,fbsdp-no=on,psdp-no=on,gds-no=on,rfds-no=on,vmx-ins-outs=on,vmx-true-ctls=on,vmx-store-lma=on,vmx-activity-hlt=on,vmx-activity-wait-sipi=on,vmx-vmwrite-vmexit-fields=on,vmx-apicv-xapic=on,vmx-ept=on,vmx-desc-exit=on,vmx-rdtscp-exit=on,vmx-apicv-x2apic=on,vmx-vpid=on,vmx-wbinvd-exit=on,vmx-unrestricted-guest=on,vmx-apicv-register=on,vmx-apicv-vid=on,vmx-rdrand-exit=on,vmx-invpcid-exit=on,vmx-vmfunc=on,vmx-shadow-vmcs=on,vmx-rdseed-exit=on,vmx-pml=on,vmx-xsaves=on,vmx-tsc-scaling=on,vmx-enable-user-wait-pause=on,vmx-ept-execonly=on,vmx-page-walk-4=on,vmx-page-walk-5=on,vmx-ept-2mb=on,vmx-ept-1gb=on,vmx-invept=on,vmx-eptad=on,vmx-invept-single-context=on,vmx-invept-all-context=on,vmx-invvpid=on,vmx-invvpid-single-addr=on,vmx-invvpid-all-context=on,vmx-invept-single-context-noglobals=on,vmx-intr-exit=on,vmx-nmi-exit=on,vmx-vnmi=on,vmx-preemption-timer=on,vmx-posted-intr=on,vmx-vintr-pending=on,vmx-tsc-offset=on,vmx-hlt-exit=on,vmx-invlpg-exit=on,vmx-mwait-exit=on,vmx-rdpmc-exit=on,vmx-rdtsc-exit=on,vmx-cr3-load-noexit=on,vmx-cr3-store-noexit=on,vmx-cr8-load-exit=on,vmx-cr8-store-exit=on,vmx-flexpriority=on,vmx-vnmi-pending=on,vmx-movdr-exit=on,vmx-io-exit=on,vmx-io-bitmap=on,vmx-mtf=on,vmx-msr-bitmap=on,vmx-monitor-exit=on,vmx-pause-exit=on,vmx-secondary-ctls=on,vmx-exit-nosave-debugctl=on,vmx-exit-load-perf-global-ctrl=on,vmx-exit-ack-intr=on,vmx-exit-save-pat=on,vmx-exit-load-pat=on,vmx-exit-save-efer=on,vmx-exit-load-efer=on,vmx-exit-save-preemption-timer=on,vmx-entry-noload-debugctl=on,vmx-entry-ia32e-mode=on,vmx-entry-load-perf-global-ctrl=on,vmx-entry-load-pat=on,vmx-entry-load-efer=on,vmx-eptp-switching=on,hle=off,rtm=off,taa-no=off,kvm_pv_unhalt=on \ -device '{"id": "pcie-root-port-1", "port": 1, "driver": "pcie-root-port", "addr": "0x1.0x1", "bus": "pcie.0", "chassis": 2}' \ -device '{"driver": "qemu-xhci", "id": "usb1", "bus": "pcie-root-port-1", "addr": "0x0"}' \ -device '{"driver": "usb-tablet", "id": "usb-tablet1", "bus": "usb1.0", "port": "1"}' \ -device '{"id": "pcie-root-port-2", "port": 2, "driver": "pcie-root-port", "addr": "0x1.0x2", "bus": "pcie.0", "chassis": 3}' \ -device '{"id": "virtio_scsi_pci0", "driver": "virtio-scsi-pci", "bus": "pcie-root-port-2", "addr": "0x0"}' \ -blockdev '{"node-name": "file_image1", "driver": "file", "auto-read-only": true, "discard": "unmap", "aio": "threads", "filename": "/home/kvm_autotest_root/images/rhel102-64-virtio-scsi-ovmf.qcow2", "cache": {"direct": true, "no-flush": false}}' \ -blockdev '{"node-name": "drive_image1", "driver": "qcow2", "read-only": false, "cache": {"direct": true, "no-flush": false}, "file": "file_image1"}' \ -device '{"driver": "scsi-hd", "id": "image1", "drive": "drive_image1", "write-cache": "on"}' \ -device '{"id": "pcie-root-port-3", "port": 3, "driver": "pcie-root-port", "addr": "0x1.0x3", "bus": "pcie.0", "chassis": 4}' \ -device '{"driver": "igb", "mac": "9a:43:49:e3:a5:15", "id": "idv5W6Dp", "netdev": "iduI540n", "bus": "pcie-root-port-3", "addr": "0x0"}' \ -netdev '{"id": "iduI540n", "type": "tap"}' \ -vnc :0 \ -rtc base=utc,clock=host,driftfix=slew \ -boot menu=off,order=cdn,once=c,strict=off \ -enable-kvm \ -device '{"id": "pcie_extra_root_port_0", "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x3", "chassis": 5}' \ -monitor stdio \
2. Create vf inside guest
lspci |grep Eth 05:00.0 echo 1 > /sys/bus/pci/devices/0000:05:00.0/sriov_numvfs
3. Guest dmesg print following messages and dhcpcd obtain ip address failed:
[ 1044.927654] igb 0000:05:00.0: 1 VFs allocated [ 1045.928766] pci 0000:05:10.0: [8086:10ca] type 00 class 0x020000 PCIe Endpoint [ 1045.929818] igbvf 0000:05:10.0: enabling device (0000 -> 0002) [ 1046.961272] igbvf 0000:05:10.0: PF still in reset state. Is the PF interface up? [ 1046.961290] igbvf 0000:05:10.0: Assigning random MAC address. [ 1047.992404] igbvf 0000:05:10.0: PF still resetting [ 1047.992653] igbvf 0000:05:10.0: Intel(R) 82576 Virtual Function [ 1047.992657] igbvf 0000:05:10.0: Address: ea:2a:ad:3f:b9:45 [ 1047.993388] igb 0000:05:00.0 eth0: igb: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX [root@localhost ~]# dhcpcd eth1 dhcpcd-10.0.6 starting eth1: waiting for carrier timed out dhcpcd exited
Expected results
VF can got a ip address and guest dmesg should have not like this message " [ 1047.992404] igbvf 0000:05:10.0: PF still resetting"
Actual results
The vf nic created using the IGB emulated nic can not obtain ip address . And guest dmesg print error messages.
Additional info:
RHEL.9.8 qemu-kvm works well: qemu-kvm-9.1.0-28.el9.x86_64