All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Tamas K Lengyel <tlengyel@novetta.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Razvan Cojocaru <rcojocaru@bitdefender.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	George Dunlap <george.dunlap@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	Jan Beulich <jbeulich@suse.com>,
	xen-devel@lists.xenproject.org, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH 1/2] altp2m: Merge p2m_set_altp2m_mem_access and p2m_set_mem_access
Date: Thu, 28 Jan 2016 10:50:10 +0000	[thread overview]
Message-ID: <20160128105010.GJ25660@citrix.com> (raw)
In-Reply-To: <1453925201-15926-1-git-send-email-tlengyel@novetta.com>

On Wed, Jan 27, 2016 at 01:06:40PM -0700, Tamas K Lengyel wrote:
> The altp2m subsystem in its current form uses its own HVMOP hypercall to set
> mem_access permissions, duplicating some of the code already present for
> setting regular mem_access permissions. In this patch we consolidate the two,
> deprecate the HVMOP hypercall and update the corresponding tools.
> 
> Signed-off-by: Tamas K Lengyel <tlengyel@novetta.com>
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> Cc: Ian Campbell <ian.campbell@citrix.com>
> Cc: Wei Liu <wei.liu2@citrix.com>
> Cc: Razvan Cojocaru <rcojocaru@bitdefender.com>
> Cc: Stefano Stabellini <stefano.stabellini@citrix.com>
> Cc: Keir Fraser <keir@xen.org>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Andrew Cooper <andrew.cooper3@citrix.com>
> Cc: George Dunlap <george.dunlap@eu.citrix.com>
> ---
>  tools/libxc/include/xenctrl.h       |   5 +-
>  tools/libxc/xc_altp2m.c             |  25 ------
>  tools/libxc/xc_mem_access.c         |  14 +--
>  tools/tests/xen-access/xen-access.c |  53 ++++-------
>  xen/arch/arm/p2m.c                  |   9 +-
>  xen/arch/x86/hvm/hvm.c              |   9 --
>  xen/arch/x86/mm/p2m.c               | 169 ++++++++++++++++--------------------
>  xen/common/mem_access.c             |   2 +-
>  xen/include/asm-x86/p2m.h           |   4 -
>  xen/include/public/hvm/hvm_op.h     |  15 +---
>  xen/include/public/memory.h         |   3 +
>  xen/include/xen/p2m-common.h        |   3 +-
>  12 files changed, 115 insertions(+), 196 deletions(-)
> 
> diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc/include/xenctrl.h
> index e632b1e..b4e57d8 100644
> --- a/tools/libxc/include/xenctrl.h
> +++ b/tools/libxc/include/xenctrl.h
> @@ -2027,9 +2027,6 @@ int xc_altp2m_destroy_view(xc_interface *handle, domid_t domid,
>  /* Switch all vCPUs of the domain to the specified altp2m view */
>  int xc_altp2m_switch_to_view(xc_interface *handle, domid_t domid,
>                               uint16_t view_id);
> -int xc_altp2m_set_mem_access(xc_interface *handle, domid_t domid,
> -                             uint16_t view_id, xen_pfn_t gfn,
> -                             xenmem_access_t access);

What is the support status of these APIs in libxc? Are they supposed to
be stable now? Do you have opinion on making them stable interfaces?

If you consider them stable, you can't just remove it. Presumably you
can reimplement it as a wrapper to xc_set_mem_access if we decide to
keep it around.

Wei.

  parent reply	other threads:[~2016-01-28 10:50 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27 20:06 [PATCH 1/2] altp2m: Merge p2m_set_altp2m_mem_access and p2m_set_mem_access Tamas K Lengyel
2016-01-27 20:06 ` [PATCH 2/2] altp2m: Implement p2m_get_mem_access for altp2m views Tamas K Lengyel
2016-01-28  8:44   ` Razvan Cojocaru
2016-01-28 10:50   ` Wei Liu
2016-01-28 13:38   ` Jan Beulich
2016-01-28 14:42     ` Lengyel, Tamas
2016-01-28 14:56       ` Jan Beulich
2016-01-28 14:59         ` Lengyel, Tamas
2016-01-28 15:03       ` Razvan Cojocaru
2016-01-28 15:12         ` Lengyel, Tamas
2016-01-28 15:20           ` Razvan Cojocaru
2016-01-28 15:58             ` Lengyel, Tamas
2016-01-28 16:32               ` Razvan Cojocaru
2016-01-28 16:40                 ` Lengyel, Tamas
2016-01-28 17:04                   ` Razvan Cojocaru
2016-01-28 17:17                     ` Lengyel, Tamas
2016-01-28  8:43 ` [PATCH 1/2] altp2m: Merge p2m_set_altp2m_mem_access and p2m_set_mem_access Razvan Cojocaru
2016-01-28 10:50 ` Wei Liu [this message]
2016-01-28 10:55   ` Ian Campbell
2016-01-28 11:00     ` Wei Liu
2016-01-28 14:30       ` Lengyel, Tamas
2016-01-28 14:36         ` Wei Liu
2016-01-28 13:17 ` Jan Beulich
2016-01-28 14:34   ` Lengyel, Tamas
2016-01-28 14:39     ` Jan Beulich

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=20160128105010.GJ25660@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=keir@xen.org \
    --cc=rcojocaru@bitdefender.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tlengyel@novetta.com \
    --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.