All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Limpach <chris@pin.lu>
To: "MAGENHEIMER,DAN (HP-FtCollins,ex1)" <dan.magenheimer@hp.com>,
	xen-devel@lists.sourceforge.net
Subject: Re: Xen at scale
Date: Wed, 24 Mar 2004 00:23:30 +0100	[thread overview]
Message-ID: <0a2101c4112d$db5be610$070414ac@pin> (raw)
In-Reply-To: BAD2BC26CB905B469D66053BB354F83903E3C401@xfc03.fc.hp.com

> Here's a patch that adds back the CONFIG_HIGHMEM stuff.  It works
> fine with CONFIG_HIGHMEM off and with CONFIG_HIGHMEM on with
> dom0_memory <= 512MB, but fails with dom0_memory == 1GB (1048576)
> on my 2GB machine.

I think you'll need support from Xen for CONFIG_HIGHMEM:  the domain builder
maps all the domain's memory starting at 0xc0000000 so there's only 1GB
(less what's reserved for the Xen) available.  This is also how Linux maps
its memory and gets very simple kva->pa translation but is limited to ~1GB
of physical kernel memory (unless there's some trick hidden somewhere, I
don't know the Linux kernel that well (yet ;-)) which is also the reason for
CONFIG_HIGHMEM in the first place (again, as far as I can tell).

My guess is that one of the DOM0 operations fails in the builder when you
request a too large domain or that page table initialization fails in the
builder.

Now it would seem easy to just not map the memory which will end up in
highmem but we need to have all the memory mapped initially so that we can
build the phys_to_machine_mapping array.  I believe you can't build it only
from the machine_to_phys_mapping array provided by Xen since you don't know
which pages belong to the domain...

I think I would map the highmem pages starting at VA 0, the alternative
seems to be to pass an array with the page numbers to the domain.  I prefer
mapping the pages over using an array because we're already using the
pagetables to pass this kind of information and using an array introduces a
2nd interface between the domain's kernel and the domain builder.  Maybe
there's a simpler solution?

     christian



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

  parent reply	other threads:[~2004-03-23 23:23 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-23 22:37 Xen at scale MAGENHEIMER,DAN (HP-FtCollins,ex1)
2004-03-23 22:59 ` Alex Ho
2004-03-23 23:08 ` Ian Pratt
2004-03-23 23:23 ` Christian Limpach [this message]
2004-03-24  6:54   ` Kip Macy
2004-03-24 10:31     ` Christian Limpach
2004-03-24 10:49       ` Keir Fraser
2004-03-24 12:12         ` Christian Limpach
2004-03-24 15:56           ` Kip Macy
2004-03-24 17:15             ` Christian Limpach
2004-03-24 18:39               ` Kip Macy
2004-03-24 19:41                 ` Christian Limpach
2004-03-24 19:55                   ` Kip Macy
2004-03-24 21:06                     ` xen-1.2 again I RATTAN
2004-03-24 21:22                       ` Ian Pratt
2004-03-24 21:41                         ` I RATTAN
  -- strict thread matches above, loose matches on Subject: below --
2004-03-23 23:47 Xen at scale MAGENHEIMER,DAN (HP-FtCollins,ex1)
     [not found] <becker@cs.duke.edu>
2004-03-18 15:44 ` David Becker
2004-03-18 16:00   ` Ian Pratt
2004-03-18 16:27     ` David Becker
2004-03-18 16:21   ` Mark Williamson

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='0a2101c4112d$db5be610$070414ac@pin' \
    --to=chris@pin.lu \
    --cc=dan.magenheimer@hp.com \
    --cc=xen-devel@lists.sourceforge.net \
    /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.