Re: [XenPPC] [PATCH 6/6][TOOLS][XM-TEST] Add configuration data for powerpc

2006-10-02 Thread Jimi Xenidis


On Oct 2, 2006, at 1:37 AM, Tony Breeds wrote:


On Sun, Oct 01, 2006 at 08:59:44AM -0400, Jimi Xenidis wrote:


This can not be correct, I suppose it should return nothing?


okay.  Looking at the callers for getDeviceModel, it's only needed for
HVM domains and the method/function is only used inside arch.py so  
I've

pruned it from XenDomain and consequently it's unneeded at all in PPC.



I cannot actually find any callers?!
Dan,Sean, that makes sense?

-JX


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


Re: [XenPPC] [PATCH 6/6][TOOLS][XM-TEST] Add configuration data for powerpc

2006-10-02 Thread Dan Smith
JX I cannot actually find any callers?!  Dan,Sean, that makes sense?

Actually, Dan Stekloff did most of the HVM work for xm-test, so he
would know better than I.

I would guess that the function is cruft leftover from before we moved
to the larger domain abstraction.

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [EMAIL PROTECTED]


pgppfpHpItoRJ.pgp
Description: PGP signature
___
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Re: [XenPPC] [PATCH 6/6][TOOLS][XM-TEST] Add configuration data for powerpc

2006-10-01 Thread Jimi Xenidis

couple things

On Sep 29, 2006, at 5:57 AM, Tony Breeds wrote:


Add configuration data for powerpc.

Allows for building of initrd, and running of tests.

Signed-off-by: Tony Breeds [EMAIL PROTECTED]
---

tools/xm-test/lib/XmTestLib/arch.py |   30 +
tools/xm-test/lib/XmTestReport/arch.py  |6
tools/xm-test/ramdisk/Makefile.am   |2
tools/xm-test/ramdisk/configs/buildroot-powerpc |  334 + 
+++

4 files changed, 371 insertions(+), 1 deletion(-)

diff -r 989b397808f8 -r 82402a95e380 tools/xm-test/lib/XmTestLib/ 
arch.py
--- a/tools/xm-test/lib/XmTestLib/arch.py	Fri Sep 29 17:11:31 2006  
+1000
+++ b/tools/xm-test/lib/XmTestLib/arch.py	Fri Sep 29 20:52:32 2006  
+1000

@@ -80,6 +80,29 @@ ia_HVMDefaults =  {memory   :
 }
 # End  : Intel ia32 and ia64 as well as AMD 32-bit and 64-bit  
processors


+# Begin: PowerPC
+def ppc_minSafeMem():
+return 64
+
+def ppc_getDeviceModel():
+return /usr/lib64/xen/bin/qemu-dm


This can not be correct, I suppose it should return nothing?


+
+def ppc_getDefaultKernel():
+Get the path to the default DomU kernel
+dom0Ver = commands.getoutput(uname -r);
+domUVer = dom0Ver.replace(xen0, xenU);
+
+return /boot/vmlinux- + domUVer;
+
+ppc_ParavirtDefaults = {memory  : 64,
+vcpus   : 1,
+kernel  : ppc_getDefaultKernel(),
+root: /dev/ram0,
+ramdisk : getRdPath() + /initrd.img,
+extra   : xencons=tty128 console=tty128,
+}
+# End  : PowerPC
+
 Convert from uname specification to a more general platform.
 _uanme_to_arch_map = {
 i386  : x86,
@@ -87,6 +110,8 @@ _uanme_to_arch_map = {
 i586  : x86,
 i686  : x86,
 ia64  : ia64,
+ppc   : powerpc,
+ppc64 : powerpc,
 }



_uanme this must be one pervasive typo


 # Lookup current platform.
@@ -99,5 +124,10 @@ if _arch == x86 or _arch == ia64:
 configDefaults = ia_HVMDefaults
 else:
 configDefaults = ia_ParavirtDefaults
+elif _arch == powerpc:
+minSafeMem = ppc_minSafeMem
+getDeviceModel = ppc_getDeviceModel
+getDefaultKernel = ppc_getDefaultKernel
+configDefaults = ppc_ParavirtDefaults
 else:
 raise ValueError, Unknown architecture!
diff -r 989b397808f8 -r 82402a95e380 tools/xm-test/lib/XmTestReport/ 
arch.py
--- a/tools/xm-test/lib/XmTestReport/arch.py	Fri Sep 29 17:11:31  
2006 +1000
+++ b/tools/xm-test/lib/XmTestReport/arch.py	Fri Sep 29 20:52:32  
2006 +1000

@@ -29,6 +29,8 @@ _uanme_to_arch_map = {
 i586 : x86,
 i686 : x86,
 ia64 : ia64,
+ppc   : powerpc,
+ppc64 : powerpc,
 }


_uanme again, even that japanese to english dictionary doesn't know  
what it is :)


 _arch = _uanme_to_arch_map.get(os.uname()[4], Unknown)
@@ -38,5 +40,9 @@ elif _arch == ia64:
 elif _arch == ia64:
 cpuValues = {arch : Unknown,
  features : Unknown}
+elif _arch == powerpc:
+cpuValues = {cpu  : Unknown,
+ platform : Unknown,
+ revision : Unknown}
 else:
 raise ValueError, Unknown architecture!
diff -r 989b397808f8 -r 82402a95e380 tools/xm-test/ramdisk/Makefile.am
--- a/tools/xm-test/ramdisk/Makefile.am Fri Sep 29 17:11:31 2006 +1000
+++ b/tools/xm-test/ramdisk/Makefile.am Fri Sep 29 20:52:32 2006 +1000
@@ -2,7 +2,7 @@ INITRD ?= http://xm-test.xensource.com/r

 EXTRA_DIST = skel configs patches

-BR_ARCH = $(shell uname -m | sed -e s/i.86/i386/)
+BR_ARCH = $(shell uname -m | sed -e s/i.86/i386/ -e 's/ppc\(64\)*/ 
powerpc/')


 BR_TAR = buildroot-snapshot.tar.bz2
 BR_URL = http://buildroot.uclibc.org/downloads/snapshots/$(BR_TAR)
diff -r 989b397808f8 -r 82402a95e380 tools/xm-test/ramdisk/configs/ 
buildroot-powerpc

--- /dev/null   Thu Jan 01 00:00:00 1970 +
+++ b/tools/xm-test/ramdisk/configs/buildroot-powerpc	Fri Sep 29  
20:52:32 2006 +1000

@@ -0,0 +1,334 @@
+#
+# Automatically generated make config: don't edit
+#
+BR2_HAVE_DOT_CONFIG=y
+# BR2_alpha is not set
+# BR2_arm is not set
+# BR2_armeb is not set
+# BR2_cris is not set
+# BR2_i386 is not set
+# BR2_m68k is not set
+# BR2_mips is not set
+# BR2_mipsel is not set
+# BR2_nios2 is not set
+BR2_powerpc=y
+# BR2_sh is not set
+# BR2_sh64 is not set
+# BR2_sparc is not set
+# BR2_x86_64 is not set
+# BR2_x86_i386 is not set
+# BR2_x86_i486 is not set
+# BR2_x86_i586 is not set
+# BR2_x86_i686 is not set
+BR2_ARCH=powerpc
+BR2_ENDIAN=BIG
+
+#
+# Build options
+#
+BR2_WGET=wget --passive-ftp
+BR2_SVN=svn co
+BR2_TAR_OPTIONS=
+BR2_DL_DIR=$(BASE_DIR)/dl
+BR2_SOURCEFORGE_MIRROR=easynews
+BR2_STAGING_DIR=$(BUILD_DIR)/staging_dir
+BR2_TOPDIR_PREFIX=
+BR2_TOPDIR_SUFFIX=
+BR2_GNU_BUILD_SUFFIX=pc-linux-gnu
+BR2_GNU_TARGET_SUFFIX=linux-uclibc
+BR2_JLEVEL=1
+
+#
+# Toolchain Options
+#
+
+#
+# Kernel Header Options
+#
+# BR2_KERNEL_HEADERS_2_4_25 is not set
+# BR2_KERNEL_HEADERS_2_4_27 is not set
+# BR2_KERNEL_HEADERS_2_4_29 is not set
+#