KVM: MMU: simplify mmu_need_write_protect
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Wed, 24 Feb 2016 09:51:15 +0000 (17:51 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Mar 2016 13:36:23 +0000 (14:36 +0100)
commit5c520e90af3ad546bf328d2c9306c72bf3da6afe
treea72dd0dcccc600ece92cd48fb88906ae9e2112cf
parent56ca57f9fe553da122472a15e49c2d808123ff0a
KVM: MMU: simplify mmu_need_write_protect

Now, all non-leaf shadow page are page tracked, if gfn is not tracked
there is no non-leaf shadow page of gfn is existed, we can directly
make the shadow page of gfn to unsync

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