Divya,

Please try this. I highlighted the difference.

./qemu-system-x86_64 -enable-kvm -m 512 -bios /home/cavium/Downloads/OVMF.fd 
-smp 4 -cpu host -vga none -nographic -drive 
file="/home/cavium/Downloads/clear-16300-kvm.img",if=virtio,aio=threads 
-chardev socket,id=char1,path=/tmp/sock1.sock -netdev 
type=vhost-user,id=mynet1,chardev=char1,vhostforce -device 
virtio-net-pci,mac=00:00:00:00:00:01,netdev=mynet1 -object 
memory-backend-file,id=mem,size=512M,mem-path=/dev/hugepages,share=on -numa 
node,memdev=mem –m 512 -mem-prealloc -debugcon file:debug.log -global 
isa-debugcon.iobase=0x402

Steven

From: <[email protected]> on behalf of Divya Vyas <[email protected]>
Date: Saturday, July 8, 2017 at 10:46 AM
To: "[email protected]" <[email protected]>
Subject: [vpp-dev] Qemu error vhost-user Failed initializing vhost-user memory 
map

I am using below command for launching qemu

 ./qemu-system-x86_64 -enable-kvm -m 1024 -bios /home/cavium/Downloads/OVMF.fd 
-smp 4 -cpu host -vga none -nographic -drive 
file="/home/cavium/Downloads/clear-16300-kvm.img",if=virtio,aio=threads 
-chardev socket,id=char1,path=/tmp/sock1.sock -netdev 
type=vhost-user,id=mynet1,chardev=char1,vhostforce -device 
virtio-net-pci,mac=00:00:00:00:00:01,netdev=mynet1 -object 
memory-backend-file,id=mem,size=512M,mem-path=/dev/hugepages,share=on -numa 
node,mem=1024M -mem-prealloc -debugcon file:debug.log -global 
isa-debugcon.iobase=0x402

and it is giving error :

qemu-system-x86_64: Failed initializing vhost-user memory map, consider using 
-object memory-backend-file share=on
qemu-system-x86_64: vhost_set_mem_table failed: Resource temporarily 
unavailable (11)
qemu-system-x86_64: unable to start vhost net: 11: falling back on userspace 
virtio
Any ideas?
Thanks,
Divya

_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to