From: Ian Campbell Subject: Re: [PATCH] xen: workaround for 64-bit size/alignment bitops Date: Mon, 28 Apr 2014 10:13:30 +0100 Message-ID: <1398676410.29700.6.camel@kazak.uk.xensource.com> References: <1398589752-14639-1-git-send-email-murzin.v@gmail.com> <535E1AF0.3090402@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wehd1-0006Qy-5O for xen-devel@lists.xenproject.org; Mon, 28 Apr 2014 09:13:35 +0000 In-Reply-To: <535E1AF0.3090402@citrix.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: David Vrabel Cc: xen-devel@lists.xenproject.org, Vladimir Murzin , Pranavkumar Sawargaonkar List-Id: xen-devel@lists.xenproject.org On Mon, 2014-04-28 at 10:10 +0100, David Vrabel wrote: > On 28/04/14 09:47, Pranavkumar Sawargaonkar wrote: > > On 27 April 2014 14:39, Vladimir Murzin wrote: > >> Xen assumes that bit operations are able to operate on 32-bit size and > >> alignment. For arm64 bitops are based on atomic exclusive load/store > >> instructions to guarantee that changes are made atomically. However, these > >> instructions require that address to be aligned to the data size. Because, by > >> default, bitops operates on 64-bit size it implies that address should be > >> aligned appropriately. All these lead to breakage of Xen assumption for bitops > >> properties. > >> > >> As a workaround address is aligned forcefully along with adjustment for bit > >> position. > >> > [...] > > > > I have tried this patch on XGENE and works fine, I have managed to get > > dom0 and domU working with it. > > > > Tested-by: Pranavkumar Sawargaonkar > > Thanks. Are there arm64 platforms that support Xen currently available > in 3.15? Or can this wait until 3.16? The foundation model and fastmodels are supported by 3.15. Xgene is partially available in 3.15 I think. This should be fixed in 3.15 please, and ideally be queued for backport to whichever version introduced the FIFO evtchn stuff. Ian.