summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAvi Kivity2007-12-09 15:37:36 +0100
committerAvi Kivity2008-01-30 16:53:20 +0100
commit8d87a03aea43535a92efbb180e0ceac94d4bb5db (patch)
tree109fc349fbf4010155eab1393fa71c3a7029a110 /fs
parentKVM: MMU: Simplify calculation of pte access (diff)
downloadkernel-qcow2-linux-8d87a03aea43535a92efbb180e0ceac94d4bb5db.tar.gz
kernel-qcow2-linux-8d87a03aea43535a92efbb180e0ceac94d4bb5db.tar.xz
kernel-qcow2-linux-8d87a03aea43535a92efbb180e0ceac94d4bb5db.zip
KVM: MMU: Set nx bit correctly on shadow ptes
While the page table walker correctly generates a guest page fault if a guest tries to execute a non-executable page, the shadow code does not mark it non-executable. This means that if a guest accesses an nx page first with a read access, then subsequent code fetch accesses will succeed. Fix by setting the nx bit on shadow ptes. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions