On Wed, Nov 02, 2011 at 01:09:46PM +0200, Gleb Natapov wrote:
> On Wed, Nov 02, 2011 at 12:01:51PM +0200, Avi Kivity wrote:
> > No. There is irq_work_queue() for that. Would be good to avoid it if
> > we know that it's safe to (for example if we have PF_VCPU set).
> >
> Checking PF_VCPU will not tell us that vcpu is going to reenter guest
> mode again.
>
Looks like we can check percpu_read(current_vcpu) to see if last vmexit
was due to NMI we are processing and decide according to that.
--
Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html