[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 4/7] minios: add gnttab_find_grant_of_page
Marek Marczykowski, le Tue 23 Apr 2013 05:16:21 +0200, a écrit : > Needed to implement minios_gntshr_munmap without introducing additional > mapping (frame->gref). I agree on the principle, given the comment you have put. > +/* This function is used by gnttab_munmap call. It is rather rare to call it > - > + * mostly at sthudown, so save memory at price of efficiency */ Better not introduce the typo, however ;) > +grant_ref_t > +gnttab_find_grant_of_page(void *map) > +{ > + unsigned long flags; > + int i, mfn; > + grant_ref_t ref = 0; > + > + mfn = virt_to_mfn(map); > + local_irq_save(flags); Why disabling IRQs? Samuel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |