KVM: MMU: fix smap permission check

commit 7cbeed9bce upstream.

Current permission check assumes that RSVD bit in PFEC is always zero,
however, it is not true since MMIO #PF will use it to quickly identify
MMIO access

Fix it by clearing the bit if walking guest page table is needed

Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Xiao Guangrong 2015-05-07 16:20:15 +08:00 • committed by Luis Henriques
commit b577fcb3bf
2 changed files with 9 additions and 0 deletions