Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Paul Durrant
Gross > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > >>> On 12.06.17 at 16:43, wrote: > >> From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > >> Paul Durrant > >> Sent: 12 June 2017 15:29 &

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Jan Beulich
>>> On 12.06.17 at 16:43, wrote: >> From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of >> Paul Durrant >> Sent: 12 June 2017 15:29 >> > From: Jan Beulich [mailto:jbeul...@suse.com] >> > Sent: 12 June 2017 14:55 >> > >> > That worked fine: >> > >> > >> > >> > (XEN) MBR[80] @ 85e0

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Paul Durrant
ect.org) de...@lists.xenproject.org> > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > > -Original Message- > > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > > Paul Durrant > > Sent: 12 June 2017 15:29

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Paul Durrant
7;Boris Ostrovsky' ; > xen-devel(xen-de...@lists.xenproject.org) de...@lists.xenproject.org> > Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > > -Original Message- > > From: Jan Beulich [mailto:jbeul...@suse.com] > > Sent: 12 June 2017 14:55

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Paul Durrant
Durrant > >> Cc: Julien Grall (julien.gr...@arm.com) ; Andrew > >> Cooper ; xen-devel(xen- > >> de...@lists.xenproject.org) ; 'Boris > >> Ostrovsky' ; Juergen Gross > >> > >> Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fa

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Jan Beulich
; de...@lists.xenproject.org) ; 'Boris >> Ostrovsky' ; Juergen Gross >> >> Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot >> >> >>> On 12.06.17 at 12:53, wrote: >> >> -Original Message- >> > [snip] &g

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Paul Durrant
Cooper ; xen-devel(xen- > > de...@lists.xenproject.org) ; 'Boris > > Ostrovsky' ; Juergen Gross > > > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > > > >>> On 12.06.17 at 12:53, wrote: > > >> -Orig

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Paul Durrant
Gross > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > >>> On 12.06.17 at 12:53, wrote: > >> -Original Message- > > [snip] > >> > > > >> > > What do you think it best to do for Xen 4.9? Hardcoding

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Jan Beulich
>>> On 12.06.17 at 12:53, wrote: >> -Original Message- > [snip] >> > > >> > > What do you think it best to do for Xen 4.9? Hardcoding a 4k alignment is >> > > clearly easy and would work around this BIOS issue but, as you say, it >> does >> > > grow the image. Reverting Juergen's patch al

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Paul Durrant
> -Original Message- [snip] > > > > > > What do you think it best to do for Xen 4.9? Hardcoding a 4k alignment is > > > clearly easy and would work around this BIOS issue but, as you say, it > does > > > grow the image. Reverting Juergen's patch also works round the issue, > but > > > that

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Paul Durrant
Gross > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > >>> On 12.06.17 at 10:14, wrote: > > Looking at the code in arch/x86/boot/edd.c in Linux, it sector aligns the > > buffer into which it reads the MBR and the sector size is pulled

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Jan Beulich
>>> On 12.06.17 at 10:14, wrote: > Looking at the code in arch/x86/boot/edd.c in Linux, it sector aligns the > buffer into which it reads the MBR and the sector size is pulled from the EDD > which means, I believe, that the MBR read on the skull canyon would be 4k > aligned. > > What do you th

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-12 Thread Paul Durrant
7;Boris Ostrovsky' ; > xen-devel(xen-de...@lists.xenproject.org) de...@lists.xenproject.org> > Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > > -Original Message- > > From: Jan Beulich [mailto:jbeul...@suse.com] > > Sent: 09 June 2017 16:41

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-09 Thread Jan Beulich
>>> On 09.06.17 at 17:47, wrote: > I'll go have a look and the linux edd code. I'm also trying a BIOS update > (which is proving to be trickier than I thought as it seems to have killed > networking in some weird way). Speaks for the quality of what that vendor delivers... Jan __

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-09 Thread Paul Durrant
Gross > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > >>> On 09.06.17 at 17:14, wrote: > > I've characterised the issue some more and it appears to be an overflow > > inside the int13 handler if es:bx is less than 512 bytes belo

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-09 Thread Jan Beulich
>>> On 09.06.17 at 17:14, wrote: > I've characterised the issue some more and it appears to be an overflow > inside the int13 handler if es:bx is less than 512 bytes below a 4k boundary. > I modified the code to use a hardcoded segment, which I set at 0x6000, and > all values of bx up to 0xe00

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-09 Thread Paul Durrant
Gross > Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > On 06/09/2017 09:05 AM, Jan Beulich wrote: > >>>> On 09.06.17 at 14:19, wrote: > >> ..., but all this has > >> got me wondering why Xen bothers to read the MBR, or the EDD i

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-09 Thread Boris Ostrovsky
On 06/09/2017 09:05 AM, Jan Beulich wrote: On 09.06.17 at 14:19, wrote: >> ..., but all this has >> got me wondering why Xen bothers to read the MBR, or the EDD info for that >> matter? EDD or MBR signatures are returned by the XENPF_firmware_info >> hypercall, and Linux does seem to have

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-09 Thread Jan Beulich
>>> On 09.06.17 at 14:19, wrote: > ..., but all this has > got me wondering why Xen bothers to read the MBR, or the EDD info for that > matter? EDD or MBR signatures are returned by the XENPF_firmware_info > hypercall, and Linux does seem to have code called early on in > xen_start_kernel() th

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-09 Thread Paul Durrant
Gross > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > >>> On 08.06.17 at 14:42, wrote: > > For those following this... > > > > By poking characters at the screen and bisecting where they stopped, I > have > > narrowed the

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-08 Thread Paul Durrant
Gross > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > >>> On 08.06.17 at 14:42, wrote: > > For those following this... > > > > By poking characters at the screen and bisecting where they stopped, I > have > > narrowed the

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-08 Thread Jan Beulich
>>> On 08.06.17 at 14:42, wrote: > For those following this... > > By poking characters at the screen and bisecting where they stopped, I have > narrowed the problem to the code in edd.S. I can successfully boot by setting > opt_edd=off on the Xen cmd line and I can also boot with the following

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-08 Thread Juergen Gross
On 08/06/17 14:42, Paul Durrant wrote: > For those following this... > > By poking characters at the screen and bisecting where they stopped, I have > narrowed the problem to the code in edd.S. I can successfully boot by setting > opt_edd=off on the Xen cmd line and I can also boot with the foll

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-08 Thread Paul Durrant
For those following this... By poking characters at the screen and bisecting where they stopped, I have narrowed the problem to the code in edd.S. I can successfully boot by setting opt_edd=off on the Xen cmd line and I can also boot with the following patch applied: diff --git a/xen/arch/x86/

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Jan Beulich
>>> On 07.06.17 at 17:40, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 07 June 2017 16:33 >> >> Since you said it doesn't >> make it to the point where Xen would do any normal output, have >> you been able to narrow down how far it gets? I think this is one >> of the few remaini

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
Gross > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > >>> On 07.06.17 at 17:06, wrote: > >> From: Jan Beulich [mailto:jbeul...@suse.com] > >> Sent: 07 June 2017 13:56 > >> >>> On 07.06.17 at 14:46, wrote: > &

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Jan Beulich
>>> On 07.06.17 at 17:06, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 07 June 2017 13:56 >> >>> On 07.06.17 at 14:46, wrote: >> > I guess I'm going to have to try to write some code to log values to >> > the VGA buffer to see what is going on. >> >> Good luck! >> > > That r

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
Durrant > >> Cc: Julien Grall (julien.gr...@arm.com) ; Andrew > >> Cooper ; xen-devel(xen- > >> de...@lists.xenproject.org) ; > >> 'BorisOstrovsky' ; Juergen Gross > >> > >> Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Boris Ostrovsky
On 06/07/2017 04:07 AM, Jan Beulich wrote: On 06.06.17 at 19:00, wrote: >> FWIW, one of machines in our test farm choked on this very patch. I >> don't remember details now but essentially it turned out that syslinux >> (we are pxe-booting) could not handle changes in ELF sections layout >> (

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Jan Beulich
t; de...@lists.xenproject.org) ; >> 'BorisOstrovsky' ; Juergen Gross >> >> Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot >> >> >>> On 07.06.17 at 13:55, wrote: >> >> From: Jan Beulich [mailto:jbeul...@suse.com] >

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
Gross > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > >>> On 07.06.17 at 13:55, wrote: > >> From: Jan Beulich [mailto:jbeul...@suse.com] > >> Sent: 07 June 2017 12:50 > >> 2) Provide the E820 map of that box. > >&g

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Jan Beulich
>>> On 07.06.17 at 14:26, wrote: > I'm currently trying to figure out what the code in head.S > just ahead of trampoline_setup is trying to do. That's where we determine where to put the trampoline, by looking at base memory size, EBDA location, and the MB provided low memory size. Insane values

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
Gross > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > >>> On 07.06.17 at 14:02, wrote: > >> From: Juergen Gross [mailto:jgr...@suse.com] > >> Sent: 07 June 2017 12:57 > >> > >> On 07/06/17 13:06, Paul Durrant wro

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Jan Beulich
>>> On 07.06.17 at 14:02, wrote: >> From: Juergen Gross [mailto:jgr...@suse.com] >> Sent: 07 June 2017 12:57 >> >> On 07/06/17 13:06, Paul Durrant wrote: >> > It appears that it is just the code that needs to go at the end. The >> > following >> patch is sufficient to avoid the problem. This may

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Juergen Gross
...@lists.xenproject.org>; Julien Grall (julien.gr...@arm.com) >> ; 'Boris Ostrovsky' >> Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot >> >> On 07/06/17 13:06, Paul Durrant wrote: >>>> -Original Message- >>>> F

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
> ; 'Boris Ostrovsky' > Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > On 07/06/17 13:06, Paul Durrant wrote: > >> -Original Message- > >> From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > >> Paul D

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Jan Beulich
>>> On 07.06.17 at 13:55, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 07 June 2017 12:50 >> 2) Provide the E820 map of that box. >> I'm suspecting the BIOS might use an EBDA without recording it in >> the low BIOS data area. If it's reported in E820 that would then >> likely be

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Juergen Gross
Cc: xen-devel (xen-de...@lists.xenproject.org) > de...@lists.xenproject.org>; Julien Grall (julien.gr...@arm.com) >> ; 'Boris Ostrovsky' >> Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot >> >>> -Original Message- >>

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
Gross > > Subject: RE: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > >>> On 07.06.17 at 12:36, wrote: > >> -Original Message- > > [snip] > >> >> > >> >> TBH: I really can't see what is wrong with that pat

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Jan Beulich
>>> On 07.06.17 at 12:36, wrote: >> -Original Message- > [snip] >> >> >> >> TBH: I really can't see what is wrong with that patch. The only change >> >> which should be able to break something seems to be the reduction of >> the >> >> wakeup stack size to 3kB, but this shouldn't affect bo

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
s.xenproject.org>; Julien Grall (julien.gr...@arm.com) > ; 'Boris Ostrovsky' > Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > > -Original Message- > [snip] > > >> > > >> TBH: I really can't see what is wrong with

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
> -Original Message- [snip] > >> > >> TBH: I really can't see what is wrong with that patch. The only change > >> which should be able to break something seems to be the reduction of > the > >> wakeup stack size to 3kB, but this shouldn't affect booting the system > >> at all... > >> > > Ye

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Andrew Cooper
ists.xenproject.org) ; 'Boris >> Ostrovsky' >> Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot >> >> On 07/06/17 10:27, Jan Beulich wrote: >>>>>> On 07.06.17 at 10:07, wrote: >>>>> -Original Message-

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
gt; Sent: 06 June 2017 18:00 > >>> To: Paul Durrant ; 'Jan Beulich' > >>> > >>> Cc: xen-devel (xen-de...@lists.xenproject.org) >>> de...@lists.xenproject.org> > >>> Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Juergen Gross
;>> >>> Cc: xen-devel (xen-de...@lists.xenproject.org) >> de...@lists.xenproject.org> >>> Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot >>> >>> On 06/06/2017 12:28 PM, Paul Durrant wrote: >>>>> -Original Messa

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Jan Beulich
org) > de...@lists.xenproject.org> >> Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot >> >> On 06/06/2017 12:28 PM, Paul Durrant wrote: >> >> -Original Message- >> >> From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
> Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > > > -Original Message- > > From: Jan Beulich [mailto:jbeul...@suse.com] > > Sent: 07 June 2017 09:07 > > To: Boris Ostrovsky > > Cc: Paul Durrant ; xen-devel (xen- > > de...@l

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 07 June 2017 09:07 > To: Boris Ostrovsky > Cc: Paul Durrant ; xen-devel (xen- > de...@lists.xenproject.org) > Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > &g

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
gt;> To: 'Jan Beulich' > >> Cc: xen-devel (xen-de...@lists.xenproject.org) >> de...@lists.xenproject.org> > >> Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot > >> > >>> -Original Message- > >>> From:

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Jan Beulich
>>> On 06.06.17 at 19:00, wrote: > FWIW, one of machines in our test farm choked on this very patch. I > don't remember details now but essentially it turned out that syslinux > (we are pxe-booting) could not handle changes in ELF sections layout > (the way syslinux calculated how to load the bina

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-07 Thread Paul Durrant
> -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 06 June 2017 18:41 > To: Paul Durrant ; 'Jan Beulich' > > Cc: xen-devel (xen-de...@lists.xenproject.org) de...@lists.xenproject.org> > Subject: Re: [Xen-devel] debian st

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-06 Thread Julien Grall
Hi Paul, On 06/06/17 16:51, Paul Durrant wrote: -Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: 06 June 2017 16:11 To: Paul Durrant Cc: xen-devel (xen-de...@lists.xenproject.org) Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot On 06.06.17

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-06 Thread Boris Ostrovsky
s.xenproject.org) > de...@lists.xenproject.org> >> Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot >> >>> -Original Message- >>> From: Jan Beulich [mailto:jbeul...@suse.com] >>> Sent: 06 June 2017 16:11 >>> To: Paul Durran

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-06 Thread Paul Durrant
vel] debian stretch dom0 + xen 4.9 fails to boot > > > -Original Message- > > From: Jan Beulich [mailto:jbeul...@suse.com] > > Sent: 06 June 2017 16:11 > > To: Paul Durrant > > Cc: xen-devel (xen-de...@lists.xenproject.org) > de...@lists.xenproject.or

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-06 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 06 June 2017 16:11 > To: Paul Durrant > Cc: xen-devel (xen-de...@lists.xenproject.org) de...@lists.xenproject.org> > Subject: Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot >

Re: [Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-06 Thread Jan Beulich
>>> On 06.06.17 at 16:32, wrote: > I've been having fun setting up a new test rig... > > I have a skull canyon NUC and I put debian stretch (rc4) on it (so that's a > 4.9 kernel) and then tried building and installing the latest Xen staging-4.9 > code. The system failed to boot... basically it

[Xen-devel] debian stretch dom0 + xen 4.9 fails to boot

2017-06-06 Thread Paul Durrant
I've been having fun setting up a new test rig... I have a skull canyon NUC and I put debian stretch (rc4) on it (so that's a 4.9 kernel) and then tried building and installing the latest Xen staging-4.9 code. The system failed to boot... basically it got stuck before even managing to get suffi