From: Jeremy Fitzhardinge Date: Mon, 13 Dec 2010 14:42:30 +0000 (+0000) Subject: xen p2m: clear the old pte when adding a page to m2p_override X-Git-Tag: v2.6.38-rc1~72^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87f1d40a706bdebdc8f959b9ac291d0d8fdfcc7e;p=pandora-kernel.git xen p2m: clear the old pte when adding a page to m2p_override When adding a page to m2p_override we change the p2m of the page so we need to also clear the old pte of the kernel linear mapping because it doesn't correspond anymore. When we remove the page from m2p_override we restore the original p2m of the page and we also restore the old pte of the kernel linear mapping. Before changing the p2m mappings in m2p_add_override and m2p_remove_override, check that the page passed as argument is valid and return an error if it is not. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed