On 05/05/15 18:42, Brian J. Johnson wrote:
> On 05/04/2015 10:55 AM, Paolo Bonzini wrote:
>> The SMM entry vector will start in a 16-bit real mode code segment,
>> albeit with 4GB segment limits.  So there must be yet another 32-bit
>> protected mode switching sequence somewhere.  So my guess is:
>>
>> 1) you can add a 32->64-bit mode world switch there.  I know your love
>> for this kind of code, I guess you can bribe someone to take care of
>> this part.:)
> 
> It would seem that Intel should be able to provide it...

Agreed.

> there's nothing
> magical

Depends on who you ask :)

> or proprietary about it,

Let's hope.

> and it's only a couple dozen
> instructions.  I'm not quite sure who to ask, though.

While we were still thinking that no public & open source SMM code
existed *at all*, we proposed (thanks to Jordan's idea) that this topic
be discussed in one of the joint Intel-RH virt meetings (a confcall).

Then Jiewen pointed us to the Quark package, and I thought that we were
all set, so I asked the meeting's organizer to drop the topic from the
agenda.

Now that we're seeing that we're not fully covered in fact, we could try
to put the topic back on the agenda... It's just that I wouldn't want to
jerk around the organizer.

Plus, the first TODO item for the topic was "figure out who has
jurisdiction @ Intel" anyway. On that (private) thread Mike & Vincent
were Cc'd as well, but ultimately it didn't get established who could
authorize opening up such code.

> Really, you need Intel's 64-bit version of PiSmmCpuDxeSmm.

Yes.

> At least the
> SmmInit.{asm,S} files, and ideally all their other SMM support code.

Ideally, yes.

> Are
> there any Intel folks on the list who can authorize that?

I'm not sure why we had not been getting feedback for this question (see
above) -- simply lack of resources, or maybe some other reason that
prevented open sourcing the code.

I think it would benefit the wider community if OVMF supported SMM; see
for example these threads:

<http://thread.gmane.org/gmane.comp.bios.tianocore.devel/6731>:
On 03/25/14 11:03, Lethom Legrand wrote:
> (another “bonus” question: have you any idea of how I can debug SMM
> code? For instance, in KVM?)

<http://thread.gmane.org/gmane.comp.bios.tianocore.devel/6983>:
On 04/27/14 08:41, WANG Siyuan wrote:
> I want to add smm support to OVMF to see how DXE_SMM_DRIVER works.

<http://thread.gmane.org/gmane.comp.bios.tianocore.devel/9593>:
On 09/06/14 12:52, stanley.ganyezu wrote:
> Currently, X86 cpu run SMM in 32-bit. There are a lot of limitation
> about 32-bit. I want to run SMM in 64-bit to access whole cpu address
> space,but I can’t figure it out.

<http://thread.gmane.org/gmane.comp.bios.tianocore.devel/12561>:
On 02/12/15 01:56, Edward Chicopee wrote:
> Does QEMU/OVMF not bother doing SMM?

On 05/05/15 18:42, Brian J. Johnson wrote:
> It seems
> silly for you to have to write it from scratch.

Indeed. Not to mention, emotionally devastating. :(

Thanks,
Laszlo

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to