KVM: Assume that writes smaller than 4 bytes are to non-pagetable pages
authorAvi Kivity <avi@qumranet.com>
Mon, 30 Apr 2007 11:47:02 +0000 (14:47 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:38 +0000 (12:05 +0300)
commite925c5ba9380dad5fdf1d0a9d9199ac43be74c6a
tree9de2c9a4530170d77609af5236d8eaf546fd1ec9
parentc86813393f8b8f9f738ab57d9837858ed850df4b
KVM: Assume that writes smaller than 4 bytes are to non-pagetable pages

This allows us to remove write protection earlier than otherwise.  Should
some mad OS choose to use byte writes to update pagetables, it will suffer
a performance hit, but still work correctly.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/mmu.c