All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Lalancette <clalance@redhat.com>
To: Tim Deegan <Tim.Deegan@xensource.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Tracking "Cannot allocate memory" error in shadow_alloc_p2m_table
Date: Wed, 10 Jan 2007 10:41:06 -0500	[thread overview]
Message-ID: <45A50912.6030100@redhat.com> (raw)
In-Reply-To: <20070110113207.GD21843@york.uk.xensource.com>

Tim Deegan wrote:
> Hi,
> 
> At 16:16 -0500 on 09 Jan (1168359405), Chris Lalancette wrote:
> 
>>What's happening is that the gfn_remainder passed into p2m_find_entry
>>is something like 0x3a3815 which, when shifted by shift (which would
>>happen to be 18 in the case of the 3rd-level page table in i686 PAE),
>>it would end up being larger than the max (which is 8), and hence
>>causing the failure.
> 
> 
> Are you giving this domain more than 7GB of RAM on a PAE hypervisor?

Yes, the Hypervisor is i686 PAE, but no, the FV domain that I am trying to start up only has 512MB of
memory.

> 
> 
>>1)  Am I missing something here?  Is there some sort of initialization of the machine_to_phys_mapping
>>table that I missed?
> 
> 
> The code you cut out is start-of-day code that builds the p2m map of a
> domain from the m2p entries of its allocated pages.  It was needed
> originally because the domain builder tools would set up the guest's
> memory and m2p mapping and _then_ enable shadow-translate mode.  It may
> not be necessary now that HVM domains are put in shadow mode at creation
> time.
> 
> AFAICS, either the domain should have no memory assigned yet (in which
> case it does nothing), or the domain's pages should have m2p entries
> that are valid, explicitly invalid, or set to the "debug pattern" of all
> 5s.  I'll look at a more sensible failure mode then -ENOMEM, though.

Ah, that makes sense.  Yeah, I was thinking that the other way to solve this was to initialize the whole
machine_to_phys_mapping table to something sensible, but then I just didn't even see why it needed to be
done at this early stage, so I took the code out.  Either way is fine with me...I would just like to see
the FV domains start working on this large memory machine :).

Thanks,
Chris Lalancette

  reply	other threads:[~2007-01-10 15:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-09 21:16 Tracking "Cannot allocate memory" error in shadow_alloc_p2m_table Chris Lalancette
2007-01-10 11:32 ` Tim Deegan
2007-01-10 15:41   ` Chris Lalancette [this message]
2007-01-12  5:13   ` Steven Rostedt
2007-01-12 11:07     ` Tim Deegan
2007-01-12 13:05       ` Steven Rostedt
2007-01-12 14:36         ` Steven Rostedt
2007-01-12 14:37         ` Tim Deegan

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=45A50912.6030100@redhat.com \
    --to=clalance@redhat.com \
    --cc=Tim.Deegan@xensource.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.