> >I've just checked out the latest version of the trunk, and some things >have changed... > >kvm_callbacks has two new functions, > >try_push_interrupts and post_kvm_run > >Could someone shine some light on what they should do ? >try_push_interrupts gets called immediately as I call kvm_run(), and >since I haven't got a handler for it, my code (quite expected) >segfaults..
The latest commit purpose is to improve the interrupt latency + handle irq lost situations. If the user space / qemu needs to injects interrupt it sets the kvm_run->request_interrupt_window variable. If it is also possible to inject the interrupt at that time (the kvm_run->ready_for_interrupt_injection) the user space/qemu injects the pending interrupt. There are situations were the interrupt window is block by vt/svm or the interrupt window was open but a physical irq happened exactly before the virq was injected. In that case the virq won't be injected. If the request_interrupt_window was set the kvm will go back as quickly as possible to the user space when the window opens. At the end of the kvm_run ioctl the kvm synchronizes the variables that effect user space/qemu: the ready_for_interrupt_injection flag, cr8(tpr), apic_base and eflags IF bit. The is done instead of the longer save_regs version. Hope it helped :) > >/James > >----------------------------------------------------------------------- -- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share >your >opinions on IT & business topics through brief surveys - and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD EV >_______________________________________________ >kvm-devel mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/kvm-devel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ kvm-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kvm-devel
