On Mon, Dec 13, 2021 at 04:12:55PM +0100, Jan Beulich wrote: > show_hvm_stack() requires interrupts to be enabled to avoids triggering > the consistency check in check_lock() for the p2m lock. To do so in > spurious_interrupt() requires adding reentrancy protection / handling > there.
There's also an ASSERT(!in_irq()) in _percpu_write_lock() that will trigger when trying to acquire the p2m lock from spurious_interrupt() context, as p2m_lock() -> mm_write_lock() -> _mm_write_lock -> percpu_write_lock(). Thanks, Roger.