Hello everyone I also want to add smm support to OVMF. Starting with the previous set of commits (very clear, btw, thank you very much!), I made some progress. However, I get the following error during boot process:
`SMM IPL could not find a large enough SMRAM region to load SMM Core` My understanding of the QEMU virtualized architecture is the following: the SMRAM starts at 0xa0000 and has a size of 128Ko. Can you confirm me I'm right? Or, if not, can you tell me where I am wrong? So it makes sense, because when you search in EDKII SmmIpl code, you can see that SmmCore needs 256 - 4 Ko. Here is my code for GetCapabilities function: I studied a little the q35 machine of qemu and it appears if the implementation of smm is complete, it should be perfect because of the TSEG memory used by SMM that is big enough for SMM Core. But q35 machine is not supported by OVMF... What do you think about adding the support of q35 machine to OVMF? Is it painful, is it doable? Thank you by advance! Thomas On 28/04/2014 18:33, Laszlo Ersek wrote: > On 04/27/14 17:38, Jordan Justen wrote: >> On Sat, Apr 26, 2014 at 11:41 PM, WANG Siyuan <[email protected]> >> wrote: >>> Hi, >>> I want to add smm support to OVMF to see how DXE_SMM_DRIVER works. >>> I add MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf and >>> MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf to Ovmf's .dsc and .fdf files. But >>> 2 protocols are needed: EFI_SMM_ACCESS2_PROTOCOL and >>> EFI_SMM_CONTROL2_PROTOCOL. >>> >>> I am not sure how to add these two protocols. Does anybody ever added smm >>> support to OVMF? >> >> Apparently, the non-VM accelerated QEMU supports SMM, but we have not >> added support for this in OVMF. >> >> The VM accelerated QEMU+KVM doesn't support SMM. Usually you want to >> use KVM for the performance advantage, so most of the time SMM support >> would not be usable with OVMF. >> >> I think Laszlo's s3_v2 (not v3) branch at: >> https://github.com/lersek/edk2.git >> may have set up an environment that pretended to support those SMM >> protocols. > > Huh, what a surprise; I had pushed that there?... :) > > So, the following three commits are theoretically relevant: > 1. https://github.com/lersek/edk2/commit/59fc7eb2 > adds the two protocols > > 2. https://github.com/lersek/edk2/commit/5188c6cf > pulls in PiSmmIpl and PiSmmCore, and resolves some library > dependencies for them > > 3. https://github.com/lersek/edk2/commit/0fb124ea > pulls in an SMM DXE driver, resolving some library deps for it > >> But, I don't think that would get you very far in working >> on a real SMM driver. > > Agreed! :) > Laszlo > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. Get > unparalleled scalability from the best Selenium testing platform available. > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > edk2-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/edk2-devel >
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ The best possible search technologies are now affordable for all companies. Download your FREE open source Enterprise Search Engine today! Our experts will assist you in its installation for $59/mo, no commitment. Test it for FREE on our Cloud platform anytime! http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
