Commit 9109f4eb847b7c0be61ae25fb21b1ce2acc9c2d6
Exists in
master
and in
7 other branches
Merge branch 'kvm-updates/2.6.37' of git://git.kernel.org/pub/scm/virt/kvm/kvm
* 'kvm-updates/2.6.37' of git://git.kernel.org/pub/scm/virt/kvm/kvm: KVM: i8259: initialize isr_ack KVM: MMU: Fix incorrect direct gfn for unpaged mode shadow
Showing 2 changed files Side-by-side Diff
arch/x86/kvm/i8259.c
arch/x86/kvm/mmu.c
... | ... | @@ -2394,7 +2394,8 @@ |
2394 | 2394 | ASSERT(!VALID_PAGE(root)); |
2395 | 2395 | spin_lock(&vcpu->kvm->mmu_lock); |
2396 | 2396 | kvm_mmu_free_some_pages(vcpu); |
2397 | - sp = kvm_mmu_get_page(vcpu, i << 30, i << 30, | |
2397 | + sp = kvm_mmu_get_page(vcpu, i << (30 - PAGE_SHIFT), | |
2398 | + i << 30, | |
2398 | 2399 | PT32_ROOT_LEVEL, 1, ACC_ALL, |
2399 | 2400 | NULL); |
2400 | 2401 | root = __pa(sp->spt); |