]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Fix incorrect direct gfn for unpaged mode shadow
authorAvi Kivity <avi@redhat.com>
Tue, 28 Dec 2010 10:09:07 +0000 (12:09 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 29 Dec 2010 10:35:29 +0000 (12:35 +0200)
commit963955a1e364730ea23b67ac131edf8da6badb2c
treed413537c05b9cc23cc0725d0aeaa7bb37ae81407
parent94f3bdfd2a6ea4b44276e9d7fe56d9843f5edfc6
KVM: MMU: Fix incorrect direct gfn for unpaged mode shadow

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>
KVM-Stable-Tag.
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c