qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] simulate SMI in Qemu
@ 2015-07-30  7:16 Yu-Cheng Liu
  2015-07-31 17:27 ` Laszlo Ersek
  0 siblings, 1 reply; 2+ messages in thread
From: Yu-Cheng Liu @ 2015-07-30  7:16 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

hello,
Does QEMU support SMI/SMM implementation?  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?

If anyone have experience please share to me ~
thanks~

[-- Attachment #2: Type: text/html, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] simulate SMI in Qemu
  2015-07-30  7:16 [Qemu-devel] simulate SMI in Qemu Yu-Cheng Liu
@ 2015-07-31 17:27 ` Laszlo Ersek
  0 siblings, 0 replies; 2+ messages in thread
From: Laszlo Ersek @ 2015-07-31 17:27 UTC (permalink / raw)
  To: Yu-Cheng Liu; +Cc: Paolo Bonzini, qemu-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-31 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-30  7:16 [Qemu-devel] simulate SMI in Qemu Yu-Cheng Liu
2015-07-31 17:27 ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).