coconut-svsm / svsm

COCONUT-SVSM
MIT License
123 stars 43 forks source link

gdbstub: Add exception handler for DB_VECTOR for DEBUG_SWAP feature #264

Closed roy-hopkins closed 9 months ago

roy-hopkins commented 9 months ago

The latest AMD SEV-SNP patch series for SEV-SNP enables the sev_features DEBUG_SWAP bit which delegates debug exceptions to the host rather than the guest VC handler. This patch adds a DB_VECTOR handler to allow these exceptions to be handled by the gdb stub when DEBUG_SWAP is set.