aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-05-31 15:09:07 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-31 15:09:07 -0400
commitbd0e162d0312aa95e8b85ba883efddebf27be121 (patch)
tree5401fd64650a2c5965e43dccaa636bc814072043
parent054552272e6e152ff40f8b7f164dd390a5a62097 (diff)
parent56457f38f212344fb38b250cfa7e7311c065022f (diff)
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
-rw-r--r--arch/x86/kvm/mmu.c3
-rw-r--r--include/asm-generic/Kbuild1
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 72102e0ab7cb..be3cea4407ff 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2595,8 +2595,7 @@ static void transparent_hugepage_adjust(struct kvm_vcpu *vcpu,
2595 *gfnp = gfn; 2595 *gfnp = gfn;
2596 kvm_release_pfn_clean(pfn); 2596 kvm_release_pfn_clean(pfn);
2597 pfn &= ~mask; 2597 pfn &= ~mask;
2598 if (!get_page_unless_zero(pfn_to_page(pfn))) 2598 kvm_get_pfn(pfn);
2599 BUG();
2600 *pfnp = pfn; 2599 *pfnp = pfn;
2601 } 2600 }
2602 } 2601 }
diff --git a/include/asm-generic/Kbuild b/include/asm-generic/Kbuild
index 53f91b1ae53a..2c85a0f647b7 100644
--- a/include/asm-generic/Kbuild
+++ b/include/asm-generic/Kbuild
@@ -8,6 +8,7 @@ header-y += int-ll64.h
8header-y += ioctl.h 8header-y += ioctl.h
9header-y += ioctls.h 9header-y += ioctls.h
10header-y += ipcbuf.h 10header-y += ipcbuf.h
11header-y += kvm_para.h
11header-y += mman-common.h 12header-y += mman-common.h
12header-y += mman.h 13header-y += mman.h
13header-y += msgbuf.h 14header-y += msgbuf.h