mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
This commit is contained in:
1 parent
869e86d8e6
commit
1366ee55cc
1 file changed
+11
@@ -222,6 +222,17 @@ static int privcmd_ioctl(struct inode *inode, struct file *file,
|
||||
unsigned long *p;
|
||||
int i;
|
||||
|
||||
#if defined (__x86_64__)
|
||||
/*
|
||||
** XXX SMH: the below procedure won't work for 64 since
|
||||
** we don't have access to the memory which maps the M2P.
|
||||
** A proper fix will probably involve moving this
|
||||
** functionality to Xen - for now just return an error
|
||||
** here rather than GPF'ing in the kernel.
|
||||
*/
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
#endif
|
||||
if (copy_from_user(&m, (void *)data, sizeof(m)))
|
||||
return -EFAULT;
|
||||
|
||||
|
||||