mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
c4dff75bab
commit
170b70b7ef
1 file changed
-7
@@ -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;
|
||||
}
|
||||
|
||||
|
||||