All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zachary Amsden <zach@vmware.com>
To: Chris Wright <chrisw@osdl.org>
Cc: Andrew Morton <akpm@osdl.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Virtualization Mailing List <virtualization@lists.osdl.org>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Zwane Mwaikambo <zwane@arm.linux.org.uk>,
	Martin Bligh <mbligh@mbligh.org>,
	Pratap Subrahmanyam <pratap@vmware.com>,
	Christopher Li <chrisl@vmware.com>
Subject: Re: [PATCH 5/5] Create a hole in high linear address space
Date: Wed, 24 Aug 2005 14:18:32 -0700	[thread overview]
Message-ID: <430CE428.3000605@vmware.com> (raw)
In-Reply-To: <20050824201920.GN7762@shell0.pdx.osdl.net>

Chris Wright wrote:

>* Zachary Amsden (zach@vmware.com) wrote:
>  
>
>>Allow compile time creation of a hole at the high end of linear address space.
>>This makes accomodating a hypervisor a much more tractable problem by giving
>>it ample playground to live in.  Currently, the hole size is fixed at config
>>time; I have experimented with dynamically sized holes, and have a later
>>patch that developes this potential, but it becomes much more useful once
>>the exact negotiation of linear address space with the hypervisor is defined.
>>
>>The fixed compile time solution is sufficient for now.
>>    
>>
>
>Xen moves __FIXADDR_TOP like this:
>
>#ifdef CONFIG_X86_PAE
># define HYPERVISOR_VIRT_START (0xF5800000UL)
>#else
># define HYPERVISOR_VIRT_START (0xFC000000UL)
>#endif
>
>and
>
>#define __FIXADDR_TOP  (HYPERVISOR_VIRT_START - 2 * PAGE_SIZE)
>
>and also adds bits to fixmap.
>
>So this proposed mechanism isn't quite good enough.
>  
>

Hmm.  I was thinking it would be compile time variable with defaults -- like

config MEMORY_HOLE
       int "Create hole at top of memory (0-512 MB)"
       range 0 512
       default "0"
       default 168 if (CONFIG_X86_PAE && CONFIG_X86_HYPERVISOR)
       default 64 if (!CONFIG_X86_PAE && CONFIG_X86_HYPERVISOR)
       help
          Useful for creating a hole in the top of memory when running
          inside of a virtual machine monitor.

Adding things to the fixmap is a separate concept, thus a separate patch ;)

Zach

  reply	other threads:[~2005-08-24 21:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-24 18:45 [PATCH 5/5] Create a hole in high linear address space Zachary Amsden
2005-08-24 20:19 ` Chris Wright
2005-08-24 21:18   ` Zachary Amsden [this message]
2005-08-24 21:28     ` Chris Wright

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=430CE428.3000605@vmware.com \
    --to=zach@vmware.com \
    --cc=akpm@osdl.org \
    --cc=chrisl@vmware.com \
    --cc=chrisw@osdl.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@mbligh.org \
    --cc=pratap@vmware.com \
    --cc=virtualization@lists.osdl.org \
    --cc=zwane@arm.linux.org.uk \
    /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.