Skip to content

Commit bd0e162

Browse files
committed
Merge git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull two small kvm fixes from Avi Kivity: "A build fix for non-kvm archs and a transparent hugepage refcount bugfix on hosts with 4M pages." * git://git.kernel.org/pub/scm/virt/kvm/kvm: KVM: Export asm-generic/kvm_para.h KVM: MMU: fix huge page adapted on non-PAE host
2 parents 0545522 + 56457f3 commit bd0e162

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/x86/kvm/mmu.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2595,8 +2595,7 @@ static void transparent_hugepage_adjust(struct kvm_vcpu *vcpu,
25952595
*gfnp = gfn;
25962596
kvm_release_pfn_clean(pfn);
25972597
pfn &= ~mask;
2598-
if (!get_page_unless_zero(pfn_to_page(pfn)))
2599-
BUG();
2598+
kvm_get_pfn(pfn);
26002599
*pfnp = pfn;
26012600
}
26022601
}

‎include/asm-generic/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ header-y += int-ll64.h
88
header-y += ioctl.h
99
header-y += ioctls.h
1010
header-y += ipcbuf.h
11+
header-y += kvm_para.h
1112
header-y += mman-common.h
1213
header-y += mman.h
1314
header-y += msgbuf.h

0 commit comments

Comments
 (0)