[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 17 of 18] libxc: do not lock VCPU context in xc_ia64_pv_recv_vcpu_context
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1286892402 -3600 # Node ID 21f32c40fc2da4842ab8e93e52149a2baf7b25b0 # Parent d1501c6dca3f879287359cf9de877b86c32d2e95 libxc: do not lock VCPU context in xc_ia64_pv_recv_vcpu_context 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@xxxxxxxxxx> diff -r d1501c6dca3f -r 21f32c40fc2d tools/libxc/ia64/xc_ia64_linux_restore.c --- a/tools/libxc/ia64/xc_ia64_linux_restore.c Tue Oct 12 15:06:42 2010 +0100 +++ b/tools/libxc/ia64/xc_ia64_linux_restore.c Tue Oct 12 15:06:42 2010 +0100 @@ -246,12 +246,6 @@ xc_ia64_pv_recv_vcpu_context(xc_interfac 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_interfac rc = 0; out: - unlock_pages(&ctxt, sizeof(ctxt)); return rc; } _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |