Re: [PATCH v4 1/2] XEN/X86: Improve semantic support for x86_init.mapping.pagetable_reserve

From: Attilio Rao
Date: Thu Aug 23 2012 - 11:58:14 EST


On 23/08/12 16:46, Thomas Gleixner wrote:
On Wed, 22 Aug 2012, Attilio Rao wrote:

- Allow xen_mapping_pagetable_reserve() to handle a start different from
pgt_buf_start, but still bigger than it.
What's the purpose of this and how is this going to be used and how is
it useful at all?

(Just replying here as all the other your comments are derivative)
Looks like you are missing the whole point of the patch.
What the patch is supposed to do is just to "enforce a correct semantic for the setup function" and not fix an actual problem found in the code.
This means that after the patch you know exactly what expect in terms of semantic by the function and the callers will work following it.

Otherwise, what could happen is that if one day for a reason or another begin start being different from pgt_buf_start this function will just break silently, reintroducing the original problem in a different form.

I think this was clarified by the 0/2 but evidently you completely missed it.

Attilio
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/