libxc: do not lock VCPU context in xc_ia64_pv_recv_vcpu_context
authorIan Campbell <ian.campbell@citrix.com>
Mon, 18 Oct 2010 16:39:44 +0000 (17:39 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 18 Oct 2010 16:39:44 +0000 (17:39 +0100)
xc_ia64_pv_recv_vcpu_context does not need to lock the ctxt buffer
since it calls xc_ia64_recv_vcpu_context which calls
xc_vcpu_setcontext which takes care of any necessary bouncing.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/ia64/xc_ia64_linux_restore.c

index 7febef291f562a9d0b3d6787ff26b1435d1c78a9..b4e9e9c433a04975ba370b33a180352ed54939ae 100644 (file)
@@ -246,12 +246,6 @@ xc_ia64_pv_recv_vcpu_context(xc_interface *xch, int io_fd, int32_t dom,
     vcpu_guest_context_any_t ctxt_any;
     vcpu_guest_context_t *ctxt = &ctxt_any.c;
 
-    if (lock_pages(&ctxt_any, sizeof(ctxt_any))) {
-        /* needed for build domctl, but might as well do early */
-        ERROR("Unable to lock_pages ctxt");
-        return -1;
-    }
-
     if (xc_ia64_recv_vcpu_context(xch, io_fd, dom, vcpu, &ctxt_any))
         goto out;
 
@@ -264,7 +258,6 @@ xc_ia64_pv_recv_vcpu_context(xc_interface *xch, int io_fd, int32_t dom,
     rc = 0;
 
  out:
-    unlock_pages(&ctxt, sizeof(ctxt));
     return rc;
 }