|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 19/20] xen/privcmd: Add support for Linux 64KB page granularity
Hi Boris, On 13/07/2015 22:13, Boris Ostrovsky wrote: On 07/09/2015 04:42 PM, Julien Grall wrote: It would means to have an other variable to check that we are at the end the array. What about a variable which will be decremented?
It avoids an open loop in each place where it's needed (here, balloon...) which means another indentation layer. You can give a look it's quite ugly. Furthermore, the helper will avoid possible done by developers who are working on PV drivers on x86. If you see code where the MFN translation is done directly via virt_to_mfn or page_to_mfn... it will likely means that the code will be broking when 64KB page granularity will be in used. Though, there will still be some place where it's valid to use virt_to_mfn and page_to_mfn. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |