From: Gleb Natapov Date: Sun, 17 Oct 2010 16:13:42 +0000 (+0200) Subject: KVM: Retry fault before vmentry X-Git-Tag: v2.6.38-rc1~244^2~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56028d0861e48f7cc9c573d79f2d8a0a933a2bba;p=pandora-kernel.git KVM: Retry fault before vmentry When page is swapped in it is mapped into guest memory only after guest tries to access it again and generate another fault. To save this fault we can map it immediately since we know that guest is going to access the page. Do it only when tdp is enabled for now. Shadow paging case is more complicated. CR[034] and EFER registers should be switched before doing mapping and then switched back. Acked-by: Rik van Riel Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed