[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Why the built xen file is 32-bit on 64-bit OS?



El 27/10/15 a les 11.08, Nan Xiao ha escrit:
> Hi all,
> 
> Greetings from me!
> 
> I am a newbie of Xen. After using default configuration to build Xen
> 4.6.0 on 64-bit Linux,
> I find the generated xen file is 32-bit:
> 
> Linux:~/Downloads/xen-4.6.0/xen # file xen
> xen: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> statically linked, stripped
> 
> While the xen-syms file is 64-bit:
> Linux:~/Downloads/xen-4.6.0/xen # file xen-syms
> xen-syms: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
> statically linked, not stripped
> 
> Why the xen file is 32-bit? Personally, I think it should also be 64-bit.

The Xen entry point is in 32bits (because that's what the multiboot
specification requires). Xen then jumps into long mode (64bits) by
itself, so there's only a very small amount of 32bit code that's used as
a trampoline.

Roger.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.