]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: MMU: Fix aliased gfns treated as unaliased
authorIzik Eidus <ieidus@redhat.com>
Mon, 23 Mar 2009 20:51:24 +0000 (17:51 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 May 2009 17:57:07 +0000 (10:57 -0700)
commite93d4df4cf013df5ab84c4967b9bfeecbb0f8c0d
tree18c05b5bccc504a0cacab1506d785663c5882ed8
parentae88df0aa69791cdaff74e89e65f2703f22e398e
KVM: MMU: Fix aliased gfns treated as unaliased

(cherry picked from 2843099fee32a6020e1caa95c6026f28b5d43bff)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
virt/kvm/kvm_main.c