From: David Vrabel <david.vrabel@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xenproject.org,
Vladimir Murzin <murzin.v@gmail.com>,
Jan Beulich <jbeulich@suse.com>
Subject: Re: [PATCH] xen/arm64: disable alignment check
Date: Mon, 28 Apr 2014 11:37:55 +0100 [thread overview]
Message-ID: <535E2F83.8030901@citrix.com> (raw)
In-Reply-To: <1398681362.29700.50.camel@kazak.uk.xensource.com>
On 28/04/14 11:36, Ian Campbell wrote:
> On Mon, 2014-04-28 at 11:24 +0100, David Vrabel wrote:
>> On 28/04/14 10:48, Ian Campbell wrote:
>>> On Sun, 2014-04-27 at 10:10 +0100, Vladimir Murzin wrote:
>>>> Alignment check is enabled by default at Xen boot.
>>>
>>> This has already been disabled in the development branch via:
>>> commit 58bbe7d71239db508c30099bf7b6db7c458f3336
>>> Author: Ian Campbell <ian.campbell@citrix.com>
>>> Date: Wed Mar 26 13:38:45 2014 +0000
>>>
>>> xen: arm64: disable alignment traps
>>>
>>> The mem* primitives which I am about to import from Linux in a subsequent
>>> patch rely on the hardware handling misalignment.
>>>
>>> The benefits of an optimised memcpy etc outweigh the downsides.
>>>
>>> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
>>> Acked-by: Julien Grall <julien.grall@linaro.org>
>>> Acked-by: Tim Deegan <tim@xen.org>
>>>
>>> I will consider this for backport, but first I'd like to consider
>>> whether we shouldn't fix the hypervisor side evtchn FIFO code along the
>>> same lines as the kernel side. David, any thoughts?
>>
>> I believe Jan suggested making Xen's bitops handle 32-bit alignment or
>> adding a new set of 32-bit bitops.
>
> This is already the case for the arm64 bitops, we deliberately diverged
> from Linux here because there are a bunch of other "misaligned" 4-byte
> bitmasks (one in the malloc implementation springs to mind).
Then I'm not sure what it is you're trying to fix in Xen?
David
next prev parent reply other threads:[~2014-04-28 10:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-27 9:10 [PATCH] xen/arm64: disable alignment check Vladimir Murzin
2014-04-28 9:48 ` Ian Campbell
2014-04-28 10:24 ` David Vrabel
2014-04-28 10:36 ` Ian Campbell
2014-04-28 10:37 ` David Vrabel [this message]
2014-04-28 10:43 ` Ian Campbell
2014-04-29 7:38 ` Vladimir Murzin
2014-04-29 8:58 ` Ian Campbell
2014-05-09 13:24 ` [PATCH] xen: arm: bitops take unsigned int (Was: Re: [PATCH] xen/arm64: disable alignment check) Ian Campbell
2014-05-09 16:19 ` Ian Campbell
2014-05-11 18:34 ` Stefano Stabellini
2014-05-12 8:36 ` Ian Campbell
2014-05-12 9:45 ` Stefano Stabellini
2014-05-12 12:15 ` Julien Grall
2014-05-12 12:18 ` Ian Campbell
2014-05-12 13:44 ` Julien Grall
2014-05-12 14:08 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=535E2F83.8030901@citrix.com \
--to=david.vrabel@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=jbeulich@suse.com \
--cc=murzin.v@gmail.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.