[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC 13/14] xen: tools: Introduce the set-subpage into xenctrl



On 19.10.2017 11:15, Zhang Yi wrote:
> From: Zhang Yi Z <yi.z.zhang@xxxxxxxxxxxxxxx>
> 
> Introduce the Xen Hypercall HVMOP_set_subpage into Xenctl.
> The API is defined as flowing.
> 
> int xc_mem_set_subpage(xc_interface *handle, domid_t domid,
>                        xen_pfn_t gfn, uint32_t access);
> 
> Signed-off-by: Zhang, Yi Z <yi.z.zhang@xxxxxxxxxxxxxxx>
> ---
>  tools/libxc/include/xenctrl.h |  2 ++
>  tools/libxc/xc_mem_paging.c   | 20 ++++++++++++++++++++
>  2 files changed, 22 insertions(+)
> 
> diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc/include/xenctrl.h
> index bde8313..a13f2c7 100644
> --- a/tools/libxc/include/xenctrl.h
> +++ b/tools/libxc/include/xenctrl.h
> @@ -1956,6 +1956,8 @@ int xc_mem_paging_evict(xc_interface *xch, domid_t 
> domain_id, uint64_t gfn);
>  int xc_mem_paging_prep(xc_interface *xch, domid_t domain_id, uint64_t gfn);
>  int xc_mem_paging_load(xc_interface *xch, domid_t domain_id,
>                         uint64_t gfn, void *buffer);
> +int xc_mem_set_subpage(xc_interface *handle, domid_t domid,
> +                             xen_pfn_t gfn, uint32_t access);

Would you consider a small comment here explaining at least the access
parameter?


Thanks,
Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.