KVM: MMU: skip obsolete sp in for_each_gfn_*()
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Fri, 25 Mar 2016 13:19:38 +0000 (21:19 +0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 20 Apr 2016 13:29:17 +0000 (15:29 +0200)
commit46971a2f59f135341f8912f516540fef6890d4df
treea2489ff7acf6068bfcb1df35c16873b6abe8d840
parentc54cdf141c40a5115774e91fc947c34e91df0259
KVM: MMU: skip obsolete sp in for_each_gfn_*()

The obsolete sp should not be used on current vCPUs and should not hurt
vCPU's running, so skip it from for_each_gfn_sp() and
for_each_gfn_indirect_valid_sp()

The side effort is we will double check role.invalid in kvm_mmu_get_page()
but i think it is okay as role is well cached

Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c