<div dir="ltr"><div><div><div><font size="4">Hi Team<br><br></font></div><font size="4">I need to run vfio driver using qemu and I'm using below xml file for this..<br></font><br><domain type='kvm' xmlns:qemu='<a href="http://libvirt.org/schemas/domain/qemu/1.0">http://libvirt.org/schemas/domain/qemu/1.0</a>'><br>  <name>instance</name><br>  <memory unit='KiB'>4194304</memory><br>  <currentMemory unit='KiB'>4194304</currentMemory><br>  <vcpu placement='static'>8</vcpu><br>  <os><br>    <type arch='aarch64' machine='virt'>hvm</type><br>    <kernel>/home/root/Image</kernel><br>    <initrd>/home/root/fsl-image-minimal-ls2085ardb.ext2.gz</initrd><br>    <cmdline>'root=/dev/ram0 rw console=ttyAMA0,115200 rootwait earlyprintk ramdisk_size=1000000'</cmdline><br>  </os><br>  <cpu mode='custom' match='exact'><br>    <model fallback='allow'>host</model><br>  </cpu><br>  <clock offset='utc'/><br>  <on_poweroff>destroy</on_poweroff><br>  <on_reboot>restart</on_reboot><br>  <on_crash>destroy</on_crash><br>  <devices><br>      <emulator>/usr/bin/qemu-system-aarch64</emulator><br>    <memballoon model='none'/><br>  </devices><br>  <qemu:commandline><br>    <qemu:arg value='-mem-path'/><br>    <qemu:arg value='/hugepages'/><br>    <qemu:arg value='-device'/><br>    <qemu:arg value='vfio-fsl-mc,host=dprc.2'/><br>  </qemu:commandline><br></domain><br><br></div><font size="4">I'm able to launch VM succesfully using the above xml file and it produces the below process running in the background..<br></font><br><b>ps -ef | grep qemu</b><br>root      6767     1 34 22:11 ?        00:00:02 /usr/bin/qemu-system-aarch64 -name instance -S -machine virt,accel=kvm,usb=off -cpu host -m 4096 -realtime mlock=off -smp 8,sockets=8,cores=1,threads=1 -uuid 3b527012-c15d-46b3-862d-9a7fd3b04e01 -nographic -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot strict=on -kernel /home/root/Image -initrd /home/root/fsl-image-minimal-ls2085ardb.ext2.gz -append 'root=/dev/ram0 rw console=ttyAMA0,115200 rootwait earlyprintk ramdisk_size=1000000' -usb -mem-path /hugepages <b>-device vfio-fsl-mc,host=dprc.2</b> -msg timestamp=on<br><br><br><font size="4">Although the driver appears in the above process,actually that driver is not loaded as there is no output of cat /proc/interrupts | grep dpio on the host.<br><br></font></div><div><font size="4">However when I'm using the same command as that of the above process i.e ..<br></font><br>/usr/bin/qemu-system-aarch64 -name instance -S -machine 
virt,accel=kvm,usb=off -cpu host -m 4096 -realtime mlock=off -smp 
8,sockets=8,cores=1,threads=1 -uuid 3b527012-c15d-46b3-862d-9a7fd3b04e01
 -nographic -no-user-config -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc 
-no-shutdown -boot strict=on -kernel /home/root/Image -initrd 
/home/root/fsl-image-minimal-ls2085ardb.ext2.gz -append 'root=/dev/ram0 
rw console=ttyAMA0,115200 rootwait earlyprintk ramdisk_size=1000000' 
-usb -mem-path /hugepages <b>-device vfio-fsl-mc,host=dprc.2</b> -msg timestamp=on<br><br></div><div><font size="4">the driver is getting loaded and I'm able to see the output of cat /proc/interrupts | grep dpio on the host.<br><br></font></div><div><font size="4">Please help me regarding this.<br><br></font></div><div><font size="4">Thanks<br></font></div><div><font size="4">Abhishek Jain<br></font></div><div><br><br></div><div><br></div><div><br></div><br><div><br><br><br><br><br><div><br></div></div></div>