]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: MMU: Fix incorrect direct gfn for unpaged mode shadow
authorAvi Kivity <avi@redhat.com>
Fri, 14 Jan 2011 12:10:18 +0000 (10:10 -0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:47:25 +0000 (14:47 -0800)
commite9d2581219cb776a9b6eeab9042584e9d5c3b046
treea47687071781281e4b9477e38d2b57cc4d01b268
parent295c639bff96e344913cd99118eecadf211e2e68
KVM: MMU: Fix incorrect direct gfn for unpaged mode shadow

commit c093b8b46c5f0dd12d799f0d6a3b579863df72f6 upstream.

We use the physical address instead of the base gfn for the four
PAE page directories we use in unpaged mode.  When the guest accesses
an address above 1GB that is backed by a large host page, a BUG_ON()
in kvm_mmu_set_gfn() triggers.

Resolves: https://bugzilla.kernel.org/show_bug.cgi?id=21962
Reported-and-tested-by: Nicolas Prochazka <prochazka.nicolas@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/mmu.c