diff options
author | Keir Fraser <keir@xen.org> | 2011-02-07 09:51:33 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2011-02-07 09:51:33 +0000 |
commit | 78f17e33f3ca8f6d509595165729a8f3a1210322 (patch) | |
tree | 3c32ef8450e523f927903357134e745a7388c752 /xen/include/xen/sched.h | |
parent | cb6e62fc9962ed9f77dd6d9ed45a9f152a3a7b7b (diff) | |
download | xen-78f17e33f3ca8f6d509595165729a8f3a1210322.tar.gz xen-78f17e33f3ca8f6d509595165729a8f3a1210322.tar.bz2 xen-78f17e33f3ca8f6d509595165729a8f3a1210322.zip |
Introduce rcu_lock_remote_target_domain_by_id().
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/sched.h')
-rw-r--r-- | xen/include/xen/sched.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index ce45800dbe..652a39c5b0 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -435,6 +435,13 @@ struct domain *rcu_lock_domain_by_id(domid_t dom); */ int rcu_lock_target_domain_by_id(domid_t dom, struct domain **d); +/* + * As rcu_lock_target_domain_by_id(), but will fail EPERM rather than resolve + * to local domain. Successful return always resolves to a remote domain that + * the local domain is privileged to control. + */ +int rcu_lock_remote_target_domain_by_id(domid_t dom, struct domain **d); + /* Finish a RCU critical region started by rcu_lock_domain_by_id(). */ static inline void rcu_unlock_domain(struct domain *d) { |