commit | 8d87a03aea43535a92efbb180e0ceac94d4bb5db | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@qumranet.com> | Sun Dec 09 16:37:36 2007 +0200 |
committer | Avi Kivity <avi@qumranet.com> | Wed Jan 30 17:53:20 2008 +0200 |
tree | 109fc349fbf4010155eab1393fa71c3a7029a110 | |
parent | fe135d2ceb3d7dc08151b3cbad96565d02cc8676 [diff] |
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>