This is a note to let you know that I've just added the patch titled

    KVM: MMU: Fix incorrect direct gfn for unpaged mode shadow

to the 2.6.36-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kvm-mmu-fix-incorrect-direct-gfn-for-unpaged-mode-shadow.patch
and it can be found in the queue-2.6.36 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From [email protected]  Tue Feb 15 10:53:55 2011
From: Avi Kivity <[email protected]>
Date: Fri, 14 Jan 2011 10:10:18 -0200
Subject: KVM: MMU: Fix incorrect direct gfn for unpaged mode shadow
To: [email protected], [email protected], [email protected], [email protected]
Message-ID: <[email protected]>


From: Avi Kivity <[email protected]>

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 <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
Cc: Marcelo Tosatti <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 arch/x86/kvm/mmu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2271,7 +2271,7 @@ static int mmu_alloc_roots(struct kvm_vc
                        return 1;
                if (tdp_enabled) {
                        direct = 1;
-                       root_gfn = i << 30;
+                       root_gfn = i << (30 - PAGE_SHIFT);
                }
                spin_lock(&vcpu->kvm->mmu_lock);
                kvm_mmu_free_some_pages(vcpu);


Patches currently in stable-queue which might be from [email protected] are

queue-2.6.36/0001-KVM-i8259-initialize-isr_ack.patch
queue-2.6.36/kvm-mmu-fix-32-bit-legacy-paging-with-npt.patch
queue-2.6.36/kvm-mmu-fix-incorrect-direct-gfn-for-unpaged-mode-shadow.patch

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to