KVM: MMU: Fix aliased gfns treated as unaliased
authorIzik Eidus <ieidus@redhat.com>
Fri, 3 Oct 2008 14:40:32 +0000 (17:40 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:51:50 +0000 (16:51 +0200)
commit2843099fee32a6020e1caa95c6026f28b5d43bff
tree774ddfeec4091adddf9bd9ce938648dad14c378e
parent6eb55818c043b097c83828da8430fcb9a02fdb89
KVM: MMU: Fix aliased gfns treated as unaliased

Some areas of kvm x86 mmu are using gfn offset inside a slot without
unaliasing the gfn first.  This patch makes sure that the gfn will be
unaliased and add gfn_to_memslot_unaliased() to save the calculating
of the gfn unaliasing in case we have it unaliased already.

Signed-off-by: Izik Eidus <ieidus@redhat.com>
Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
virt/kvm/kvm_main.c