From: Avi Kivity Date: Sun, 9 Dec 2007 14:37:36 +0000 (+0200) Subject: KVM: MMU: Set nx bit correctly on shadow ptes X-Git-Tag: v2.6.25-rc1~1138^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d87a03aea43535a92efbb180e0ceac94d4bb5db;p=pandora-kernel.git 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 --- Reading git-diff-tree failed