All of lore.kernel.org
 help / color / mirror / Atom feed
* How to build a 64 bit xen
@ 2010-05-18 13:11 lei yang
  2010-05-18 14:40 ` lei yang
  0 siblings, 1 reply; 8+ messages in thread
From: lei yang @ 2010-05-18 13:11 UTC (permalink / raw)
  To: Xen Mailing List, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 250 bytes --]

Hi experts,'

I build xen on my 64 bit redhat with "make xen", I got the image
xen-4.0.0.gz
then
$gunzip xen-4.0.0.gz
$file xen-4.0.0
it tells me it's 32 bit,but I saw it link the 64 bit lib

Thanks
Lei
-- 
"We learn from failure, not from success!"

[-- Attachment #1.2: Type: text/html, Size: 427 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to build a 64 bit xen
  2010-05-18 13:11 How to build a 64 bit xen lei yang
@ 2010-05-18 14:40 ` lei yang
  2010-05-18 15:13   ` George Dunlap
  0 siblings, 1 reply; 8+ messages in thread
From: lei yang @ 2010-05-18 14:40 UTC (permalink / raw)
  To: Xen Mailing List, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 491 bytes --]

Is there some body to help see your "$file xen-4.0.0" if your xen is 64 bit

Thanks
Lei

On Tue, May 18, 2010 at 9:11 PM, lei yang <yanglei.fage@gmail.com> wrote:

>
> Hi experts,'
>
> I build xen on my 64 bit redhat with "make xen", I got the image
> xen-4.0.0.gz
> then
> $gunzip xen-4.0.0.gz
> $file xen-4.0.0
> it tells me it's 32 bit,but I saw it link the 64 bit lib
>
> Thanks
> Lei
> --
> "We learn from failure, not from success!"
>



-- 
"We learn from failure, not from success!"

[-- Attachment #1.2: Type: text/html, Size: 981 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Re: How to build a 64 bit xen
  2010-05-18 14:40 ` lei yang
@ 2010-05-18 15:13   ` George Dunlap
  2010-05-18 15:20     ` Ian Campbell
  2010-06-01 16:07     ` Mike Viau
  0 siblings, 2 replies; 8+ messages in thread
From: George Dunlap @ 2010-05-18 15:13 UTC (permalink / raw)
  To: lei yang; +Cc: xen-devel, Xen Mailing List

I've cross-compiled 64-bit xen exclusively since I've worked for
XenSource basically.  Here's what I get:

$ file xen/xen
xen/xen: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
statically linked, stripped
$ file xen/xen-syms
xen/xen-syms: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
statically linked, not stripped

So I think 'file' is just making a mistake.

 -George

On Tue, May 18, 2010 at 9:40 AM, lei yang <yanglei.fage@gmail.com> wrote:
> Is there some body to help see your "$file xen-4.0.0" if your xen is 64 bit
>
> Thanks
> Lei
>
> On Tue, May 18, 2010 at 9:11 PM, lei yang <yanglei.fage@gmail.com> wrote:
>>
>> Hi experts,'
>>
>> I build xen on my 64 bit redhat with "make xen", I got the image
>> xen-4.0.0.gz
>> then
>> $gunzip xen-4.0.0.gz
>> $file xen-4.0.0
>> it tells me it's 32 bit,but I saw it link the 64 bit lib
>>
>> Thanks
>> Lei
>> --
>> "We learn from failure, not from success!"
>
>
>
> --
> "We learn from failure, not from success!"
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Re: How to build a 64 bit xen
  2010-05-18 15:13   ` George Dunlap
@ 2010-05-18 15:20     ` Ian Campbell
  2010-05-18 15:25       ` [Xen-devel] " Keir Fraser
                         ` (2 more replies)
  2010-06-01 16:07     ` Mike Viau
  1 sibling, 3 replies; 8+ messages in thread
From: Ian Campbell @ 2010-05-18 15:20 UTC (permalink / raw)
  To: George Dunlap; +Cc: lei yang, xen-devel, Xen Mailing List

On Tue, 2010-05-18 at 16:13 +0100, George Dunlap wrote:
> I've cross-compiled 64-bit xen exclusively since I've worked for
> XenSource basically.  Here's what I get:
> 
> $ file xen/xen
> xen/xen: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> statically linked, stripped
> $ file xen/xen-syms
> xen/xen-syms: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
> statically linked, not stripped
> 
> So I think 'file' is just making a mistake.

The 64 bit hypervisor really is encapsulated in a 32 bit container, see
the mkelf32 related rules in xen/arch/x86/Makefile.

I'm not sure why. Something to do with 32 bit bootloaders maybe?

Ian

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xen-devel] Re: How to build a 64 bit xen
  2010-05-18 15:20     ` Ian Campbell
@ 2010-05-18 15:25       ` Keir Fraser
  2010-05-18 15:26       ` lei yang
  2010-05-18 15:30       ` Tim Deegan
  2 siblings, 0 replies; 8+ messages in thread
From: Keir Fraser @ 2010-05-18 15:25 UTC (permalink / raw)
  To: Ian Campbell, George Dunlap; +Cc: lei yang, xen-devel, Xen Mailing List

On 18/05/2010 16:20, "Ian Campbell" <Ian.Campbell@citrix.com> wrote:

>> So I think 'file' is just making a mistake.
> 
> The 64 bit hypervisor really is encapsulated in a 32 bit container, see
> the mkelf32 related rules in xen/arch/x86/Makefile.
> 
> I'm not sure why. Something to do with 32 bit bootloaders maybe?

Multiboot spec only allows for booting 32-bit images.

 -- Keir

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xen-devel] Re: How to build a 64 bit xen
  2010-05-18 15:20     ` Ian Campbell
  2010-05-18 15:25       ` [Xen-devel] " Keir Fraser
@ 2010-05-18 15:26       ` lei yang
  2010-05-18 15:30       ` Tim Deegan
  2 siblings, 0 replies; 8+ messages in thread
From: lei yang @ 2010-05-18 15:26 UTC (permalink / raw)
  To: Ian Campbell; +Cc: George Dunlap, xen-devel, Xen Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 1021 bytes --]

It's bad luck for me not to boot with the 64 bit xen( which see its' 32 bit
with "file")
my bootloader is gpxe.and don't see any output log, just see the target
reboot

32 bit xen works well

Lei




On Tue, May 18, 2010 at 11:20 PM, Ian Campbell <Ian.Campbell@citrix.com>wrote:

> On Tue, 2010-05-18 at 16:13 +0100, George Dunlap wrote:
> > I've cross-compiled 64-bit xen exclusively since I've worked for
> > XenSource basically.  Here's what I get:
> >
> > $ file xen/xen
> > xen/xen: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> > statically linked, stripped
> > $ file xen/xen-syms
> > xen/xen-syms: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
> > statically linked, not stripped
> >
> > So I think 'file' is just making a mistake.
>
> The 64 bit hypervisor really is encapsulated in a 32 bit container, see
> the mkelf32 related rules in xen/arch/x86/Makefile.
>
> I'm not sure why. Something to do with 32 bit bootloaders maybe?
>
> Ian
>
>


-- 
"We learn from failure, not from success!"

[-- Attachment #1.2: Type: text/html, Size: 1579 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xen-devel] Re: How to build a 64 bit xen
  2010-05-18 15:20     ` Ian Campbell
  2010-05-18 15:25       ` [Xen-devel] " Keir Fraser
  2010-05-18 15:26       ` lei yang
@ 2010-05-18 15:30       ` Tim Deegan
  2 siblings, 0 replies; 8+ messages in thread
From: Tim Deegan @ 2010-05-18 15:30 UTC (permalink / raw)
  To: Ian Campbell; +Cc: lei yang, George Dunlap, xen-devel, Xen, List

At 16:20 +0100 on 18 May (1274199615), Ian Campbell wrote:
> On Tue, 2010-05-18 at 16:13 +0100, George Dunlap wrote:
> > I've cross-compiled 64-bit xen exclusively since I've worked for
> > XenSource basically.  Here's what I get:
> > 
> > $ file xen/xen
> > xen/xen: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> > statically linked, stripped
> > $ file xen/xen-syms
> > xen/xen-syms: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
> > statically linked, not stripped
> > 
> > So I think 'file' is just making a mistake.
> 
> The 64 bit hypervisor really is encapsulated in a 32 bit container, see
> the mkelf32 related rules in xen/arch/x86/Makefile.
> 
> I'm not sure why. Something to do with 32 bit bootloaders maybe?

Yep.  The Multiboot standard specifies that the kernel should be started
in 32-bit protected mode with flat 4GB segments.  Xen bootstraps itself
from there up into 64-bit mode.

Tim.

-- 
Tim Deegan <Tim.Deegan@citrix.com>
Principal Software Engineer, XenServer Engineering
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Re: [Xen-devel] Re: How to build a 64 bit xen
  2010-05-18 15:13   ` George Dunlap
  2010-05-18 15:20     ` Ian Campbell
@ 2010-06-01 16:07     ` Mike Viau
  1 sibling, 0 replies; 8+ messages in thread
From: Mike Viau @ 2010-06-01 16:07 UTC (permalink / raw)
  To: yanglei.fage; +Cc: xen-devel, xen-users


[-- Attachment #1.1: Type: text/plain, Size: 2078 bytes --]


Yup, it was my understanding that the (ELF 32-bit LSB executable) xen hypervisor handed off control to a 64-bit hyper-visor.

This 32-bits step was required for the boot loader (e.g.: grub) to hand over control.

 

-M


> Date: Tue, 18 May 2010 10:13:22 -0500
> From: dunlapg@umich.edu
> To: yanglei.fage@gmail.com
> CC: xen-devel@lists.xensource.com; xen-users@lists.xensource.com
> Subject: [Xen-users] Re: [Xen-devel] Re: How to build a 64 bit xen
> 
> I've cross-compiled 64-bit xen exclusively since I've worked for
> XenSource basically.  Here's what I get:
> 
> $ file xen/xen
> xen/xen: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> statically linked, stripped
> $ file xen/xen-syms
> xen/xen-syms: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
> statically linked, not stripped
> 
> So I think 'file' is just making a mistake.
> 
>  -George
> 
> On Tue, May 18, 2010 at 9:40 AM, lei yang <yanglei.fage@gmail.com> wrote:
> > Is there some body to help see your "$file xen-4.0.0" if your xen is 64 bit
> >
> > Thanks
> > Lei
> >
> > On Tue, May 18, 2010 at 9:11 PM, lei yang <yanglei.fage@gmail.com> wrote:
> >>
> >> Hi experts,'
> >>
> >> I build xen on my 64 bit redhat with "make xen", I got the image
> >> xen-4.0.0.gz
> >> then
> >> $gunzip xen-4.0.0.gz
> >> $file xen-4.0.0
> >> it tells me it's 32 bit,but I saw it link the 64 bit lib
> >>
> >> Thanks
> >> Lei
> >> --
> >> "We learn from failure, not from success!"
> >
> >
> >
> > --
> > "We learn from failure, not from success!"
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
> >
> >
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xensource.com
> http://lists.xensource.com/xen-users
 		 	   		  
_________________________________________________________________
Win a $10,000 shopping spree from Hotmail! Enter now.
http://go.microsoft.com/?linkid=9729711

[-- Attachment #1.2: Type: text/html, Size: 2716 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-06-01 16:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-18 13:11 How to build a 64 bit xen lei yang
2010-05-18 14:40 ` lei yang
2010-05-18 15:13   ` George Dunlap
2010-05-18 15:20     ` Ian Campbell
2010-05-18 15:25       ` [Xen-devel] " Keir Fraser
2010-05-18 15:26       ` lei yang
2010-05-18 15:30       ` Tim Deegan
2010-06-01 16:07     ` Mike Viau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.