From: Laszlo Ersek <lersek@redhat.com>
To: Yu-Cheng Liu <peter90609@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] simulate SMI in Qemu
Date: Fri, 31 Jul 2015 19:27:52 +0200 [thread overview]
Message-ID: <55BBB018.5000003@redhat.com> (raw)
In-Reply-To: <CACS=nFNU2oL0FgKxaxc1qc_8gvoqy7Q29CF_NBtjmon=ebgB=Q@mail.gmail.com>
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
prev parent reply other threads:[~2015-07-31 17:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 7:16 [Qemu-devel] simulate SMI in Qemu Yu-Cheng Liu
2015-07-31 17:27 ` Laszlo Ersek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55BBB018.5000003@redhat.com \
--to=lersek@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter90609@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).