From: Keir Fraser Subject: Re: Hypercall interface changes for PAE Date: Tue, 31 May 2005 22:18:51 +0100 Message-ID: <21535082fb7d0624c1fc6606b537157f@cl.cam.ac.uk> References: <20050530125247.GA12140@bytesex> <61adb21cca3abe8c474f66040037da6a@cl.cam.ac.uk> <20050531101851.GB22211@bytesex> <20050531113614.GB22913@bytesex> <15fad2b24c731550fee5cffc747ae3c9@cl.cam.ac.uk> <8013a228218edd6c3b74a5b5974e0553@cl.cam.ac.uk> <20050531190208.GA28168@bytesex> <20050531203833.GC28168@bytesex> 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: <20050531203833.GC28168@bytesex> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gerd Knorr Cc: xen-devel List List-Id: xen-devel@lists.xenproject.org On 31 May 2005, at 21:38, Gerd Knorr wrote: > I'd expect with a identical interface we'll only have to add a > PAE-enabled domain builder to boot domU (there are multiple > already anyway, right?), whereas with different interfaces the > split goes down to the shared lib which provides the hypercall > interface to the tools. I don't think we want pae/non-pae builder made visible to higher-level tools. We can hide the auto-switch between builders within libxc itself. The same goes for domain save/restore code as well (although there is potentially scope for more binary-code sharing between pae/non-pae in this case). > Point is I expect it being much easier to switch at runtime > between pae and non-pae in the tools when the hypercall > interface is identical. I might be wrong on this though. The code that would be affected by an interface difference is precisely that code which manipulates page tables, and so is already broken by the different pagetable format. The only way unmodified non-pae code could possibly be made to work is by using shadow page tables. In that case we would hook off the call to e.g., do_mmu_update() very early anyway (off into shadow code). Hardly different really from jumping in the first place at a different hypercall function with different prototype: this latter would arguably be cleaner and less cluttered, as well as easily allowing us to support non-pae hypercall interface within pae xen. I really think that creating this interface inconsistency is not something to be worried about. -- Keir