From: Simon Horman Subject: Re: Unaligned writes on the kexec path Date: Tue, 29 Nov 2011 14:51:39 +0900 Message-ID: <20111129055139.GB3222@verge.net.au> References: <4ED399A7.1070108@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Andrew Cooper , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Hi Keir, Hi Andrew, On Mon, Nov 28, 2011 at 08:42:16PM +0000, Keir Fraser wrote: > On 28/11/2011 14:24, "Andrew Cooper" wrote: > > > Hello, > > > > In c/s 7493bb48d89f, you change the internals of kexec_crash_save_info() > > The patch is by Simon Horman, cc'ed, not me. > > > to reduce unaligned writes, but pass the resulting pointer back to > > machine_crash_shutdown() which performs writes on the possibly unaligned > > data structure. There are also plenty of other writes on the kexec path > > which are possibly or certainly unaligned. > > > > What is the reason for wanting to reduce unaligned writes? > > The patch is solving an IA64 issue. Machine_crash_shutdown is arch specific. > > > Would a better solution be to just ensure that the crash note itself is > > properly aligned? > > Could be. Its a while since I wrote that change, but I believe that aligning the crash note would resolve the problem that I observed. As Keir mentions, machine_crash_shutdown() is architecture specific and I am not sure that I see the ia64 version making any unaligned writes.