From: Paolo Bonzini Date: Mon, 9 Sep 2013 11:52:33 +0000 (+0200) Subject: KVM: mmu: allow page tables to be in read-only slots X-Git-Tag: v3.12-rc2~24^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba6a3541545542721ce821d1e7e5ce35752e6fdf;p=pandora-kernel.git KVM: mmu: allow page tables to be in read-only slots Page tables in a read-only memory slot will currently cause a triple fault because the page walker uses gfn_to_hva and it fails on such a slot. OVMF uses such a page table; however, real hardware seems to be fine with that as long as the accessed/dirty bits are set. Save whether the slot is readonly, and later check it when updating the accessed and dirty bits. Reviewed-by: Xiao Guangrong Reviewed-by: Gleb Natapov Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed