public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* HV KVM fails on 970 due to HTAB allocation
@ 2012-01-12 18:16 Alexander Graf
  2012-01-13  5:11 ` Paul Mackerras
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Graf @ 2012-01-12 18:16 UTC (permalink / raw)
  To: kvm-ppc; +Cc: paulus@samba.org, DValeev, kvm@vger.kernel.org

Hi Paul,

While trying to run HV KVM for something useful on 970, we stumbled over 
the following code path:

         /* Allocate guest's hashed page table */
         hpt = 
__get_free_pages(GFP_KERNEL|__GFP_ZERO|__GFP_REPEAT|__GFP_NOWARN,
                                HPT_ORDER - PAGE_SHIFT);
         if (!hpt) {
                 pr_err("kvm_alloc_hpt: Couldn't alloc HPT\n");
                 return -ENOMEM;
         }
         kvm->arch.hpt_virt = hpt;

We're most of the time running into the !hpt case, because we simply 
don't have 16MB of contiguous memory lying around.

I was trying to check if we could maybe allocate a huge_tlb page from 
within kernel space, since that usually matches the 16MB pretty well. 
However that seems to be very tricky. Maybe something similar to the RMA 
thing would be a good idea?


Alex


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-13 12:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 18:16 HV KVM fails on 970 due to HTAB allocation Alexander Graf
2012-01-13  5:11 ` Paul Mackerras
2012-01-13 12:36   ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox