From: Ian Campbell <Ian.Campbell@citrix.com>
To: "xen.org" <ian.jackson@eu.citrix.com>
Cc: Julien Grall <julien.grall@citrix.com>, Tim Deegan <tim@xen.org>,
xen-devel@lists.xensource.com,
Stefano Stabellini <stefano.stabellini@citrix.com>
Subject: Re: [xen-unstable test] 18128: regressions - FAIL
Date: Sat, 15 Jun 2013 09:35:34 +0100 [thread overview]
Message-ID: <1371285334.25232.51.camel@dagon.hellion.org.uk> (raw)
In-Reply-To: <osstest-18128-mainreport@xen.org>
On Sat, 2013-06-15 at 07:16 +0100, xen.org wrote:
> flight 18128 xen-unstable real [real]
> http://www.chiark.greenend.org.uk/~xensrcts/logs/18128/
>
> Regressions :-(
>
> Tests which did not succeed and are blocking,
> including tests which could not be run:
> build-armhf 4 xen-build fail REGR. vs. 18121
kernel.c: In function 'kernel_elf_load':
kernel.c:162:18: error: 'struct elf_binary' has no member named 'dest'
make[4]: *** [kernel.o] Error 1
The bisector has separately fingered ed65808a8ed4 "libelf: check all
pointer accesses".
8<-----------------------
>From d1b3125b7e4d9ad3b1d8bb78781dd95fc2af2fee Mon Sep 17 00:00:00 2001
From: Ian Campbell <ian.campbell@citrix.com>
Date: Sat, 15 Jun 2013 09:30:47 +0100
Subject: [PATCH] xen: arm: fix build after libelf changes.
ed65808a8ed4 "libelf: check all pointer accesses" caused:
kernel.c: In function 'kernel_elf_load':
kernel.c:162:18: error: 'struct elf_binary' has no member named 'dest'
make[4]: *** [kernel.o] Error 1
The field is now called dest_base. We also need to populate dest_size.
This fixes the build for me although have not tested it. I have a feeling that
loading the kernel from an ELF file on ARM doesn't currently work anyway
(everyone uses the zImage loader as far as I am aware).
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: ian.jackson@eu.citrix.com
Cc: stefano.stabellini@citrix.com
Cc: julien.grall@citrix.com
Cc: tim@xen.org
---
xen/arch/arm/kernel.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/xen/arch/arm/kernel.c b/xen/arch/arm/kernel.c
index 43cf2ab..aba5441 100644
--- a/xen/arch/arm/kernel.c
+++ b/xen/arch/arm/kernel.c
@@ -159,7 +159,9 @@ static int kernel_try_zimage_prepare(struct kernel_info *info,
static void kernel_elf_load(struct kernel_info *info)
{
printk("Loading ELF image into guest memory\n");
- info->elf.elf.dest = (void*)(unsigned long)info->elf.parms.virt_kstart;
+ info->elf.elf.dest_base = (void*)(unsigned long)info->elf.parms.virt_kstart;
+ info->elf.elf.dest_size =
+ info->elf.parms.virt_kend - info->elf.parms.virt_kstart;
elf_load_binary(&info->elf.elf);
printk("Free temporary kernel buffer\n");
--
1.7.2.5
next prev parent reply other threads:[~2013-06-15 8:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-15 6:16 [xen-unstable test] 18128: regressions - FAIL xen.org
2013-06-15 8:35 ` Ian Campbell [this message]
2013-06-15 11:15 ` Andrew Cooper
2013-06-15 12:00 ` Ian Campbell
2013-06-16 19:24 ` 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=1371285334.25232.51.camel@dagon.hellion.org.uk \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xensource.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).