KVM: MMU: unalias gfn before sp->gfns[] comparison in sync_page
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Thu, 13 May 2010 02:08:08 +0000 (10:08 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:46 +0000 (10:35 +0300)
commitf55c3f419ab1f0a9d66f44ceeefe752975ae4233
tree9553bcf0c3af3ceac9bf6ce6c28ee0fdac28f525
parent6d74229f013ed8e4a00d74cfa7a3fa6a2315c467
KVM: MMU: unalias gfn before sp->gfns[] comparison in sync_page

sp->gfns[] contain unaliased gfns, but gpte might contain pointer
to aliased region.

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/paging_tmpl.h