ia64/xen-unstable

changeset 7990:393256b2ead0

Avoid GPF when attempting to save / restore 64bit guests. More thought
required as to best way to get M2P mfns under 64...

Signed-off-by: Steven Hand <steven@xensource.com>
author smh22@firebug.cl.cam.ac.uk
date Tue Nov 22 19:10:50 2005 +0100 (2005-11-22)
parents c7508abc5b6b
children b6ebabe4658a 52bddfb334ae
files linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c	Tue Nov 22 18:44:08 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c	Tue Nov 22 19:10:50 2005 +0100
     1.3 @@ -222,6 +222,17 @@ static int privcmd_ioctl(struct inode *i
     1.4  		unsigned long *p; 
     1.5  		int i; 
     1.6  
     1.7 +#if defined (__x86_64__)
     1.8 +		/* 
     1.9 +		** XXX SMH: the below procedure won't work for 64 since 
    1.10 +		** we don't have access to the memory which maps the M2P. 
    1.11 +		** A proper fix will probably involve moving this 
    1.12 +		** functionality to Xen - for now just return an error 
    1.13 +		** here rather than GPF'ing in the kernel. 
    1.14 +		*/
    1.15 +		ret = -EINVAL; 
    1.16 +		break; 
    1.17 +#endif
    1.18  		if (copy_from_user(&m, (void *)data, sizeof(m)))
    1.19  			return -EFAULT;
    1.20