|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Fix memory_op hypercall mlock/munlock wrapping after the
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID e0d986fc0978710c168ea139a3359ca0c7270839
# Parent ef0a56c0784df4625d5e5ef8cf6f33ea6fee4d5e
Fix memory_op hypercall mlock/munlock wrapping after the
GET/SET_XEN_GUEST_HANDLE patch.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r ef0a56c0784d -r e0d986fc0978 tools/libxc/xc_private.c
--- a/tools/libxc/xc_private.c Thu Apr 27 15:55:09 2006 +0100
+++ b/tools/libxc/xc_private.c Thu Apr 27 19:19:59 2006 +0100
@@ -226,7 +226,7 @@ int xc_memory_op(int xc_handle,
PERROR("Could not mlock");
goto out1;
}
- GET_XEN_GUEST_HANDLE(extent_start, reservation->extent_start);
+ GET_XEN_GUEST_HANDLE(extent_start, xmml->extent_start);
if ( mlock(extent_start,
xmml->max_extents * sizeof(unsigned long)) != 0 )
{
@@ -281,7 +281,7 @@ int xc_memory_op(int xc_handle,
break;
case XENMEM_machphys_mfn_list:
safe_munlock(xmml, sizeof(*xmml));
- GET_XEN_GUEST_HANDLE(extent_start, reservation->extent_start);
+ GET_XEN_GUEST_HANDLE(extent_start, xmml->extent_start);
safe_munlock(extent_start,
xmml->max_extents * sizeof(unsigned long));
break;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Fix memory_op hypercall mlock/munlock wrapping after the,
Xen patchbot -unstable <=
|
|
|
|
|