changeset 233:f1e046c79764

cp: hoist initial PASCE load to cp_init We want to do a PASCE load only once - during initialization of the guest. Not every time the guest gets to run. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Sat, 10 Jan 2009 16:57:16 -0500
parents ff2d5de030cc
children b4b9b899f49e
files cp/guest.c cp/init.c
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/cp/guest.c	Sat Jan 10 16:54:08 2009 -0500
+++ b/cp/guest.c	Sat Jan 10 16:57:16 2009 -0500
@@ -16,11 +16,6 @@
 	 */
 
 	/*
-	 * load guest's address space into the host's PASCE
-	 */
-	load_as(&sys->as);
-
-	/*
 	 * FIXME: load FPRs & FPCR
 	 */
 
--- a/cp/init.c	Sat Jan 10 16:54:08 2009 -0500
+++ b/cp/init.c	Sat Jan 10 16:57:16 2009 -0500
@@ -89,6 +89,11 @@
 
 	__alloc_guest_storage(sys);
 
+	/*
+	 * load guest's address space into the host's PASCE
+	 */
+	load_as(&sys->as);
+
 	memset(&cpu->sie_cb, 0, sizeof(struct sie_cb));
 	cpu->sie_cb.gmsor = 0;
 	cpu->sie_cb.gmslm = sys->directory->storage_size;