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)
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>

No differences found