|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [linux-2.6.18-xen] privcmd: PowerPC guests can safely mm
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1181644929 -3600
# Node ID 33c3009e73ec91c091b93aebc2a2b0052a3da830
# Parent 93a955c2bebbf3be1a4b455d106762ac179ee845
privcmd: PowerPC guests can safely mmap() privcmd.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
drivers/xen/privcmd/privcmd.c | 2 ++
1 files changed, 2 insertions(+)
diff -r 93a955c2bebb -r 33c3009e73ec drivers/xen/privcmd/privcmd.c
--- a/drivers/xen/privcmd/privcmd.c Tue Jun 12 11:36:58 2007 +0100
+++ b/drivers/xen/privcmd/privcmd.c Tue Jun 12 11:42:09 2007 +0100
@@ -229,9 +229,11 @@ static struct vm_operations_struct privc
static int privcmd_mmap(struct file * file, struct vm_area_struct * vma)
{
+#ifndef __powerpc__ /* PowerPC has a trick to safely do this. */
/* Unsupported for auto-translate guests. */
if (xen_feature(XENFEAT_auto_translated_physmap))
return -ENOSYS;
+#endif
/* DONTCOPY is essential for Xen as copy_page_range is broken. */
vma->vm_flags |= VM_RESERVED | VM_IO | VM_DONTCOPY;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [linux-2.6.18-xen] privcmd: PowerPC guests can safely mmap() privcmd.,
Xen patchbot-linux-2.6.18-xen <=
|
|
|
|
|