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/include/xen/iommu.h | |
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/include/xen/iommu.h')
-rw-r--r-- | xen/include/xen/iommu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h index 7626216ae8..d47713759c 100644 --- a/xen/include/xen/iommu.h +++ b/xen/include/xen/iommu.h @@ -132,7 +132,8 @@ void iommu_crash_shutdown(void); void iommu_set_dom0_mapping(struct domain *d); void iommu_share_p2m_table(struct domain *d); -int iommu_do_domctl(struct xen_domctl *, XEN_GUEST_HANDLE_PARAM(xen_domctl_t)); +int iommu_do_domctl(struct xen_domctl *, struct domain *d, + XEN_GUEST_HANDLE_PARAM(xen_domctl_t)); void iommu_iotlb_flush(struct domain *d, unsigned long gfn, unsigned int page_count); void iommu_iotlb_flush_all(struct domain *d); |