Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why the architecture = pentium4 in XEN?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
johnnytheswede
n00b
n00b


Joined: 12 Mar 2010
Posts: 21

PostPosted: Tue Feb 22, 2011 4:10 pm    Post subject: Why the architecture = pentium4 in XEN? Reply with quote

I am gathering information to install XEN hypervisor on my computer, I today run an ordinary Gentoo. What I am wondering is why I need to put arch=pentium4 in my make.conf... I google around and can't find the reason. Can I go with arch=nocona (Core 2) which work fine for ordinary Gentoo or is XEN in special need of arch=pentium4?

Greetings
Johnny
_________________
I used to be undecided, but, uhm... now I don't really know anymore
Back to top
View user's profile Send private message
teg
n00b
n00b


Joined: 20 Feb 2011
Posts: 6
Location: OSTROWIEC ŚWIĘTOKRZYSKI

PostPosted: Tue Feb 22, 2011 9:01 pm    Post subject: Reply with quote

Not to make another topic: I have similar question. I want to compile kernel and software for 64-bit Virtual Machine. But it will have to work on different architectures: on Intel Core2Duo (and higher) 64 bit CPU's and on AMD Athlon (and higher) Multi-core 64bit CPUs. Which 'CFLAGS= -march=???' option should I use - maybe 'nocona'? I want it to be optimized for x64, it won't have to run on x32 systems. Please help me quickly, I have little time left to finish this.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1991
Location: Poland

PostPosted: Wed Feb 23, 2011 7:28 am    Post subject: Reply with quote

Yes, use 'nocona'.
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Wed Feb 23, 2011 2:28 pm    Post subject: Reply with quote

On my 32 bit genny, complete with xen,
Code:

idella@genny /mnt/karmic/boot/grub $ grep -e CFLAGS /etc/make.conf
CFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs"
CXXFLAGS="${CFLAGS}"

On my gentoo64 complete with xen,
Code:

idella@genny /mnt/karmic/boot/grub $ grep -e CFLAGS /mnt/gentoo64//etc/make.conf
CFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs -ggdb"
CXXFLAGS="${CFLAGS}"


Code:

idella@genny /mnt/karmic/boot/grub $ uname -a
Linux genny 2.6.36-tuxonice #15 SMP Sat Nov 20 00:43:37 WST 2010 i686 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz GenuineIntel GNU/Linux

_________________
idella4@aus
Back to top
View user's profile Send private message
cjubon
Guru
Guru


Joined: 03 Jul 2007
Posts: 450
Location: Vienna/Europe

PostPosted: Sat Apr 02, 2011 7:37 pm    Post subject: Reply with quote

johnnytheswede wrote:
I am wondering is why I need to put arch=pentium4

P4 is just an example, you can also specify i686 or what not. The point is that you have to add "-mno-tls-direct-seg-refs" only if you deploy xen on a 32bit arch.

@idella4:
Hence, while it’s important to add the "-mno-tls-direct-seg-refs" CFLAG for your 32bit system, it’s not necessary to add "-mno-tls-direct-seg-refs" to your CFLAGS in the gentoo64 case.
_________________
Mandrake Dec 2001 · Debian "Woody" Aug 2002 · Gentoo Jan 2004 · Funtoo Oct 2009
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum