diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2012-12-18 18:16:52 +0000 |
---|---|---|
committer | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2012-12-18 18:16:52 +0000 |
commit | c83e878b9efd3a958846a017bfc3e56018ece3dd (patch) | |
tree | 2879fd40743df6c48de68d6b5800a11e11d06f3a /xen/common/domctl.c | |
parent | 8ea0a35ad7034a9499b2c202acec28ae4477c05e (diff) | |
download | xen-c83e878b9efd3a958846a017bfc3e56018ece3dd.tar.gz xen-c83e878b9efd3a958846a017bfc3e56018ece3dd.tar.bz2 xen-c83e878b9efd3a958846a017bfc3e56018ece3dd.zip |
xen/arch/*: add struct domain parameter to arch_do_domctl
Since the arch-independent do_domctl function now RCU locks the domain
specified by op->domain, pass the struct domain to the arch-specific
domctl function and remove the duplicate per-subfunction locking.
This also removes two get_domain/put_domain call pairs (in
XEN_DOMCTL_assign_device and XEN_DOMCTL_deassign_device), replacing
them with RCU locking.
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/domctl.c')
-rw-r--r-- | xen/common/domctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/domctl.c b/xen/common/domctl.c index a491159e9f..ca789bb8f3 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -882,7 +882,7 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) break; default: - ret = arch_do_domctl(op, u_domctl); + ret = arch_do_domctl(op, d, u_domctl); break; } |