All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>,
	xen-devel <xen-devel@lists.xenproject.org>
Cc: Tim Deegan <tim@xen.org>, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH v2 2/5] x86/shadow: don't needlessly expose internal functions
Date: Mon, 2 Feb 2015 11:47:04 +0000	[thread overview]
Message-ID: <54CF63B8.7080301@citrix.com> (raw)
In-Reply-To: <54CF6B4C020000780005BDB5@mail.emea.novell.com>

On 02/02/15 11:19, Jan Beulich wrote:
> ... and drop an unused one.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>

>
> --- a/xen/arch/x86/mm/shadow/common.c
> +++ b/xen/arch/x86/mm/shadow/common.c
> @@ -2383,7 +2383,7 @@ int sh_remove_write_access_from_sl1p(str
>  /* Remove all mappings of a guest frame from the shadow tables.
>   * Returns non-zero if we need to flush TLBs. */
>  
> -int sh_remove_all_mappings(struct vcpu *v, mfn_t gmfn)
> +static int sh_remove_all_mappings(struct vcpu *v, mfn_t gmfn)
>  {
>      struct page_info *page = mfn_to_page(gmfn);
>  
> --- a/xen/arch/x86/mm/shadow/private.h
> +++ b/xen/arch/x86/mm/shadow/private.h
> @@ -387,6 +387,11 @@ int shadow_write_guest_entry(struct vcpu
>  int shadow_cmpxchg_guest_entry(struct vcpu *v, intpte_t *p,
>                                 intpte_t *old, intpte_t new, mfn_t gmfn);
>  
> +/* Update all the things that are derived from the guest's CR0/CR3/CR4.
> + * Called to initialize paging structures if the paging mode
> + * has changed, and when bringing up a VCPU for the first time. */
> +void shadow_update_paging_modes(struct vcpu *v);
> +
>  /* Unhook the non-Xen mappings in this top-level shadow mfn.
>   * With user_only == 1, unhooks only the user-mode mappings. */
>  void shadow_unhook_mappings(struct vcpu *v, mfn_t smfn, int user_only);
> --- a/xen/include/asm-x86/shadow.h
> +++ b/xen/include/asm-x86/shadow.h
> @@ -77,23 +77,6 @@ void shadow_teardown(struct domain *d);
>  /* Call once all of the references to the domain have gone away */
>  void shadow_final_teardown(struct domain *d);
>  
> -/* Update all the things that are derived from the guest's CR0/CR3/CR4.
> - * Called to initialize paging structures if the paging mode
> - * has changed, and when bringing up a VCPU for the first time. */
> -void shadow_update_paging_modes(struct vcpu *v);
> -
> -
> -/* Remove all mappings of the guest page from the shadows. 
> - * This is called from common code.  It does not flush TLBs. */
> -int sh_remove_all_mappings(struct vcpu *v, mfn_t target_mfn);
> -static inline void 
> -shadow_drop_references(struct domain *d, struct page_info *p)
> -{
> -    if ( unlikely(shadow_mode_enabled(d)) )
> -        /* See the comment about locking in sh_remove_all_mappings */
> -        sh_remove_all_mappings(d->vcpu[0], _mfn(page_to_mfn(p)));
> -}
> -
>  /* Remove all shadows of the guest mfn. */
>  void sh_remove_shadows(struct vcpu *v, mfn_t gmfn, int fast, int all);
>  static inline void shadow_remove_all_shadows(struct vcpu *v, mfn_t gmfn)
>
>
>

  reply	other threads:[~2015-02-02 11:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-02 11:09 [PATCH v2 0/5] x86: shadow adjustments / allow for more memory to be used Jan Beulich
2015-02-02 11:18 ` [PATCH v2 1/5] x86/shadow: tidy up fragmentary page lists in multi‑page shadows Jan Beulich
2015-02-02 11:43   ` Andrew Cooper
2015-02-02 11:47     ` Jan Beulich
2015-02-02 11:55       ` [PATCH v2 1/5] x86/shadow: tidy up fragmentary page lists in multi?page shadows Tim Deegan
2015-02-02 11:19 ` [PATCH v2 2/5] x86/shadow: don't needlessly expose internal functions Jan Beulich
2015-02-02 11:47   ` Andrew Cooper [this message]
2015-02-02 11:20 ` [PATCH v2 3/5] x86/mm: allow for building without shadow mode support Jan Beulich
2015-02-02 11:56   ` Andrew Cooper
2015-02-02 11:20 ` [PATCH v2 4/5] IOMMU/x86: correct page_list_first() use Jan Beulich
2015-02-02 11:52   ` Andrew Cooper
2015-02-02 11:21 ` [PATCH v2 5/5] x86: provide build time option to support up to 123Tb of memory Jan Beulich
2015-02-02 11:58   ` Andrew Cooper
2015-02-02 13:03     ` Jan Beulich
2015-02-02 11:54 ` [PATCH v2 0/5] x86: shadow adjustments / allow for more memory to be used Tim Deegan

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=54CF63B8.7080301@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.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.