KVM: MMU: Disable write access on clean large pages
authorAvi Kivity <avi@qumranet.com>
Thu, 11 Oct 2007 13:12:24 +0000 (15:12 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:52 +0000 (17:52 +0200)
commitcc70e7374df1e3a56d718e8ca330619f316511a6
tree6746e9724eb51486104800be264e6baa64c8fefd
parentc22e3514fceb2f514093ce1d19a2f660ac7347ae
KVM: MMU: Disable write access on clean large pages

By forcing clean huge pages to be read-only, we have separate roles
for the shadow of a clean large page and the shadow of a dirty large
page.  This is necessary because different ptes will be instantiated
for the two cases, even for read faults.

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