Re: [RFC v2][PATCH 1/1] intel_txt: Intel(R) TXT and tboot kernel support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Saturday, April 25, 2009 - 8:56 am

On Fri, Apr 24, 2009 at 02:57:34PM -0700, Cihula, Joseph wrote:

But it's the same type. Or are you saying that include file is shared
with another project? Why can't tboot include the ACPICA include files?
If it's shared with another project there should be a clear comment
about that.


Seems pointless when legacy implementations like this one cannot deal with 
that.


I think you should fix KVM then, not hack around it here.


Hmm weird. Normally caches should be physical anyways.


Sounds strange. Is that back by some requirement in the SDM?
Perhaps it's just a race of some sort and you're masking it by
wbinvd being very slow.


I would double check that. Does a udelay(10) fix it too?


I would also recommend to a add an explicit check for para virtualization
somewhere and bail out.


On 32bit the kernel direct mapping is virtually < 4GB. So when tboot happens
to put some data into the usual 0xc0000... range the kernel lives
in you would have conflicting mappings for the short period
you're still executing in the kernel mapping.



Just make sure early panics before your initialization are covered.


No, but the direct shutdown code tends to load a special IDT

Thinking of it the BIOS/ACPI shutdowns might be buggy this way.

But your case is worse than any of them because you likely need longer
so the race window is larger.

I would recommend to load a special IDT before entering
a special context to avoid all that.


It'll be a triple fault, these tend to be hard to debug.  Better just loop.


Assuming nothing ever corrupts memory?
What happens when it's wrong?


Still seems like a lot of reinvention. It would be better if you
could integrate that with ACPI more cleanly.


I meant it should use offsetof(), not opencoding it.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC v2][PATCH 1/1] intel_txt: Intel(R) TXT and tboot ..., Jeremy Fitzhardinge, (Wed Apr 22, 1:31 pm)
Re: [RFC v2][PATCH 1/1] intel_txt: Intel(R) TXT and tboot ..., Andi Kleen, (Sat Apr 25, 8:56 am)