can't create rocker device because setting device array properties on the command line is broken
hi,
Host environment
- Operating system: debian sid
- OS/kernel version: Linux noti 5.18.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1 (2022-06-16) x86_64 GNU/Linux
- Architecture: x86_64
- QEMU flavor: qemu-system-x86_64
- QEMU version: 7.0
- QEMU command line:
qemu-system-x86_64 -enable-kvm -m 1g -cpu host -cdrom ~/Downloads/Fedora-Workstation-Live-x86_64-36-1.5.iso -netdev socket,id=dev0,udp=10.10.10.227:30042,localaddr=:30042 -device rocker,len- ports=4,name=sw,len-ports=2,ports[0]=dev0
Emulated/Virtualized environment
- Operating system: any
- OS/kernel version: any
- Architecture: x86_64
Description of problem
it does not accept the prop_array parameter:
qemu-system-x86_64 -enable-kvm -m 1g -cpu host -netdev socket,id=dev0,udp=10.10.10.227:30042,localaddr=:30042 -device rocker,len-ports=4,name=sw,len-ports=2,ports[0]=dev0
qemu-system-x86_64: -device rocker,len-ports=4,name=sw,len-ports=2,ports[0]=dev0: Property 'rocker.ports[0]' not found
Steps to reproduce
- just run the command
Additional information
the latest qemu i find working is 6.1.1... if you start a fedora vm and dnf install kernel-modules-internal
then the rocker ports appear and work properly...
thanks, cs
Edited by Peter Maydell