View previous topic :: View next topic |
Author |
Message |
johnnytheswede n00b
Joined: 12 Mar 2010 Posts: 21
|
Posted: Tue Feb 22, 2011 4:10 pm Post subject: Why the architecture = pentium4 in XEN? |
|
|
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 |
|
|
teg n00b
Joined: 20 Feb 2011 Posts: 6 Location: OSTROWIEC ŚWIĘTOKRZYSKI
|
Posted: Tue Feb 22, 2011 9:01 pm Post subject: |
|
|
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 |
|
|
mbar Veteran
Joined: 19 Jan 2005 Posts: 1991 Location: Poland
|
Posted: Wed Feb 23, 2011 7:28 am Post subject: |
|
|
Yes, use 'nocona'. |
|
Back to top |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Wed Feb 23, 2011 2:28 pm Post subject: |
|
|
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 |
|
|
cjubon Guru
Joined: 03 Jul 2007 Posts: 450 Location: Vienna/Europe
|
Posted: Sat Apr 02, 2011 7:37 pm Post subject: |
|
|
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 |
|
|
|