All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave McCracken <dcm@mccr.org>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel@lists.xensource.com, Jan Beulich <JBeulich@novell.com>
Subject: Re: Baffled by multipage_allocation_permitted()
Date: Tue, 16 Jun 2009 08:10:27 -0500	[thread overview]
Message-ID: <200906160810.29184.dcm@mccr.org> (raw)
In-Reply-To: <C65D276A.7EE3%keir.fraser@eu.citrix.com>

On Tuesday 16 June 2009, Keir Fraser wrote:
> On 16/06/2009 10:19, "Jan Beulich" <JBeulich@novell.com> wrote:
> >> We can just get rid of it I think. There are arguably worse other things
> >> we already allow, like any guest can allocate low memory by specifying a
> >> small value of XENMEMF_address_bits().
> >
> > Wouldn't it be better to tighten things rather than relaxing them?
>
> It'll need policy to be expressed and pushed down from the toolstack
> somehow. Noone's really thought about it too much. In this case I think I
> will keep the checking macro actually, and simply disallow allocations
> greater than order-9 (2MB superpage) unless the domain has direct hardware
> access capability.

Thanks for the change.  That resolves my problem.

Out of curiosity, why is it necessary to restrict the size of multipage 
allocations at all?  I'd think the memory size limits would adequately protect 
against any guest going wild with it.  What harm could come from, for example, 
a guest asking for a 16M contiguous page?  I don't know of any current need 
for such a thing.  I'm just wondering why we restrict it.

Thanks,
Dave McCracken
Oracle Corp.

  reply	other threads:[~2009-06-16 13:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2009-06-16 13:21         ` Keir Fraser
2009-06-16 13:23         ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200906160810.29184.dcm@mccr.org \
    --to=dcm@mccr.org \
    --cc=JBeulich@novell.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.