commit | 411c588dfb863feee78b721d5e7c86ac38921c49 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Mon Jun 06 16:11:54 2011 +0300 |
committer | Avi Kivity <avi@redhat.com> | Tue Jul 12 13:16:26 2011 +0300 |
tree | bb60c136f0392fbbd8f222fd2049f265746a7eae | |
parent | a01c8f9b4e266df1d7166d23216f2060648f862d [diff] |
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>