From: Tim Deegan Subject: Re: [PATCH 25/45] xen: arm: separate guest user regs from internal guest state. Date: Thu, 14 Feb 2013 14:48:33 +0000 Message-ID: <20130214144833.GB83752@ocelot.phlegethon.org> References: <1358956576.17440.60.camel@zakaz.uk.xensource.com> <1358956611-8432-25-git-send-email-ian.campbell@citrix.com> <20130214131041.GR83752@ocelot.phlegethon.org> <1360849103.20449.371.camel@zakaz.uk.xensource.com> <1360852832.20449.409.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1360852832.20449.409.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Stefano Stabellini , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org At 14:40 +0000 on 14 Feb (1360852832), Ian Campbell wrote: > Subject: [PATCH] xen: arm: separate guest user regs from internal guest state. > > struct cpu_user_regs is currently used as both internal state > (specifically at the base of the stack) and a guest/toolstack > visible API (via struct vcpu_guest_context used by > XEN_DOMCTL_{g,s}etvcpucontext and VCPUOP_initialise). > > This causes problems when we want to make the API 64-bit clean since > we don't really want to change the size of the on-stack struct. > > So split into vcpu_guest_core_regs which is the API facing struct > and keep cpu_user_regs purely internal, translate between the two. > > In the user API arrange for both 64- and 32-bit registers to be > included in a layout which does not differ depending on toolstack > architecture. Also switch to using the more formal banked register > names (e.g. with the _usr suffix) for clarity. > > This is an ABI change. Note that the kernel doesn't currently use > this data structure so it affects the tools interface only. > > Signed-off-by: Ian Campbell > --- > v2: Allow 32-bit to see 64-bit register names too, this is needed so that > 32-bit toolstacks can access/control 64-bit guests. Acked-by: Tim Deegan