Re: [PATCH v2 4/7] kvm/mips: rework guest entry logic

From: Paolo Bonzini
Date: Thu Jan 20 2022 - 06:10:49 EST


On 1/19/22 11:58, Mark Rutland wrote:
+ * TODO: is there a barrier which ensures that pending interrupts are
+ * recognised? Currently this just hopes that the CPU takes any pending
+ * interrupts between the enable and disable.
+ */
+ local_irq_enable();
+ local_irq_disable();

It's okay, there is irq_enable_hazard() but it's automatically included in arch_local_irq_enable().

Paolo