Commit e9d25812 authored by Avi Kivity's avatar Avi Kivity Committed by Greg Kroah-Hartman
Browse files

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: default avatarNicolas Prochazka <prochazka.nicolas@gmail.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 295c639b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment