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

Re: [Xen-devel] [PATCH 5/7] libxc: implement gntshr for minios



Marek Marczykowski, le Tue 23 Apr 2013 05:17:59 +0200, a écrit :
> +static int minios_gntshr_munmap(xc_gntshr *xcg, xc_osdep_handle h,
> +                               void *start_address, uint32_t count)
> +{
> +    int i;
> +    uint32_t gref;
> +
> +    for (i = 0; i < count; i++) {
> +        gref = gnttab_find_grant_of_page(start_address + i * PAGE_SIZE);

This can become quite expensive. Can we really not afford allocating the
list of grants, keeping its adresse in the xc_osdep_handle?

Samuel

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


 


Rackspace

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