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

[virtual network][vdpa]reboot guest qemu output error info: qemu-kvm: vhost VQ 2 ring restore failed: -1: Operation not permitted (1)

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • Low
    • rhel-virt-networking
    • ssg_virtualization
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:
      Boot a guest with vhost-vdpa device, reboot guest output error info:
      qemu-kvm: vhost VQ 2 ring restore failed: -22: Invalid argument (22)

      Version-Release number of selected component (if applicable):
      kernel-4.18.0-367.el8.mr2208_220211_1216.x86_64
      qemu-kvm-6.2.0-7.module+el8.6.0+14253+42d4e2d6.x86_64
      iproute-5.15.0-2.el8.x86_64
      openvswitch2.16-2.16.0-51.el8fdp.x86_64

      How reproducible:
      100%

      Steps to Reproduce:
      1.Boot a guest with vhost-vdpa device
      /usr/libexec/qemu-kvm \
      -name 'avocado-vt-vm1' \
      -sandbox on \
      -machine q35,memory-backend=mem-machine_mem \
      -device pcie-root-port,id=pcie-root-port-0,multifunction=on,bus=pcie.0,addr=0x1,chassis=1 \
      -device pcie-pci-bridge,id=pcie-pci-bridge-0,addr=0x0,bus=pcie-root-port-0 \
      -nodefaults \
      -device VGA,bus=pcie.0,addr=0x2 \
      -m 29696 \
      -object memory-backend-ram,size=29696M,id=mem-machine_mem \
      -smp 32,maxcpus=32,cores=16,threads=1,dies=1,sockets=2 \
      -cpu 'Cascadelake-Server',ss=on,vmx=on,pdcm=on,hypervisor=on,tsc-adjust=on,umip=on,pku=on,md-clear=on,stibp=on,arch-capabilities=on,xsaves=on,ibpb=on,ibrs=on,amd-stibp=on,amd-ssbd=on,rdctl-no=on,ibrs-all=on,skip-l1dfl-vmentry=on,mds-no=on,pschange-mc-no=on,tsx-ctrl=on,hle=off,rtm=off,kvm_pv_unhalt=on \
      -device pcie-root-port,id=pcie-root-port-1,port=0x1,addr=0x1.0x1,bus=pcie.0,chassis=2 \
      -device qemu-xhci,id=usb1,bus=pcie-root-port-1,addr=0x0 \
      -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \
      -device pcie-root-port,id=pcie-root-port-2,port=0x2,addr=0x1.0x2,bus=pcie.0,chassis=3 \
      -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pcie-root-port-2,addr=0x0 \
      -blockdev node-name=file_image1,driver=file,auto-read-only=on,discard=unmap,aio=threads,filename=/home/kvm_autotest_root/images/rhel860-64-virtio-scsi.qcow2,cache.direct=on,cache.no-flush=off \
      -blockdev node-name=drive_image1,driver=qcow2,read-only=off,cache.direct=on,cache.no-flush=off,file=file_image1 \
      -device scsi-hd,id=image1,drive=drive_image1,write-cache=on \
      -device pcie-root-port,id=pcie-root-port-3,port=0x3,addr=0x1.0x3,bus=pcie.0,chassis=4 \
      -device virtio-net-pci,id=net0,netdev=hostnet0,mac=00:11:22:33:44:00,bus=pcie-root-port-3,addr=0x0 \
      -netdev vhost-vdpa,id=hostnet0,vhostdev=/dev/vhost-vdpa-0 \
      -vnc :1 \
      -rtc base=utc,clock=host,driftfix=slew \
      -boot menu=off,order=cdn,once=c,strict=off \
      -enable-kvm \
      -device pcie-root-port,id=pcie_extra_root_port_0,multifunction=on,bus=pcie.0,addr=0x3,chassis=8 \
      -monitor stdio \
      -qmp tcp:0:5555,server,nowait \

      2.Reboot guest qemu output error info:
      qemu-kvm: vhost VQ 2 ring restore failed: -22: Invalid argument (22)

      Actual results:
      qemu-kvm: vhost VQ 2 ring restore failed: -22: Invalid argument (22)

      Expected results:
      qemu no error info output

      Additional info:
      1. kernel-4.18.0-366.el8.x86_64 works well

              lulu-redhat-name Cindy Lu
              rhn-support-leiyang Lei Yang
              Cindy Lu Cindy Lu
              Lei Yang Lei Yang
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: