From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: 32/64-bit hypercall interface Date: 04 Oct 2005 14:11:10 +0200 Message-ID: References: <7F740D512C7C1046AB53446D37200173056C83B9@scsmsx402.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <7F740D512C7C1046AB53446D37200173056C83B9@scsmsx402.amr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Nakajima, Jun" Cc: Jeremy Katz , xen-devel@lists.xensource.com, Ian Pratt List-Id: xen-devel@lists.xenproject.org "Nakajima, Jun" writes: > > The 32-bit and 64-bit hypercall ABI cannot be identical on x86 because > of the generic ABI difference between 32-bit and 64-bit. You use a custom ABI for hypercalls anyways, so you can define it to be the same with some care. That is the approach that is used by some newer subsystems in the Linux kernel. In my experience even people with the best intentions tend to get that wrong at some point because there are some subtle issues so having the additional safety net of a compat layer is still a good idea. It would only emulate the ones that went wrong. -Andi