|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 17 of 18] libxc: do not lock VCPU context in xc_ia64_
# 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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 08 of 18] libxc: add xc_domain_maximum_gpfn to wrap XENMEM_maximum_gpfn, (continued)
- [Xen-devel] [PATCH 08 of 18] libxc: add xc_domain_maximum_gpfn to wrap XENMEM_maximum_gpfn, Ian Campbell
- [Xen-devel] [PATCH 05 of 18] libxc: add wrappers for XENMEM {increase, decrease}_reservation and populate_physmap, Ian Campbell
- [Xen-devel] [PATCH 10 of 18] libxc: add xc_maximum_ram_page to wrap XENMEM_maximum_ram_page, Ian Campbell
- [Xen-devel] [PATCH 09 of 18] libxc: add xc_machphys_mfn_list to wrap XENMEM_machphys_mfn_list, Ian Campbell
- [Xen-devel] [PATCH 11 of 18] libxc: update QEMU_TAG and remove compatibility macro, Ian Campbell
- [Xen-devel] [PATCH 12 of 18] libxc: make xc_memory_op library private, Ian Campbell
- [Xen-devel] [PATCH 14 of 18] libxc: simplify performance counters API, Ian Campbell
- [Xen-devel] [PATCH 13 of 18] libxc: make do_memory_op's callers responsible for locking indirect buffers, Ian Campbell
- [Xen-devel] [PATCH 15 of 18] libxc: simplify lock profiling API, Ian Campbell
- [Xen-devel] [PATCH 16 of 18] libxc: drop xc_get_max_pages, Ian Campbell
- [Xen-devel] [PATCH 17 of 18] libxc: do not lock VCPU context in xc_ia64_pv_recv_vcpu_context,
Ian Campbell <=
- [Xen-devel] [PATCH 18 of 18] libxc: use generic xc_get_pfn_list on ia64, Ian Campbell
- Re: [Xen-devel] [PATCH 00 of 18] libxc: preparation for hypercall buffers + random cleanups, Ian Jackson
|
|
|
|
|