summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorXiao Guangrong <guangrong.xiao@linux.intel.com>2015-05-11 22:55:21 +0800
committerLuis Henriques <luis.henriques@canonical.com>2015-06-02 12:08:13 +0100
commitf1c43caf6f290cc6e173688b95ffbadae89bc698 (patch)
treec6c1e60843fdc31d376a4e515139015e7e299ada /drivers
parentc704bfbd17e5e375625921e3b4d8a8d9813b66bf (diff)
KVM: MMU: fix SMAP virtualization
commit 0be0226f07d14b153a5eedf2bb86e1eb7dcefab5 upstream. KVM may turn a user page to a kernel page when kernel writes a readonly user page if CR0.WP = 1. This shadow page entry will be reused after SMAP is enabled so that kernel is allowed to access this user page Fix it by setting SMAP && !CR0.WP into shadow page's role and reset mmu once CR4.SMAP is updated Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> [ luis: backported to 3.16: adjusted context ] Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions