Gregory Haskins wrote: > The VCPU executes synchronously w.r.t. userspace today, and therefore > interrupt injection is pretty straight forward. However, we will soon need > to be able to inject interrupts asynchronous to the execution of the VCPU > due to the introduction of SMP, paravirtualized drivers, and asynchronous > hypercalls. This patch adds support to the interrupt mechanism to force > a VCPU to VMEXIT when a new interrupt is pending. > > Signed-off-by: Gregory Haskins <[EMAIL PROTECTED]> > --- >
[vmresume/return code] > /* > + * Signal that we have transitioned back to host mode > + */ > + spin_lock_irqsave(&vcpu->irq.lock, irq_flags); > + vcpu->irq.guest_mode = 0; > + spin_unlock_irqrestore(&vcpu->irq.lock, irq_flags); > + > You need to check for an interrupt here. Otherwise you might go back to user mode and sleep there, no? -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel