qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] simulate SMI in Qemu


From: Laszlo Ersek
Subject: Re: [Qemu-devel] simulate SMI in Qemu
Date: Fri, 31 Jul 2015 19:27:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

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

[Prev in Thread] Current Thread [Next in Thread]