From: Xiao Guangrong Date: Mon, 11 May 2015 14:55:21 +0000 (+0800) Subject: KVM: MMU: fix SMAP virtualization X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~71^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0be0226f07d14b153a5eedf2bb86e1eb7dcefab5;p=pandora-kernel.git KVM: MMU: fix SMAP virtualization 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 Cc: stable@vger.kernel.org Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed