aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-06-06 16:11:54 +0300
committerAvi Kivity <avi@redhat.com>2011-07-12 13:16:26 +0300
commit411c588dfb863feee78b721d5e7c86ac38921c49 (patch)
treebb60c136f0392fbbd8f222fd2049f265746a7eae /mm/mempolicy.c
parenta01c8f9b4e266df1d7166d23216f2060648f862d (diff)
downloadkernel_goldelico_gta04-411c588dfb863feee78b721d5e7c86ac38921c49.zip
kernel_goldelico_gta04-411c588dfb863feee78b721d5e7c86ac38921c49.tar.gz
kernel_goldelico_gta04-411c588dfb863feee78b721d5e7c86ac38921c49.tar.bz2
KVM: MMU: Adjust shadow paging to work when SMEP=1 and CR0.WP=0
When CR0.WP=0, we sometimes map user pages as kernel pages (to allow the kernel to write to them). Unfortunately this also allows the kernel to fetch from these pages, even if CR4.SMEP is set. Adjust for this by also setting NX on the spte in these circumstances. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'mm/mempolicy.c')
0 files changed, 0 insertions, 0 deletions