Re: [PATCH 2/6] ksm: dont allow overlap memory addresses registrations.

From: Izik Eidus
Date: Wed May 06 2009 - 05:55:32 EST


Rik van Riel wrote:
Izik Eidus wrote:
subjects say it all.

Not a very useful commit message.

This makes me wonder, though.

What happens if a user mmaps a 30MB memory region, registers it
with KSM and then unmaps the middle 10MB?

User cant break 30MB into smaller one.
That mean that when you regisiter memory region that is X mb size, you can only remove it (as a whole), or add new region.
This should answer the next question you had about why i have just the start address for removing the regions.


Signed-off-by: Izik Eidus <ieidus@xxxxxxxxxx>

except for the commit message, Acked-by: Rik van Riel <riel@xxxxxxxxxx>


--
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/