[PATCH] KVM: MMU: Add missing dirty bit
authorAvi Kivity <avi@qumranet.com>
Sat, 6 Jan 2007 00:36:59 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:28 +0000 (23:55 -0800)
commit760db773fbd0ad2ece89393218c4a4213b5bae6a
tree8c644a962566335e2f21ffec2b8e0154b138dc17
parent4db9c47c052b89d89f43d12879690c1b3283b887
[PATCH] KVM: MMU: Add missing dirty bit

If we emulate a write, we fail to set the dirty bit on the guest pte, leading
the guest to believe the page is clean, and thus lose data.  Bad.

Fix by setting the guest pte dirty bit under such conditions.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/kvm/paging_tmpl.h