From: Keir Fraser <keir.xen@gmail.com>
To: Daniel De Graaf <dgdegra@tycho.nsa.gov>, xen-devel@lists.xen.org
Cc: Keir Fraser <keir@xen.org>
Subject: Re: [PATCH RESEND 3/4] xen/common: remove rcu_lock_target_domain_by_id
Date: Fri, 03 May 2013 17:00:17 +0100 [thread overview]
Message-ID: <CDA99DA1.23FFF%keir.xen@gmail.com> (raw)
In-Reply-To: <1367590156-19177-4-git-send-email-dgdegra@tycho.nsa.gov>
On 03/05/2013 15:09, "Daniel De Graaf" <dgdegra@tycho.nsa.gov> wrote:
> This function (and rcu_lock_remote_target_domain_by_id) has no remaining
> users, having been replaced with XSM hooks and the other rcu_lock_*
> functions. Remove it.
>
> Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
> Acked-by: George Dunlap <george.dunlap@eu.citrix.com> (for 4.3 release)
> Cc: Keir Fraser <keir@xen.org>
Acked-by: Keir Fraser <keir@xen.org>
> ---
> xen/common/domain.c | 34 ----------------------------------
> xen/include/xen/sched.h | 14 --------------
> 2 files changed, 48 deletions(-)
>
> diff --git a/xen/common/domain.c b/xen/common/domain.c
> index b5d44d4..8adf00a 100644
> --- a/xen/common/domain.c
> +++ b/xen/common/domain.c
> @@ -481,40 +481,6 @@ struct domain *rcu_lock_domain_by_any_id(domid_t dom)
> return rcu_lock_domain_by_id(dom);
> }
>
> -int rcu_lock_target_domain_by_id(domid_t dom, struct domain **d)
> -{
> - if ( dom == DOMID_SELF )
> - {
> - *d = rcu_lock_current_domain();
> - return 0;
> - }
> -
> - if ( (*d = rcu_lock_domain_by_id(dom)) == NULL )
> - return -ESRCH;
> -
> - if ( !IS_PRIV_FOR(current->domain, *d) )
> - {
> - rcu_unlock_domain(*d);
> - return -EPERM;
> - }
> -
> - return 0;
> -}
> -
> -int rcu_lock_remote_target_domain_by_id(domid_t dom, struct domain **d)
> -{
> - if ( (*d = rcu_lock_domain_by_id(dom)) == NULL )
> - return -ESRCH;
> -
> - if ( (*d == current->domain) || !IS_PRIV_FOR(current->domain, *d) )
> - {
> - rcu_unlock_domain(*d);
> - return -EPERM;
> - }
> -
> - return 0;
> -}
> -
> int rcu_lock_remote_domain_by_id(domid_t dom, struct domain **d)
> {
> if ( (*d = rcu_lock_domain_by_id(dom)) == NULL )
> diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h
> index 41f749e..cb3baed 100644
> --- a/xen/include/xen/sched.h
> +++ b/xen/include/xen/sched.h
> @@ -477,20 +477,6 @@ struct domain *rcu_lock_domain_by_id(domid_t dom);
> struct domain *rcu_lock_domain_by_any_id(domid_t dom);
>
> /*
> - * As above function, but accounts for current domain context:
> - * - Translates target DOMID_SELF into caller's domain id; and
> - * - Checks that caller has permission to act on the target domain.
> - */
> -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);
> -
> -/*
> * As rcu_lock_domain_by_id(), but will fail EPERM or ESRCH rather than
> resolve
> * to local domain.
> */
next prev parent reply other threads:[~2013-05-03 16:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-03 14:09 [PATCH v4 0/4] Rename/remove IS_PRIV Daniel De Graaf
2013-05-03 14:09 ` [PATCH RESEND 1/4] xen/xsm: add hooks for claim Daniel De Graaf
2013-05-03 15:46 ` Konrad Rzeszutek Wilk
2013-05-03 16:29 ` Daniel De Graaf
2013-05-03 16:00 ` Keir Fraser
2013-05-03 14:09 ` [PATCH RESEND 2/4] xen/arm: remove rcu_lock_target_domain_by_id users Daniel De Graaf
2013-05-03 14:26 ` Ian Campbell
2013-05-03 14:09 ` [PATCH RESEND 3/4] xen/common: remove rcu_lock_target_domain_by_id Daniel De Graaf
2013-05-03 16:00 ` Keir Fraser [this message]
2013-05-03 14:09 ` [PATCH RESEND 4/4] xen: rename IS_PRIV to is_hardware_domain Daniel De Graaf
2013-05-03 16:00 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CDA99DA1.23FFF%keir.xen@gmail.com \
--to=keir.xen@gmail.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=keir@xen.org \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.