We have been looking at the code in tboot.c that sets the tboot memory 
area to E820_UNUSABLE when it detects that the next module is not Linux. 
Specifically this code:

uint32_t mem_type = is_kernel_linux() ? E820_RESERVED : E820_UNUSABLE;

And this commit:

http://hg.code.sf.net/p/tboot/code/rev/b170b7b39e5c

It seems to make sense to set the region to reserved but we do not 
understand why the region is set to unusable in the other case. Can 
someone explain the reasoning behind this?

Also, the check for is_kernel_linux() relies on it not being an elf 
image but this doesn't seem very correct. Not being an elf image does 
not imply it is a Linux kernel. Are you relying on the fact that only 
Linux and Xen are used with tboot at the moment?

Thanks,
Ross Philipson

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
tboot-devel mailing list
tboot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tboot-devel

Reply via email to