Re: OpenSSI preview on Debian Lenny (on x86_64)

John Hughes <[email protected]> Sat, 17 Apr 2010 20:36:56 +0200
Newsgroups gmane.linux.cluster.ssic.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------020100080602080209020202
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

John Hughes wrote:
> John Hughes wrote:
>>
>>        pud = pud_offset(pgd, apip->api_addr);
> It seems than when we get here "pgd_none (pgd)" is true, so maybe we 
> should be doing a pud_alloc instead of just "pud = pud_offset(...)".
>
> But it doesn't seem to work, that just makes us hang.
Because I screwed up.

Yes, we should be doing pud_alloc, not just pud_offset.

This patch makes migration work.

Well, almost.  The migrated process seems not to be able to access its 
terminal.




--------------020100080602080209020202
Content-Type: text/x-patch;
 name="as-xscribe-64bit.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="as-xscribe-64bit.patch"

Index: cluster/ssi/vproc/as_xscribe.c
===================================================================
RCS file: /usr/local/lib/cvs-repo/openssi-future/cluster/ssi/vproc/Attic/as_xscribe.c,v
retrieving revision 1.1.4.4
diff -u -p -r1.1.4.4 as_xscribe.c
--- cluster/ssi/vproc/as_xscribe.c	2 Jan 2010 12:52:01 -0000	1.1.4.4
+++ cluster/ssi/vproc/as_xscribe.c	17 Apr 2010 18:32:58 -0000
@@ -980,8 +980,11 @@ as_do_pg(as_pg_info *apip, as_info *asip
 	}
 	flush_dcache_page(apip->api_page);
 	pgd = pgd_offset(mm, apip->api_addr);
-	pud = pud_offset(pgd, apip->api_addr);
 	spin_lock(&mm->page_table_lock);
+	if (!(pud = pud_alloc(mm, pgd, apip->api_addr))) {
+		error = -EAGAIN;
+		goto out_unlock_spin;
+	}
 	if (!(pmd = pmd_alloc(mm, pud, apip->api_addr))) {
 		error = -EAGAIN;
 		goto out_unlock_spin;

--------------020100080602080209020202
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--------------020100080602080209020202
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ssic-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ssic-linux-devel

--------------020100080602080209020202--