I am using Linux bzImage as the payload for coreboot with a minimal initrd that gives me a shell to play with (or even kexec the bigger kernel on disk).
I could see that Coreboot has SMI handler at src/cpu/x86/smm/smihandler.c which I am yet to explore more.
1. But by design, who is expected to handle the SMI? Does this linux payload also receive this SMI interrupt? Or its handled by coreboot alone?
2. What effect does it have on the payload on runtime?
3. After SMM mode is over, does the payload resume?
I have minimal knowledge on SMM, so consider me noob. Maybe my questions doesn't make sense, so please correct me.