[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 1/2] x86/mem-sharing: Bulk mem-sharing entire domains
On Mon, Oct 12, 2015 at 12:42 AM, Jan Beulich <JBeulich@xxxxxxxx> wrote:
It might just be me but that's exactly what the parentheses do here. I tend to read operation from left-to-right and the ++ on the left actually is the last operation which will be performed after the pointer dereference. The parentheses make that explicit. Â
So the way we return >0 values is copied from the hypercall continuation handler of mem_access - there it returns the GFN value which was the same approach I used in the first version of this patch. Now since we store the gfn value in the mso struct itself, this just returns an indicator that there is more work to be done. Otherwise the logic and setup is the same. I rather not mix these as long as mem_access does it similarly (returning a positive value indicating more work is to be done). Â
Ack. Â >> > --- a/xen/include/public/memory.h Sure, I'll change it. Â
Making it an IN/OUT would suggest it has a value that the user could need - which is not the case. I can describe this in the header that the field is used internally and the value may not be the same after the hypercall finished but the value it changed to has no particular importance for the caller. Tamas _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |