From: Izik Eidus Date: Thu, 20 Mar 2008 16:17:24 +0000 (+0200) Subject: KVM: MMU: fix dirty bit setting when removing write permissions X-Git-Tag: v2.6.26-rc1~1028^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=855149aaa90016c576a0e684361a34f8047307d0;p=pandora-kernel.git KVM: MMU: fix dirty bit setting when removing write permissions When mmu_set_spte() checks if a page related to spte should be release as dirty or clean, it check if the shadow pte was writeble, but in case rmap_write_protect() is called called it is possible for shadow ptes that were writeble to become readonly and therefor mmu_set_spte will release the pages as clean. This patch fix this issue by marking the page as dirty inside rmap_write_protect(). Signed-off-by: Izik Eidus Signed-off-by: Avi Kivity --- Reading git-diff-tree failed