KVM: MMU: only write protect mappings at pagetable level
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 22 Dec 2010 11:01:57 +0000 (09:01 -0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:31:13 +0000 (11:31 +0200)
If a pagetable contains a writeable large spte, all of its sptes will be
write protected, including non-leaf ones, leading to endless pagefaults.

Do not write protect pages above PT_PAGE_TABLE_LEVEL, as the spte fault
paths assume non-leaf sptes are writable.

Tested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

No differences found