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.
Bug 2127410 - The nfv domain is hung during the startup
Summary: The nfv domain is hung during the startup
Keywords:
Status: CLOSED DUPLICATE of bug 2126095
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: 9.2
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Yanghang Liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-16 08:48 UTC by Yanghang Liu
Modified: 2022-09-22 09:59 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-22 09:57:21 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-134155 0 None None None 2022-09-16 08:52:33 UTC

Description Yanghang Liu 2022-09-16 08:48:30 UTC
Description of problem:
The nfv domain will be hung during the startup

Version-Release number of selected component (if applicable):
host:
qemu-kvm-7.1.0-1.el9.x86_64
5.14.0-162.1.1.el9.x86_64


How reproducible:
100%

Steps to Reproduce:
1. prepare a nfv domain and then start this domain

# virsh dumpxml $domain
<domain type='kvm' id='1'>
  <name>$domain</name>
  <uuid>5cc52bbc-33c4-11ed-9e0f-20040fec000c</uuid>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <hugepages>
      <page size='1048576' unit='KiB'/>
    </hugepages>
    <locked/>
  </memoryBacking>
  <vcpu placement='static'>10</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='31'/>
    <vcpupin vcpu='1' cpuset='29'/>
    <vcpupin vcpu='2' cpuset='27'/>
    <vcpupin vcpu='3' cpuset='25'/>
    <vcpupin vcpu='4' cpuset='23'/>
    <vcpupin vcpu='5' cpuset='21'/>
    <vcpupin vcpu='6' cpuset='19'/>
    <vcpupin vcpu='7' cpuset='17'/>
    <vcpupin vcpu='8' cpuset='15'/>
    <vcpupin vcpu='9' cpuset='13'/>
    <emulatorpin cpuset='5,7,9,11'/>
  </cputune>
  <numatune>
    <memory mode='strict' nodeset='0'/>
    <memnode cellid='0' mode='strict' nodeset='0'/>
  </numatune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-rhel9.0.0'>hvm</type>
    <loader readonly='yes' secure='yes' type='pflash'>/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd</loader>
    <nvram template='/usr/share/edk2/ovmf/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/rhel9.1_VARS.fd</nvram>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <pmu state='off'/>
    <vmport state='off'/>
    <smm state='on'/>
    <ioapic driver='qemu'/>
  </features>
  <cpu mode='custom' match='exact' check='full'>
    <model fallback='forbid'>Skylake-Server-IBRS</model>
    <vendor>Intel</vendor>
    <topology sockets='5' dies='1' cores='1' threads='2'/>
    <feature policy='require' name='ss'/>
    <feature policy='require' name='vmx'/>
    <feature policy='require' name='pdcm'/>
    <feature policy='require' name='hypervisor'/>
    <feature policy='require' name='tsc_adjust'/>
    <feature policy='require' name='clflushopt'/>
    <feature policy='require' name='umip'/>
    <feature policy='require' name='pku'/>
    <feature policy='require' name='md-clear'/>
    <feature policy='require' name='stibp'/>
    <feature policy='require' name='arch-capabilities'/>
    <feature policy='require' name='ssbd'/>
    <feature policy='require' name='xsaves'/>
    <feature policy='require' name='ibpb'/>
    <feature policy='require' name='ibrs'/>
    <feature policy='require' name='amd-stibp'/>
    <feature policy='require' name='amd-ssbd'/>
    <feature policy='require' name='rsba'/>
    <feature policy='require' name='skip-l1dfl-vmentry'/>
    <feature policy='require' name='pschange-mc-no'/>
    <feature policy='require' name='tsc-deadline'/>
    <feature policy='disable' name='mpx'/>
    <numa>
      <cell id='0' cpus='0-9' memory='8388608' unit='KiB' memAccess='shared'/>
    </numa>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none' io='threads' iommu='on' ats='on'/>
      <source file='/home/images_nfv-virt-rt-kvm/RHEL-9.2.0-20220915.0-x86_64-ovmf.qcow2' index='1'/>
      <backingStore/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='none'>
      <alias name='usb'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x12'/>
      <alias name='pci.3'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x13'/>
      <alias name='pci.4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0x14'/>
      <alias name='pci.5'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0x15'/>
      <alias name='pci.6'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
    </controller>
    <controller type='pci' index='7' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='7' port='0x16'/>
      <alias name='pci.7'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <interface type='bridge'>
      <mac address='88:66:da:5f:dd:11'/>
      <source bridge='switch'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <driver name='vhost' iommu='on' ats='on'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/1'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/1'>
      <source path='/dev/pts/1'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='mouse' bus='ps2'>
      <alias name='input0'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input1'/>
    </input>
    <tpm model='tpm-crb'>
      <backend type='emulator' version='2.0'/>
      <alias name='tpm0'/>
    </tpm>
    <audio id='1' type='none'/>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
      <driver iommu='on' ats='on'/>
    </memballoon>
    <iommu model='intel'>
      <driver intremap='on' caching_mode='on' iotlb='on'/>
    </iommu>
  </devices>
  <seclabel type='dynamic' model='selinux' relabel='yes'>
    <label>system_u:system_r:svirt_t:s0:c142,c196</label>
    <imagelabel>system_u:object_r:svirt_image_t:s0:c142,c196</imagelabel>
  </seclabel>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+107</label>
    <imagelabel>+0:+107</imagelabel>
  </seclabel>
</domain>

# virsh start $domain
 
2. check the nfv domain status

The domain can not be started up successfully

# virsh console $domain
...
Welcome to Red Hat Enterprise Linux 9.2 Beta (Plow) dracut-057-13.git20220816.el9 (Initramfs)!
[  OK  ] Created slice Slice /system/systemd-hibernate-resume.
[    1.889436] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[    1.891984] systemd[1]: Reached target Initrd /usr File System.
[  OK  ] Reached target Initrd /usr File System.
[    1.893932] systemd[1]: Reached target Path Units.
[  OK  ] Reached target Path Units.
[    1.895537] systemd[1]: Reached target Slice Units.
[  OK  ] Reached target Slice Units.
[    1.897156] systemd[1]: Reached target Swaps.
[  OK  ] Reached target Swaps.
[    1.898626] systemd[1]: Reached target Timer Units.
[  OK  ] Reached target Timer Units.
[    1.900338] systemd[1]: Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[    1.902545] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    1.904620] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    1.906399] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    1.908287] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    1.910045] systemd[1]: Reached target Socket Units.
[  OK  ] Reached target Socket Units.
[    1.912764] systemd[1]: Starting Create List of Static Device Nodes...
         Starting Create List of Static Device Nodes...
[    1.916532] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    1.919248] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    1.921730] systemd[1]: Starting Create System Users...
         Starting Create System Users...
[    1.924178] systemd[1]: Starting Setup Virtual Console...
         Starting Setup Virtual Console...
[    1.927408] systemd[1]: Finished Create List of Static Device Nodes.
[  OK  ] Finished Create List of Static Device Nodes.
[    1.929849] systemd[1]: Finished Load Kernel Modules.
[  OK  ] Finished Load Kernel Modules.
[    1.934525] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[    1.939663] systemd[1]: Finished Create System Users.
[  OK  ] Finished Create System Users.
[    1.942358] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[    1.944705] systemd[1]: Finished Apply Kernel Variables.
[  OK  ] Finished Apply Kernel Variables.
[    1.949829] systemd[1]: Finished Create Static Device Nodes in /dev.
[  OK  ] Finished Create Static Device Nodes in /dev.
[    1.967979] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
[  OK  ] Finished Setup Virtual Console.
         Starting dracut cmdline hook...
[  OK  ] Finished dracut cmdline hook.
         Starting dracut pre-udev hook...
[    2.169413] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
[    2.171615] device-mapper: uevent: version 1.0.3
[    2.172568] device-mapper: ioctl: 4.46.0-ioctl (2022-02-22) initialised: dm-devel
[  OK  ] Finished dracut pre-udev hook.
         Starting Rule-based Manage…for Device Events and Files...
[  OK  ] Started Rule-based Manager for Device Events and Files.
         Starting Coldplug All udev Devices...
[  OK  ] Finished Coldplug All udev Devices.
[  OK  ] Reached target Network.
         Starting dracut initqueue hook...
[    2.326457] virtio_blk virtio1: [vda] 20971520 512-byte logical blocks (10.7 GB/10.0 GiB)
[    2.334004]  vda: vda1 vda2 vda3
[    2.349861] ACPI: \_SB_.GSIA: Enabled at IRQ 16
[    2.351787] ahci 0000:00:1f.2: AHCI 0001.0000 32 slots 6 ports 1.5 Gbps 0x3f impl SATA mode
[    2.353327] ahci 0000:00:1f.2: flags: 64bit ncq only 
[    2.355716] scsi host0: ahci
[    2.356468] scsi host1: ahci
[    2.358185] scsi host2: ahci
[    2.358887] scsi host3: ahci
[    2.359912] scsi host4: ahci
[    2.360765] scsi host5: ahci
[    2.361324] ata1: SATA max UDMA/133 abar m4096@0xc0e40000 port 0xc0e40100 irq 46
[    2.362525] ata2: SATA max UDMA/133 abar m4096@0xc0e40000 port 0xc0e40180 irq 46
[    2.363807] ata3: SATA max UDMA/133 abar m4096@0xc0e40000 port 0xc0e40200 irq 46
[    2.363911] virtio_net virtio0 enp1s0: renamed from eth0
[    2.365244] ata4: SATA max UDMA/133 abar m4096@0xc0e40000 port 0xc0e40280 irq 46
[    2.365252] ata5: SATA max UDMA/133 abar m4096@0xc0e40000 port 0xc0e40300 irq 46
[    2.365260] ata6: SATA max UDMA/133 abar m4096@0xc0e40000 port 0xc0e40380 irq 46
[    2.678872] ata4: SATA link down (SStatus 0 SControl 300)
[    2.679948] ata3: SATA link down (SStatus 0 SControl 300)
[    2.681048] ata6: SATA link down (SStatus 0 SControl 300)
[    2.682114] ata1: SATA link down (SStatus 0 SControl 300)
[    2.683160] ata5: SATA link down (SStatus 0 SControl 300)
[    2.684232] ata2: SATA link down (SStatus 0 SControl 300) <--- The nfv domain is hung here for a long time

[  247.142617] INFO: task systemd-udevd:554 blocked for more than 122 seconds.
[  247.143810]       Not tainted 5.14.0-162.1.1.el9.x86_64 #1
[  247.144723] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  247.146006] task:systemd-udevd   state:D stack:    0 pid:  554 ppid:   505 flags:0x00004006
[  247.147390] Call Trace:
[  247.147807]  __schedule+0x206/0x580
[  247.148406]  ? submit_bio_noacct_nocheck+0xcf/0x130
[  247.149225]  schedule+0x43/0xa0
[  247.149750]  io_schedule+0x42/0x70
[  247.150325]  folio_wait_bit_common+0x147/0x380
[  247.151075]  ? file_fdatawait_range+0x20/0x20
[  247.151796]  do_read_cache_folio+0x13c/0x200
[  247.152507]  read_cache_page+0x14/0x60
[  247.153137]  read_part_sector+0x34/0xf0
[  247.153773]  read_lba+0xfd/0x210
[  247.154318]  ? kmem_cache_alloc_trace+0x174/0x2f0
[  247.155104]  find_valid_gpt.constprop.0+0xd5/0x540
[  247.155892]  ? vmap_small_pages_range_noflush+0x1d5/0x260
[  247.156790]  efi_partition+0x80/0x390
[  247.157405]  ? vsnprintf+0x3a4/0x560
[  247.158011]  ? snprintf+0x49/0x70
[  247.158563]  ? find_valid_gpt.constprop.0+0x540/0x540
[  247.159404]  check_partition+0x100/0x1d0
[  247.160060]  bdev_disk_changed.part.0+0xa3/0x1f0
[  247.160819]  blkdev_get_whole+0x74/0x90
[  247.161466]  blkdev_get_by_dev.part.0+0x19e/0x2c0
[  247.162250]  disk_scan_partitions+0x3c/0x70
[  247.162952]  device_add_disk+0x34e/0x360
[  247.163599]  virtblk_probe+0x478/0x79d [virtio_blk]
[  247.164413]  virtio_dev_probe+0x162/0x220
[  247.165087]  really_probe+0x19d/0x380
[  247.165694]  __driver_probe_device+0x105/0x180
[  247.166434]  driver_probe_device+0x1e/0x90
[  247.167119]  __driver_attach+0xc4/0x1d0
[  247.167751]  ? __device_attach_driver+0xe0/0xe0
[  247.168504]  ? __device_attach_driver+0xe0/0xe0
[  247.169253]  bus_for_each_dev+0x75/0xc0
[  247.169887]  bus_add_driver+0x14d/0x1f0
[  247.170531]  driver_register+0x8f/0xf0
[  247.171185]  ? 0xffffffffc051e000
[  247.171738]  virtio_blk_init+0x52/0x1000 [virtio_blk]
[  247.172576]  do_one_initcall+0x41/0x200
[  247.173224]  ? kmem_cache_alloc_trace+0x174/0x2f0
[  247.174008]  do_init_module+0x5c/0x270
[  247.174631]  __do_sys_init_module+0x12e/0x1b0
[  247.175361]  do_syscall_64+0x59/0x90
[  247.175964]  ? exc_page_fault+0x62/0x150
[  247.176614]  ? __context_tracking_enter+0x1b/0xb0
[  247.177399]  entry_SYSCALL_64_after_hwframe+0x63/0xcd
[  247.178241] RIP: 0033:0x7f9b9a84d69e
[  247.178833] RSP: 002b:00007fffa19df7d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[  247.180070] RAX: ffffffffffffffda RBX: 000055d1822a24a0 RCX: 00007f9b9a84d69e
[  247.181240] RDX: 00007f9b9aa7e32c RSI: 000000000000d128 RDI: 000055d1822accb0
[  247.182406] RBP: 000055d1822accb0 R08: 000055d18229bc00 R09: 000000000000c010
[  247.183579] R10: 0000000000000005 R11: 0000000000000246 R12: 00007f9b9aa7e32c
[  247.184747] R13: 000055d1822a3950 R14: 0000000000000007 R15: 000055d18229b350




Actual results:
The above nfv domain is hung during the startup

Expected results:
The above nfv domain can be started successfully

Additional info:
(1)
related qemu-kvm cmd line:
/usr/libexec/qemu-kvm \
-name guest=rhel9.1,debug-threads=on \
-S \
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-1-rhel9.1/master-key.aes"}' \
-blockdev '{"driver":"file","filename":"/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \
-blockdev '{"driver":"file","filename":"/var/lib/libvirt/qemu/nvram/rhel9.1_VARS.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
-machine pc-q35-rhel9.0.0,usb=off,vmport=off,smm=on,dump-guest-core=off,kernel_irqchip=split,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
-accel kvm \
-cpu Skylake-Server-IBRS,ss=on,vmx=on,pdcm=on,hypervisor=on,tsc-adjust=on,clflushopt=on,umip=on,pku=on,md-clear=on,stibp=on,arch-capabilities=on,ssbd=on,xsaves=on,ibpb=on,ibrs=on,amd-stibp=on,amd-ssbd=on,rsba=on,skip-l1dfl-vmentry=on,pschange-mc-no=on,tsc-deadline=on,pmu=off \
-global driver=cfi.pflash01,property=secure,value=on \
-m 8192 \
-overcommit mem-lock=on \
-smp 10,sockets=5,dies=1,cores=1,threads=2 \
-object '{"qom-type":"memory-backend-file","id":"ram-node0","mem-path":"/dev/hugepages/libvirt/qemu/1-rhel9.1","share":true,"prealloc":true,"size":8589934592,"host-nodes":[0],"policy":"bind"}' \
-numa node,nodeid=0,cpus=0-9,memdev=ram-node0 \
-uuid 5cc52bbc-33c4-11ed-9e0f-20040fec000c \
-display none \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=22,server=on,wait=off \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=utc,driftfix=slew \
-global kvm-pit.lost_tick_policy=delay \
-no-hpet \
-no-shutdown \
-boot strict=on \
-device '{"driver":"intel-iommu","intremap":"on","caching-mode":true,"device-iotlb":true}' \
-device '{"driver":"pcie-root-port","port":16,"chassis":1,"id":"pci.1","bus":"pcie.0","multifunction":true,"addr":"0x2"}' \
-device '{"driver":"pcie-root-port","port":17,"chassis":2,"id":"pci.2","bus":"pcie.0","addr":"0x2.0x1"}' \
-device '{"driver":"pcie-root-port","port":18,"chassis":3,"id":"pci.3","bus":"pcie.0","addr":"0x2.0x2"}' \
-device '{"driver":"pcie-root-port","port":19,"chassis":4,"id":"pci.4","bus":"pcie.0","addr":"0x2.0x3"}' \
-device '{"driver":"pcie-root-port","port":20,"chassis":5,"id":"pci.5","bus":"pcie.0","addr":"0x2.0x4"}' \
-device '{"driver":"pcie-root-port","port":21,"chassis":6,"id":"pci.6","bus":"pcie.0","addr":"0x2.0x5"}' \
-device '{"driver":"pcie-root-port","port":22,"chassis":7,"id":"pci.7","bus":"pcie.0","addr":"0x2.0x6"}' \
-blockdev '{"driver":"file","filename":"/home/images_nfv-virt-rt-kvm/RHEL-9.2.0-20220915.0-x86_64-ovmf.qcow2","aio":"threads","node-name":"libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"qcow2","file":"libvirt-1-storage","backing":null}' \
-device '{"driver":"virtio-blk-pci","iommu_platform":true,"ats":true,"bus":"pci.2","addr":"0x0","drive":"libvirt-1-format","id":"virtio-disk0","bootindex":1,"write-cache":"on"}' \
-netdev tap,fd=23,vhost=on,vhostfd=25,id=hostnet0 \
-device '{"driver":"virtio-net-pci","iommu_platform":true,"ats":true,"netdev":"hostnet0","id":"net0","mac":"88:66:da:5f:dd:11","bus":"pci.1","addr":"0x0"}' \
-chardev pty,id=charserial0 \
-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
-chardev socket,id=chrtpm,path=/run/libvirt/qemu/swtpm/1-rhel9.1-swtpm.sock \
-tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \
-device '{"driver":"tpm-crb","tpmdev":"tpm-tpm0","id":"tpm0"}' \
-audiodev '{"id":"audio1","driver":"none"}' \
-device '{"driver":"virtio-balloon-pci","iommu_platform":true,"ats":true,"id":"balloon0","bus":"pci.4","addr":"0x0"}' \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \

(2) The bug *can not* be reproduced when repeating the above test step in the same test env but with qemu-kvm-7.0.0-11.el9.x86_64

Comment 1 Yanghang Liu 2022-09-16 08:49:53 UTC
>  The bug *can not* be reproduced when repeating the above test step in the same test env but with qemu-kvm-7.0.0-11.el9.x86_64

Comment 2 Laurent Vivier 2022-09-21 08:58:15 UTC
This bug is potentially a duplicate of 2126095 as it also uses intel-iommu.

Comment 3 Peter Xu 2022-09-21 16:19:02 UTC
Possible dup of bz2126623 too.  Can verify using "eim=off" attached to intel-iommu.  For libvirt to try it should be:

      <driver intremap='on' caching_mode='on' iotlb='on' eim='off'/>

Comment 4 Laurent Vivier 2022-09-22 07:38:26 UTC
Moving to qemu-kvm/Devices as it doesn't seem specific to virtio-networking

Comment 5 Yanghang Liu 2022-09-22 09:57:21 UTC
The nfv domain can be started successfully using the following xml:

  <driver intremap='on' caching_mode='on' iotlb='on' eim='off'/>

Comment 6 Yanghang Liu 2022-09-22 09:59:05 UTC

*** This bug has been marked as a duplicate of bug 2126095 ***


Note You need to log in before you can comment on or make changes to this bug.