On 07/30/15 09:16, Yu-Cheng Liu wrote:
> hello,
> Does QEMU support SMI/SMM implementation?

Yes.

> I use Qemu and coreboot to
> trace the procedure of the SMI/SMM ,the program return  in SMM initial
> function ,the reason is the value return from "pci_read_word" ,the
> function always return 0, whatever the address I give.
> 
> I want to simulate the board by qemu and use coreboot as BIOS,then
> trigger SMI by post value to b2h port ,Is that my idea can work ? or I
> need to  burn coreboot.rom in real motherboard?

You should use the Q35 machine type. With regard to triggering an SMI,
one implementation you could refer to is here:

http://thread.gmane.org/gmane.comp.bios.edk2.devel/329/focus=332

(ICH9_APM_CNT is 0xB2, etc.)

Also, if you use KVM for acceleration, be sure to run a recent enough
upstream kernel on the host.

Laszlo

Reply via email to