Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-43442

edk2 disconnects abnormally before loading the kernel

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.5
    • edk2
    • edk2-20240524-2.el9
    • None
    • None
    • CustomerScenariosInitiative
    • rhel-sst-virtualization
    • ssg_virtualization
    • 21
    • 25
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • All
    • None

      What were you trying to do that didn't work?
      Just launch a guest, hit Ncat: Connection reset by peer.
      (Process terminated with status 1)

      Please provide the package NVR for which bug is seen:
      QEMU: qemu-kvm-9.0.0-2.el9
      EDK2: edk2-aarch64-20240214-2.el9.noarch
      Host kernel: 5.14.0-452.el9.aarch64
      Guest kernel: 5.14.0-452.el9.aarch64

      How reproducible:
      1/100

      Steps to reproduce
      1. boot a guest

      [stdlog] MALLOC_PERTURB_=1  /usr/libexec/qemu-kvm \
      [stdlog]     -S  \
      [stdlog]     -name 'avocado-vt-vm1'  \
      [stdlog]     -sandbox on,elevateprivileges=deny,obsolete=deny,resourcecontrol=deny,spawn=deny \
      [stdlog]     -blockdev '{"node-name": "file_aavmf_code", "driver": "file", "filename": "/usr/share/edk2/aarch64/QEMU_EFI-silent-pflash.qcow2", "auto-read-only": true, "discard": "unmap"}' \
      [stdlog]     -blockdev '{"node-name": "drive_aavmf_code", "driver": "qcow2", "read-only": true, "file": "file_aavmf_code"}' \
      [stdlog]     -blockdev '{"node-name": "file_aavmf_vars", "driver": "file", "filename": "/home/kar/workspace/root/avocado/data/avocado-vt/avocado-vt-vm1_rhel950-aarch64-4k-virtio-scsi_qcow2_filesystem_VARS.qcow2", "auto-read-only": true, "discard": "unmap"}' \
      [stdlog]     -blockdev '{"node-name": "drive_aavmf_vars", "driver": "qcow2", "read-only": false, "file": "file_aavmf_vars"}' \
      [stdlog]     -machine virt,gic-version=host,pflash0=drive_aavmf_code,pflash1=drive_aavmf_vars,memory-backend=mem-machine_mem \
      [stdlog]     -device '{"id": "pcie-root-port-0", "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x1", "chassis": 1}' \
      [stdlog]     -device '{"id": "pcie-pci-bridge-0", "driver": "pcie-pci-bridge", "addr": "0x0", "bus": "pcie-root-port-0"}'  \
      [stdlog]     -nodefaults \
      [stdlog]     -device '{"id": "pcie-root-port-1", "port": 1, "driver": "pcie-root-port", "addr": "0x1.0x1", "bus": "pcie.0", "chassis": 2}' \
      [stdlog]     -device '{"driver": "virtio-gpu-pci", "bus": "pcie-root-port-1", "addr": "0x0"}' \
      [stdlog]     -m 8192 \
      [stdlog]     -object '{"size": 8589934592, "id": "mem-machine_mem", "qom-type": "memory-backend-ram"}'  \
      [stdlog]     -smp 4,maxcpus=4,cores=2,threads=1,clusters=1,sockets=2  \
      [stdlog]     -cpu 'host' \
      [stdlog]     -chardev socket,id=qmp_id_qmpmonitor1,path=/var/tmp/avocado_8v_3ffi8/monitor-qmpmonitor1-20240618-092247-6CuJXBdg,wait=off,server=on  \
      [stdlog]     -mon chardev=qmp_id_qmpmonitor1,mode=control \
      [stdlog]     -chardev socket,id=qmp_id_catch_monitor,path=/var/tmp/avocado_8v_3ffi8/monitor-catch_monitor-20240618-092247-6CuJXBdg,wait=off,server=on  \
      [stdlog]     -mon chardev=qmp_id_catch_monitor,mode=control  \
      [stdlog]     -serial unix:'/var/tmp/avocado_8v_3ffi8/serial-serial0-20240618-092247-6CuJXBdg',server=on,wait=off \
      [stdlog]     -device '{"id": "pcie-root-port-2", "port": 2, "driver": "pcie-root-port", "addr": "0x1.0x2", "bus": "pcie.0", "chassis": 3}' \
      [stdlog]     -device '{"driver": "qemu-xhci", "id": "usb1", "bus": "pcie-root-port-2", "addr": "0x0"}' \
      [stdlog]     -device '{"driver": "usb-tablet", "id": "usb-tablet1", "bus": "usb1.0", "port": "1"}' \
      [stdlog]     -device '{"id": "pcie-root-port-3", "port": 3, "driver": "pcie-root-port", "addr": "0x1.0x3", "bus": "pcie.0", "chassis": 4}' \
      [stdlog]     -device '{"id": "virtio_scsi_pci0", "driver": "virtio-scsi-pci", "bus": "pcie-root-port-3", "addr": "0x0"}' \
      [stdlog]     -blockdev '{"node-name": "file_image1", "driver": "file", "auto-read-only": true, "discard": "unmap", "aio": "threads", "filename": "/home/kvm_autotest_root/images/rhel950-aarch64-4k-virtio-scsi.qcow2", "cache": {"direct": true, "no-flush": false}}' \
      [stdlog]     -blockdev '{"node-name": "drive_image1", "driver": "qcow2", "read-only": false, "cache":
      {"direct": true, "no-flush": false}
      , "file": "file_image1"}' \
      [stdlog]     -device '{"driver": "scsi-hd", "id": "image1", "drive": "drive_image1", "write-cache": "on"}' \
      [stdlog]     -device '{"id": "pcie-root-port-4", "port": 4, "driver": "pcie-root-port", "addr": "0x1.0x4", "bus": "pcie.0", "chassis": 5}' \
      [stdlog]     -device '{"driver": "virtio-net-pci", "mac": "9a:58:41:0b:46:5a", "rombar": 0, "id": "idmortkJ", "netdev": "id64wWwL", "bus": "pcie-root-port-4", "addr": "0x0"}' \
      [stdlog]     -netdev  '{"id": "id64wWwL", "type": "tap", "vhost": true, "vhostfd": "16", "fd": "12"}'  \
      [stdlog]     -vnc :0  \
      [stdlog]     -rtc base=utc,clock=host \
      [stdlog]     -chardev socket,id=char_vtpm_avocado-vt-vm1_tpm0,path=/home/kar/workspace/root/avocado/data/avocado-vt/swtpm/avocado-vt-vm1_tpm0_swtpm.sock \
      [stdlog]     -tpmdev emulator,chardev=char_vtpm_avocado-vt-vm1_tpm0,id=emulator_vtpm_avocado-vt-vm1_tpm0 \
      [stdlog]     -device '{"id": "tpm-tis-device_vtpm_avocado-vt-vm1_tpm0", "tpmdev": "emulator_vtpm_avocado-vt-vm1_tpm0", "driver": "tpm-tis-device"}' \
      [stdlog]     -enable-kvm \
      [stdlog]     -device '{"id": "pcie_extra_root_port_0", "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x2", "chassis": 6}' \
      [stdlog]     -device '{"id": "pcie_extra_root_port_1", "driver": "pcie-root-port", "addr": "0x2.0x1", "bus": "pcie.0", "chassis": 7}'
      

       

      2. Hit this issue

      2024-06-18 12:39:03: UEFI firmware (version edk2-20240214-2.el9 built at 00:00:00 on Apr  8 2024)
      2024-06-18 12:39:03: SyncPcrAllocationsAndPcrMask!
      2024-06-18 12:39:04: Tpm2GetCapabilityPcrs - 00000004
      2024-06-18 12:39:04: alg - 4
      2024-06-18 12:39:04: alg - B
      2024-06-18 12:39:04: alg - C
      2024-06-18 12:39:04: alg - D
      2024-06-18 12:54:55: Ncat: Connection reset by peer.
      2024-06-18 12:54:55: (Process terminated with status 1)

      Other:
      for the new bug Eric hit with upstream qemu and downstream

        1. avocado-vt-vm1_rhel950-aarch64-4k-virtio-scsi_qcow2_filesystem_VARS.qcow2
          788 kB
          Zhenyu Zhang
        2. edk2_missing_boot_2.log
          750 kB
          Zhenyu Zhang
        3. edk2_missing_boot_item_serial.log
          1.30 MB
          Zhenyu Zhang
        4. edk2_normal_boot_item_serial.log
          779 kB
          Zhenyu Zhang
        5. image-2024-06-21-10-56-53-980.png
          132 kB
          Zhenyu Zhang
        6. image-2024-06-25-17-16-11-463.png
          63 kB
          Zhenyu Zhang
        7. qmp_hung.log
          174 kB
          Zhenyu Zhang
        8. timeout_600s_failed.log
          600 kB
          Zhenyu Zhang

              rhn-engineering-ghoffman Gerd Hoffmann
              zhenyzha@redhat.com Zhenyu Zhang
              virt-maint virt-maint
              Zhenyu Zhang Zhenyu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: