From: Wei Liu <wei.liu2@citrix.com>
To: Razvan Cojocaru <rcojocaru@bitdefender.com>
Cc: tamas@tklengyel.com, wei.liu2@citrix.com,
george.dunlap@eu.citrix.com, andrew.cooper3@citrix.com,
ian.jackson@eu.citrix.com, xen-devel@lists.xen.org,
jbeulich@suse.com
Subject: Re: [PATCH V2] tools/libxc, xen/x86: Added xc_set_mem_access_multi()
Date: Fri, 2 Sep 2016 09:53:52 +0100 [thread overview]
Message-ID: <20160902085352.GI21282@citrix.com> (raw)
In-Reply-To: <1472806266-19864-1-git-send-email-rcojocaru@bitdefender.com>
On Fri, Sep 02, 2016 at 11:51:06AM +0300, Razvan Cojocaru wrote:
> Currently it is only possible to set mem_access restrictions only for
> a contiguous range of GFNs (or, as a particular case, for a single GFN).
> This patch introduces a new libxc function taking an array of GFNs.
> The alternative would be to set each page in turn, using a userspace-HV
> roundtrip for each call, and triggering a TLB flush per page set.
>
> Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
>
> ---
> Changes since V1 / RFC:
> - Renamed xc_set_mem_access_sparse() to xc_set_mem_access_multi(),
> and XENMEM_access_op_set_access_sparse to
> XENMEM_access_op_set_access_multi.
> - Renamed the 'nr' parameter to 'size'.
> - Wrapped long line in the implementation of xc_set_mem_access_multi().
> - Factored out common code in _p2m_set_mem_access() (and modified
> p2m_set_altp2m_mem_access() in the process, to take an unsigned
> long argument instead of a gfn_t).
> - Factored out xenmem_access_t to p2m_access_t conversion code in
> p2m_xenmem_access_to_p2m_access().
> - Added hypercall continuation support.
> - Added compat translation support.
> - No longer allocating buffers (now using copy_from_guest_offset()).
> - Added support for setting an array of access restrictions, as
> suggested by Tamas Lengyel.
> - This patch incorporates Jan Beulich's "memory: fix compat handling
> of XENMEM_access_op".
> ---
> tools/libxc/include/xenctrl.h | 4 ++
> tools/libxc/xc_mem_access.c | 38 ++++++++++
Acked-by: Wei Liu <wei.liu2@citrix.com>
FAOD I am happy with hv maintainers handle this patch.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-09-02 8:53 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-02 8:51 [PATCH V2] tools/libxc, xen/x86: Added xc_set_mem_access_multi() Razvan Cojocaru
2016-09-02 8:53 ` Wei Liu [this message]
2016-09-02 10:02 ` Jan Beulich
2016-09-02 10:34 ` Jan Beulich
2016-09-02 11:18 ` Razvan Cojocaru
2016-09-02 11:45 ` Jan Beulich
2016-09-02 14:50 ` Tamas K Lengyel
2016-09-02 15:03 ` Jan Beulich
2016-09-02 15:13 ` Tamas K Lengyel
2016-09-02 15:20 ` Razvan Cojocaru
2016-09-02 15:19 ` Tamas K Lengyel
2016-09-02 12:21 ` Razvan Cojocaru
2016-09-02 12:33 ` Jan Beulich
2016-09-02 12:41 ` Razvan Cojocaru
2016-09-02 12:56 ` Jan Beulich
2016-09-02 13:03 ` Razvan Cojocaru
2016-09-02 13:10 ` Jan Beulich
2016-09-02 13:27 ` Razvan Cojocaru
2016-09-02 13:17 ` Julien Grall
2016-09-02 13:22 ` Razvan Cojocaru
2016-09-02 13:26 ` Julien Grall
2016-09-02 13:38 ` Razvan Cojocaru
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=20160902085352.GI21282@citrix.com \
--to=wei.liu2@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=rcojocaru@bitdefender.com \
--cc=tamas@tklengyel.com \
--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.