[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxc: fix xc_memory_op(): handles XENMEM_remove_from_phsymap case.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1220968952 -3600
# Node ID 4f27d1a23bca64ec644726cbd46567ebfef7951a
# Parent  1f89af507e6235ff9276e32f02f5de83eaef5a6a
libxc: fix xc_memory_op(): handles XENMEM_remove_from_phsymap case.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 tools/libxc/xc_private.c |   10 ++++++++++
 1 files changed, 10 insertions(+)

diff -r 1f89af507e62 -r 4f27d1a23bca tools/libxc/xc_private.c
--- a/tools/libxc/xc_private.c  Tue Sep 09 14:54:56 2008 +0100
+++ b/tools/libxc/xc_private.c  Tue Sep 09 15:02:32 2008 +0100
@@ -307,6 +307,13 @@ int xc_memory_op(int xc_handle,
             goto out1;
         }
         break;
+    case XENMEM_remove_from_physmap:
+        if ( lock_pages(arg, sizeof(struct xen_remove_from_physmap)) )
+        {
+            PERROR("Could not lock");
+            goto out1;
+        }
+        break;
     case XENMEM_current_reservation:
     case XENMEM_maximum_reservation:
     case XENMEM_maximum_gpfn:
@@ -339,6 +346,9 @@ int xc_memory_op(int xc_handle,
         break;
     case XENMEM_add_to_physmap:
         unlock_pages(arg, sizeof(struct xen_add_to_physmap));
+        break;
+    case XENMEM_remove_from_physmap:
+        unlock_pages(arg, sizeof(struct xen_remove_from_physmap));
         break;
     case XENMEM_current_reservation:
     case XENMEM_maximum_reservation:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.