Generating elf kernel ?

Scott Wood scottwood at
Sat Sep 18 03:44:48 EST 2010

On Fri, 17 Sep 2010 09:58:41 +0800
"tiejun.chen" <tiejun.chen at> wrote:

> Scott Wood wrote:
> > The guest OS *is* the same as native Linux, as far as TLB handling is
> > concerned.
> Looks you means the TLB exception handler should be same between the native and
> the guest OS. Right?


> Here I assume we're talking about e500mc since as far as I know for Freescale
> only e500mc is designed to support virtual machine based on ISA 2.0.6.

Yes, though there's nothing preventing virtualization on cores without
category E.HV (KVM supports this) -- it's just slower.

> I also know all TLB exceptions can direct to the guest OS when we enable
> EPCR[DTLBGS|ITLBGS|DSIGS|ISIGS]. But some TLB instructions (i.e. tlbwe )are the
> privileged instructions. So the guest OS always trap into the hypervisor and
> then the hypervisor should complete the real action with appropriate physical
> address. 

Yes, of course.  But that's not the point.  I was just using it as a
convenient example because that's what I've recently done ELF loading
with...  There's no reason U-Boot couldn't do the same if its ELF
loader were updated to support device trees.  Currently U-Boot loads
bootwrapperless uImages to physical address zero.

And FWIW, we have run setups where our hv loads Linux to true
physical zero (with the hv living elsewhere), not just guest physical.


More information about the Linuxppc-dev mailing list