qemu side code for interrupt