From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLE6C-0004K2-TJ for qemu-devel@nongnu.org; Fri, 31 Jul 2015 13:28:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLE67-0004OQ-Tf for qemu-devel@nongnu.org; Fri, 31 Jul 2015 13:28:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLE67-0004OM-P7 for qemu-devel@nongnu.org; Fri, 31 Jul 2015 13:27:55 -0400 References: From: Laszlo Ersek Message-ID: <55BBB018.5000003@redhat.com> Date: Fri, 31 Jul 2015 19:27:52 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] simulate SMI in Qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yu-Cheng Liu Cc: Paolo Bonzini , qemu-devel@nongnu.org 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