Re: [PATCH RFC V10 15/18] kvm : Paravirtual ticketlocks support forlinux guests running on KVM hypervisor
From: Peter Zijlstra
Date: Tue Jul 16 2013 - 11:50:42 EST
On Tue, Jul 16, 2013 at 09:02:15AM +0300, Gleb Natapov wrote:
> BTW can NMI handler take spinlocks?
No -- that is, yes you can using trylock, but you still shouldn't.
> If it can what happens if NMI is
> delivered in a section protected by local_irq_save()/local_irq_restore()?
You deadlock.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/