From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Deegan Subject: Re: xen dire-map area Date: Thu, 14 Jun 2012 10:58:16 +0100 Message-ID: <20120614095816.GF82539@ocelot.phlegethon.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Baozeng Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 17:30 +0800 on 14 Jun (1339695001), Baozeng wrote: > Hell all, > > I am doing some research work on protecting Xen's data structures. > I know there is a direct-map area(about 12M), in which we can get the > physical address of the data structure from its virtual address. My > question is : are the stack and the heap of Xen both located in this > direct-map area? On 32-bit x86, anything allocated with alloc_xenheap_* or xmalloc() is in that area (and that includes Xen's stacks). Anything allocated with alloc_domheap_* is not. Also the frametable and M2P are mapped separately. The details are in include/asm-x86/config.h. Cheers, Tim.