Hi,

My name is Pratik Pranav,  a second-year undergraduate student,
majoring in Computer
Science at Indian Institute of Technology(IIT), Delhi. I am currently
working on building a messaging layer between two VMs(x86 and ARM) using
ivshmem and currently deploying on QEMU.


I am facing a problem while registering an interrupt in doorbell registers.
Whenever I am registering an interrupt on doorbell-registers, I can see the
interrupt handler run when the interrupt is registered from ARM to x86, but
not from x86 to ARM. Although I think interrupts are reaching the ARM VM
concluded from the following output obtained by changing IVSHMEM_DEBUG to 1
in ivshmem.c.


-------------------------------------------------------------

IVSHMEM: interrupt on vector 0x56430d1ce940 3

IVSHMEM: interrupt on vector 0x56430d1ce940 2

IVSHMEM: interrupt on vector 0x56430d1ce940 1

IVSHMEM: interrupt on vector 0x56430d1ce940 0

-------------------------------------------------------------



I have tried interrupting using ivshmem-client(other than using doorbell),
but the problem remains the same.


All the interrupt lines are visible in /proc/interrupts in both the VMs
with MSIX enabled.


The command prompts I am using currently are:


x86: sudo qemu/x86_64-softmmu/qemu-system-x86_64 *--enable-kvm* -m 2048
-smp 4 *-chardev socket,path=/tmp/ivshmem_socket,id=foo -device
ivshmem-doorbell,chardev=foo,vectors=4* -hda x86.img -netdev
tap,id=x86nic,ifname=tap0 -device e1000,netdev=x86nic,mac=52:54:00:12:34:60
-nographic


arm: sudo qemu/aarch64-softmmu/qemu-system-aarch64 -cpu cortex-a57
-smp 2 *-chardev
socket,path=/tmp/ivshmem_socket,id=foo -device
ivshmem-doorbell,chardev=foo,vectors=4*  -m 2048 -M virt -bios qemu_efi.fd
-drive if=none,file=arm.img,id=hd0 -device virtio-blk-device,drive=hd0
-netdev tap,id=armnic,ifname=tap1 -device
e1000,netdev=armnic,mac=52:54:00:12:34:63 -nographic


Could you guys suggest anything?

I will be highly thankful to you.


Thank you for your consideration.

Keenly awaiting your reply,

Yours Sincerely,

Pratik Pranav

Second-Year Undergraduate

Computer Science and Technology

Indian Institute of Technology(IIT), Delhi




[image: photo]
Pratik Pranav
Student, Computer Science and Engineering at  Indian Institute of
Technology, Delhi
A  Satpura Hostel, IIT Delhi, Hauz Khas, New Delhi-110016
M  8936051771  <8936051771>
E  [email protected]  <[email protected]>
<http://www.linkedin.com/in/pratik-pranav-92629616b/>

Reply via email to