CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2025/06/29 03:31:47
Modified files: sys/arch/amd64/amd64: vector.S Log message: Install final #VC trap handler for AMD SEV-ES guests. As OUT instructions are used to ack, mask and unmask interrupts in the PIC, they will raise #VC exceptions while handling interrupts. Most exceptions re-enable interrupts as soon as the stack frame is setup. However, in case of #VC we must disable interrupts during the whole exception handling. Otherwise we would get nested IRQs of the same PSL. Therefore do not use the TRAP() macro but rewrite the entry stub without enabling interrupts and jump to the "common" code as soon as possible. from hshoexer@; OK mlarkin@