|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] stubdom: fix munmap's update_va_mapping flag passing
Should be applied to the 3.3 tree as well.
stubdom: fix munmap's update_va_mapping flag passing, thus fixing INVLPG
passing
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
diff -r c80615d6a50d extras/mini-os/lib/sys.c
--- a/extras/mini-os/lib/sys.c Thu Aug 28 10:55:54 2008 +0100
+++ b/extras/mini-os/lib/sys.c Thu Aug 28 12:56:35 2008 +0100
@@ -1221,11 +1221,14 @@ int munmap(void *start, size_t length)
int ret;
for (i = 0; i < n; i++) {
+ int arg = 0;
call[i].op = __HYPERVISOR_update_va_mapping;
- call[i].args[0] = (unsigned long) &data[i];
- call[i].args[1] = 0;
- call[i].args[2] = 0;
- call[i].args[3] = UVMF_INVLPG;
+ call[i].args[arg++] = (unsigned long) &data[i];
+ call[i].args[arg++] = 0;
+#ifdef __i386__
+ call[i].args[arg++] = 0;
+#endif
+ call[i].args[arg++] = UVMF_INVLPG;
}
ret = HYPERVISOR_multicall(call, n);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] stubdom: fix munmap's update_va_mapping flag passing,
Samuel Thibault <=
|
|
|
|
|