All of lore.kernel.org
 help / color / mirror / Atom feed
* Baffled by multipage_allocation_permitted()
@ 2009-06-15 21:44 Dave McCracken
  2009-06-15 21:57 ` Keir Fraser
  0 siblings, 1 reply; 7+ messages in thread
From: Dave McCracken @ 2009-06-15 21:44 UTC (permalink / raw)
  To: Xen Developers List


I have completed changes that allow me to create/save/restore domains 
allocated with 2M pages and run kernels with hugepage support.  This all 
appears to work fine.

However, while teaching the balloon driver to work in 2M page sizes, I 
suddenly had the multipage_allocation_permitted() macro in the hypervisor 
start failing.  This macro has the definition:

#define multipage_allocation_permitted(d)   \
   (!rangeset_is_empty((d)->iomem_caps) || \
    !rangeset_is_empty((d)->arch.ioport_caps))

I had never tracked down the significance of this macro since it didn't appear 
to be an issue.  Now it's suddenly denying me the ability to work in 2M pages.

What is this macro trying to achieve?  Why is it necessary?  Is there any 
compelling reason we can't just remove it and allow multipage allocations from 
any domain?

Thanks,
Dave McCracken
Oracle Corp.

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

end of thread, other threads:[~2009-06-16 13:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-15 21:44 Baffled by multipage_allocation_permitted() Dave McCracken
2009-06-15 21:57 ` Keir Fraser
2009-06-16  9:19   ` Jan Beulich
2009-06-16  9:41     ` Keir Fraser
2009-06-16 13:10       ` Dave McCracken
2009-06-16 13:21         ` Keir Fraser
2009-06-16 13:23         ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.