From: Keir Fraser Subject: Re: [PATCH][VT]vga acceleration for cirrus logic device model Date: Fri, 23 Sep 2005 11:27:29 +0100 Message-ID: <8256895b253c6c0028b276856bdf40ce@cl.cam.ac.uk> References: Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Jiang, Yunhong" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 23 Sep 2005, at 10:53, Jiang, Yunhong wrote: > When we setup the memory mapping for cirrus logic, it is on high end > memory and will not be on the first l2 table. > At that time, we have two options: > 1) Using this patch, setup the l2 table unconditionally on > xc_vmx_build. > 2) Re-caculating the page array usage, and caculating which page can be > used for the l2 table. [un]setup_mapping does not make assumptions about the location of the l2 tables. It reads their addresses from the l3 table. Also, setup_mapping already knows how to allocate extra page tables, because it allocates extra l1 tables. It can use the same allocation scheme to allocate new l2 tables on demand. Something like this will certainly be needed for 64-bit tables anyway, where it's infeasible to pre-allocate all l3 and l2 table entries. -- Keir