The attached patch fixes a few possible issues (mostly with synchronization and MCEs happening while recovery is running). It also fixes a problem where the system might not properly panic, because the boot CPU might be spinning with interrupts disabled. Lastly, it takes the first step towards having a common trap handler again (for AMD and Intel) in the future, by using more common interfaces. - Frank