From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/vhost/virtio Bug 1676] [dpdk-25.03] virtio_ipsec_cryptodev_func/test_aesni_mb_aes_cbc_sha1_hmac: Failed to start qemu after launch dpdk-vhost_crypto sample
Date: Fri, 14 Mar 2025 01:40:16 +0000 [thread overview]
Message-ID: <bug-1676-3@http.bugs.dpdk.org/> (raw)
[-- Attachment #1: Type: text/plain, Size: 8265 bytes --]
https://bugs.dpdk.org/show_bug.cgi?id=1676
Bug ID: 1676
Summary: [dpdk-25.03]
virtio_ipsec_cryptodev_func/test_aesni_mb_aes_cbc_sha1
_hmac: Failed to start qemu after launch
dpdk-vhost_crypto sample
Product: DPDK
Version: 25.03
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: vhost/virtio
Assignee: dev@dpdk.org
Reporter: yux.jiang@intel.com
Target Milestone: ---
[Environment]
DPDK version: commit 5f37ee9c 25.03-rc2
OS: Ubuntu 18.04.5 LTS (Bionic Beaver); 5.4.0-150-generic
Compiler: gcc version 7.5.0
Hardware platform: Intel(R) Xeon(R) Platinum 8180 CPU @ 2.50GHz
QEMU: qemu-2.12
qemu version >= 2.12 in qemu enable vhost-user-crypto:
./configure --target-list=x86_64-softmmu --enable-vhost-crypto
--prefix=/root/qemu-2.12 && make && make install
Qemu version: 2.12
QAT: C62x Chipset QuickAssist Technology 37c8
[Bad commit Debug Info]:
d1b484bf18 vhost/crypto: support asymmetric RSA ////////////////Failed to
launch qemu
f7cf44d49b examples/vhost_crypto: fix user callbacks ///////also failed to
build dpdk
b1d02713d3 vhost/crypto: update session parameters
b03cb9c87a vhost/crypto: skip fetch before vring init
88c73b5434 vhost/crypto: fix thread safety check /////////Failed to build
dpdk
1992e3ffac (1992e3ffac-pass) net/nfp: fix init failure handling
////////PASSED
[Test Setup]
Steps to reproduce
List the steps to reproduce the issue.
1, Build dpdk
rm -rf x86_64-native-linuxapp-gcc
CC=gcc meson --werror -Denable_kmods=False -Dlibdir=lib -Dexamples=all
--default-library=static x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc -j 110
ls x86_64-native-linuxapp-gcc/examples/dpdk-vhost_crypto
2, Bind QAT device and run the dpdk vhost sample in HOST side
usertools/dpdk-devbind.py --force --bind=vfio-pci 0000:1a:01.0 0000:1c:01.0
0000:1e:01.0
x86_64-native-linuxapp-gcc/examples/dpdk-vhost_crypto -l 1,2,3,4,5 -a
0000:1a:01.0 -a 0000:1c:01.0 -a 0000:1e:01.0 --vdev
crypto_scheduler_pmd_1,worker=0000:1a:01.0_qat_sym,worker=0000:1c:01.0_qat_sym,worker=0000:1e:01.0_qat_sym,mode=round-robin,ordering=enable
--socket-mem 2048,0 -n 4 -- --config "(2,0,0),(3,0,0),(4,0,0),(5,0,0)"
--socket-file 2,/tmp/vm0_crypto0.sock
--socket-file=3,/tmp/vm0_crypto1.sock
--socket-file=4,/tmp/vm1_crypto0.sock
--socket-file=5,/tmp/vm1_crypto1.sock
3, Bind NIC PF to vfio-pci
usertools/dpdk-devbind.py --bind=vfio-pci 0000:60:00.0 0000:60:00.1
0000:3b:00.0 0000:3b:00.1
4, Start VM0 by the qemu:
taskset -c 11,12,13,14 /usr/local/qemu-2.12.0/bin/qemu-system-x86_64 -name vm0
-enable-kvm -pidfile /tmp/.vm0.pid -daemonize -monitor
unix:/tmp/vm0_monitor.sock,server,nowait -device e1000,netdev=nttsip1 -netdev
user,id=nttsip1,hostfwd=tcp:10.67.118.199:6410-:22 -device
vfio-pci,host=0000:3b:00.0,id=pt_0 -device vfio-pci,host=0000:3b:00.1,id=pt_1
-cpu host -smp 4 -m 4096 -object
memory-backend-file,id=mem,size=4096M,mem-path=/dev/hugepages,share=on -numa
node,memdev=mem -mem-prealloc -chardev
socket,path=/tmp/vm0_qga0.sock,server,nowait,id=vm0_qga0 -device virtio-serial
-device virtserialport,chardev=vm0_qga0,name=org.qemu.guest_agent.0 -vnc :1
-chardev socket,path=/tmp/vm0_crypto0.sock,id=vm0_crypto0 -object
cryptodev-vhost-user,id=cryptodev0,chardev=vm0_crypto0 -device
virtio-crypto-pci,id=crypto0,cryptodev=cryptodev0 -chardev
socket,path=/tmp/vm0_crypto1.sock,id=vm0_crypto1 -object
cryptodev-vhost-user,id=cryptodev1,chardev=vm0_crypto1 -device
virtio-crypto-pci,id=crypto1,cryptodev=cryptodev1 -drive
file=/root/VMs/ubuntu2004-0.img
[Actual Result]
VM0 log: qemu-system-x86_64: -device vfio-pci,host=0000:3b:00.0,id=pt_0: vfio
error: 0000:3b:00.0: failed to open /dev/vfio/78: No such file or directory
DPDK VHOST sample HOST log:
root@dpdk-yaobing-purely147:~/dpdk#
x86_64-native-linuxapp-gcc/examples/dpdk-vhost_crypto -l 1,2,3,4,5 -a
0000:1a:01.0 -a 0000:1c:01.0 -a 0000:1e:01.0 --vdev
crypto_scheduler_pmd_1,worker=0000:1a:01.0_qat_sym,worker=0000:1c:01.0_qat_sym,worker=0000:1e:01.0_qat_sym,mode=round-robin,ordering=enable
--socket-mem 2048,0 -n 4 -- --config "(2,0,0),(3,0,0),(4,0,0),(5,0,0)"
--socket-file 2,/tmp/vm0_crypto0.sock
--socket-file=3,/tmp/vm0_crypto1.sock
--socket-file=4,/tmp/vm1_crypto0.sock
--socket-file=5,/tmp/vm1_crypto1.sock
EAL: Detected CPU lcores: 112
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
EAL: Using IOMMU type 1 (Type 1)
CRYPTODEV: Creating cryptodev 0000:1a:01.0_qat_asym
CRYPTODEV: Initialisation parameters - name: 0000:1a:01.0_qat_asym,socket id:
0, max queue pairs: 0
CRYPTODEV: Creating cryptodev 0000:1a:01.0_qat_sym
CRYPTODEV: Initialisation parameters - name: 0000:1a:01.0_qat_sym,socket id: 0,
max queue pairs: 0
CRYPTODEV: Creating cryptodev 0000:1c:01.0_qat_asym
CRYPTODEV: Initialisation parameters - name: 0000:1c:01.0_qat_asym,socket id:
0, max queue pairs: 0
CRYPTODEV: Creating cryptodev 0000:1c:01.0_qat_sym
CRYPTODEV: Initialisation parameters - name: 0000:1c:01.0_qat_sym,socket id: 0,
max queue pairs: 0
CRYPTODEV: Creating cryptodev 0000:1e:01.0_qat_asym
CRYPTODEV: Initialisation parameters - name: 0000:1e:01.0_qat_asym,socket id:
0, max queue pairs: 0
CRYPTODEV: Creating cryptodev 0000:1e:01.0_qat_sym
CRYPTODEV: Initialisation parameters - name: 0000:1e:01.0_qat_sym,socket id: 0,
max queue pairs: 0
CRYPTODEV: Creating cryptodev crypto_scheduler_pmd_1
CRYPTODEV: Initialisation parameters - name: crypto_scheduler_pmd_1,socket id:
0, max queue pairs: 8
SCHEDULER_DRIVER: cryptodev_scheduler_create() line 158: Scheduling mode =
round-robin
SCHEDULER_DRIVER: cryptodev_scheduler_create() line 213: Packet ordering =
enable
USER1: Processing on Core 2 started
VHOST_CONFIG: (/tmp/vm0_crypto0.sock) logging feature is disabled in async copy
mode
VHOST_CONFIG: (/tmp/vm0_crypto0.sock) vhost-user server: socket created, fd: 48
VHOST_CONFIG: (/tmp/vm0_crypto0.sock) binding succeeded
CRYPTODEV: rte_cryptodev_start() line 1334: Device with dev_id=0 already
started
VHOST_CONFIG: (/tmp/vm0_crypto1.sock) logging feature is disabled in async copy
mode
USER1: Processing on Core 3 started
VHOST_CONFIG: (/tmp/vm0_crypto1.sock) vhost-user server: socket created, fd: 51
VHOST_CONFIG: (/tmp/vm0_crypto1.sock) binding succeeded
CRYPTODEV: rte_cryptodev_start() line 1334: Device with dev_id=0 already
started
VHOST_CONFIG: (/tmp/vm1_crypto0.sock) logging feature is disabled in async copy
mode
VHOST_CONFIG: (/tmp/vm1_crypto0.sock) vhost-user server: socket created, fd: 52
USER1: Processing on Core 4 started
VHOST_CONFIG: (/tmp/vm1_crypto0.sock) binding succeeded
CRYPTODEV: rte_cryptodev_start() line 1334: Device with dev_id=0 already
started
VHOST_CONFIG: (/tmp/vm1_crypto1.sock) logging feature is disabled in async copy
mode
VHOST_CONFIG: (/tmp/vm1_crypto1.sock) vhost-user server: socket created, fd: 53
USER1: Processing on Core 5 started
VHOST_CONFIG: (/tmp/vm1_crypto1.sock) binding succeeded
VHOST_CONFIG: (/tmp/vm0_crypto0.sock) new vhost user connection is 54
VHOST_CONFIG: (/tmp/vm0_crypto0.sock) new device, handle is 0
USER1: New Vhost-crypto Device /tmp/vm0_crypto0.sock, Device ID 0
VHOST_CRYPTO: rte_vhost_crypto_fetch_requests() line 2006: Invalid virtqueue 0
....................
VHOST_CRYPTO: rte_vhost_crypto_fetch_requests() line 2006: Invalid virtqueue 0
VHOST_CONFIG: (/tmp/vm0_crypto1.sock) read message VHOST_USER_SET_VRING_CALL
VHOST_CRYPTO: rte_vhost_crypto_fetch_requests() line 2006: Invalid virtqueue 0
VHOST_CONFIG: (/tmp/vm0_crypto1.sock) vring call idx:0 file:59
VHOST_CONFIG: (/tmp/vm0_crypto1.sock) vhost peer closed
USER1: Vhost Crypto Device 1 Removed
VHOST_CONFIG: (/tmp/vm0_crypto0.sock) vhost peer closed
USER1: Vhost Crypto Device 0 Removed
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #2: Type: text/html, Size: 10208 bytes --]
reply other threads:[~2025-03-14 1:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-1676-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).