aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/mem_access.h
diff options
context:
space:
mode:
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>2012-02-10 16:07:07 +0000
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>2012-02-10 16:07:07 +0000
commit2981fb7d9dcbbe36228042fbf00618bb56ebafea (patch)
tree21e024a9049fee2493626b68116913b83d187025 /xen/include/asm-x86/mem_access.h
parent99af3cd40b6e9fde63daddcec86ee5e6db338d94 (diff)
downloadxen-2981fb7d9dcbbe36228042fbf00618bb56ebafea.tar.gz
xen-2981fb7d9dcbbe36228042fbf00618bb56ebafea.tar.bz2
xen-2981fb7d9dcbbe36228042fbf00618bb56ebafea.zip
Re-order calls to put_gfn() around wait queue invocations
Since we use wait queues to handle potential ring congestion cases, code paths that try to generate a mem event while holding a gfn lock would go to sleep in non-preemptible mode. Most such code paths can be fixed by simply postponing event generation until locks are released. Signed-off-by: Adin Scannell <adin@scannell.ca> Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Tim Deegan <tim@xen.org> Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/asm-x86/mem_access.h')
-rw-r--r--xen/include/asm-x86/mem_access.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/asm-x86/mem_access.h b/xen/include/asm-x86/mem_access.h
index 4f038f97b0..fe3c349aa7 100644
--- a/xen/include/asm-x86/mem_access.h
+++ b/xen/include/asm-x86/mem_access.h
@@ -23,6 +23,7 @@
int mem_access_domctl(struct domain *d, xen_domctl_mem_event_op_t *mec,
XEN_GUEST_HANDLE(void) u_domctl);
+int mem_access_send_req(struct domain *d, mem_event_request_t *req);
/*