I know that when simulating x86, kvm is using the "halt" instruction in guest OS to trap the VM idle, and then return to qemu to simulate I/O input for VM. Is there any suitable instruction in ppc platform like "halt" in x86? kvm should not return to qemu when emulating all of the private instructions. Teaching prism platform in linux kernel to use MPIC and teaching Qemu to use XICS are two choices for us. And finally we decide to teaching Qemu to use XICS. There is something to do to write a correct device-tree used in qemu for our platform. Any suggestions for us? thanks. CHEN Fei > hi everyone, > > This is Fei Chen from IBM Research China. I and my team are working on enabling qemu-kvm on IBM prism A2 processor. After guest OS booted up, we can run linux commands on bash, such as "ls", "dmesg". However, if we stop input and let the guest OS idle for a while, such as 15 seconds, the guest OS will not respond to keyboard input anymore. > > Since interrupt controller is not ready for virtual machine, our guest OS boots up with "irqpoll" argument. Is it possible that when guest OS idle, it will not trap into kvm, so kvm can not inject a timer interrupt to guest OS? Have you got the similar problems? It might be related to the way you implement idle. But without seeing the code, I can't tell too much there. We certainly can run VMs with IRQs for more than 15 seconds on other ppc platforms though :). Btw, is there anything keeping you from just reusing QEMU's MPIC code for IRQ delivery? Alex -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html