oracle / qemu

QEMU git Oracle repository
Other
22 stars 20 forks source link

'vfio-user-pci' is not a valid device model name #16

Open lifeformg opened 1 year ago

lifeformg commented 1 year ago

I compiled qemu with the following command, but encountered the error message: ”'vfio-user-pci' is not a valid device model name“ when running it.

git clone https://github.com/oracle/qemu qemu-orcl
cd qemu-orcl
git submodule update --init --recursive
./configure --enable-multiprocess --enable-slirp
make

The command that has been executed is: ./build/qemu-system-x86_64 --enable-kvm -cpu host -smp 4 -m 2G -object memory-backend-file,id=mem0,size=2G,mem-path=/dev/hugepages,share=on -numa node,memdev=mem0 -drive file=focal-server-cloudimg-amd64.img,if=none,id=disk -device ide-hd,drive=disk,bootindex=0 -device vfio-user-pci,socket=/var/run/cntrl -vnc :5 -net user,hostfwd=tcp::2333-:22 I am running qemu in a nested virtualization platform (ubuntu20.04).

kheubaum commented 1 year ago

Does adding --enable-vfio-user-server to the configure script invocation help?

lifeformg commented 1 year ago

Does adding --enable-vfio-user-server to the configure script invocation help?

This doesn't work, the error remains the same without any changes. And if I understand correctly, in this case qemu should work as a vfio-user client? (I created the server using spdk vfio-user/nvmf)