]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita21cb9a661bd7062d199fd1128296c7d34359694
tree6746e9724eb51486104800be264e6baa64c8fefd
parent5cc5e668fbf26aecfede450e46b38763bc49a57a
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