Regards, Ray
>-----Original Message----- >From: Laszlo Ersek [mailto:[email protected]] >Sent: Monday, March 14, 2016 4:11 PM >To: Ni, Ruiyu <[email protected]>; Justen, Jordan L ><[email protected]> >Cc: [email protected] <[email protected]>; Gerd Hoffmann ><[email protected]> >Subject: Re: Software SMI STS bit is not set when writing port B2 in QEMU Q35 > >On 03/14/16 08:30, Ni, Ruiyu wrote: >> Laszlo, Jordan, >> >> When launching QEMU in Q35 target mode, when writing to IO port 0xB2, >> >> the accordingly SMI STS bit (PmBase + 0x34, BIT5) is not set. >> >> >> >> Is it a QEMU's bug? > >I'd rather call it a "choice". > >> >> I do find comments in OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.c: >> >> SmmControl2DxeClear(): >> >> ---------------- COMMENTS ------ >> >> In fact QEMU automatically deasserts CPU_INTERRUPT_SMI in: >> >> - x86_cpu_exec_interrupt() and >> >> - kvm_arch_pre_run() > >I guess that function might be to clear SMI_STS indeed (and possibly >other things asserted by an SMI) if there was any need. I tried to hook a software SMI (triggered by B2) but the handler/callback was never called. I know that when booting to ACPI OS, OS writes to B2 with certain value to tell firmware to enable SCI. That is achieved through the software SMI. The software SMI handler gets called when a certain value is written to B2. I am wondering how that is implemented in OVMF. > >Thanks >Laszlo _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

