Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-12 Thread Konrad Rzeszutek Wilk
On Thu, Jun 11, 2015 at 08:18:27AM +0100, Jan Beulich wrote: > >>> On 10.06.15 at 20:55, wrote: > > On Wed, Jun 10, 2015 at 02:34:00PM +0200, Roger Pau Monné wrote: > >> The first three notes contain information about the guest kernel and > >> the Xen hypercall ABI version. The following notes ar

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-12 Thread Konrad Rzeszutek Wilk
On Thu, Jun 11, 2015 at 10:43:08AM +0200, Roger Pau Monné wrote: > El 10/06/15 a les 20.55, Konrad Rzeszutek Wilk ha escrit: > > On Wed, Jun 10, 2015 at 02:34:00PM +0200, Roger Pau Monné wrote: > >> Hello, > >> > >> The discussion in [1] lead to an agreement of the missing pieces in PVH > >> (or H

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-11 Thread Tim Deegan
At 14:15 +0100 on 10 Jun (1433945712), Jan Beulich wrote: > >>> On 10.06.15 at 14:34, wrote: > > * XEN_ELFNOTE_PADDR_OFFSET: the offset of the ELF paddr field from the > >actual required physical address. > > Why would that be needed? I.e. why would there ever be an offset? I had the same q

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-11 Thread Roger Pau Monné
El 10/06/15 a les 20.55, Konrad Rzeszutek Wilk ha escrit: > On Wed, Jun 10, 2015 at 02:34:00PM +0200, Roger Pau Monné wrote: >> Hello, >> >> The discussion in [1] lead to an agreement of the missing pieces in PVH >> (or HVM without a device-model) in order to progress with it's >> implementation.

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-11 Thread Roger Pau Monné
El 10/06/15 a les 23.31, Andrew Cooper ha escrit: > On 10/06/2015 19:55, Konrad Rzeszutek Wilk wrote: >>> All other processor registers and flag bits are undefined. The OS is in >>> charge of setting up it's own stack, GDT and IDT. >>> >>> Note that the boot protocol resembles the multiboot1 speci

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-11 Thread Roger Pau Monné
El 10/06/15 a les 17.57, Andrew Cooper ha escrit: Do we want to keep using the start_info page? Most of the fields there are not relevant for auto-translated guests, but without it we have to figure out how to pass the following information to the guest: - Flags: SIF_xxx

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-11 Thread Jan Beulich
>>> On 10.06.15 at 20:55, wrote: > On Wed, Jun 10, 2015 at 02:34:00PM +0200, Roger Pau Monné wrote: >> The first three notes contain information about the guest kernel and >> the Xen hypercall ABI version. The following notes are of special >> interest: >> >> * XEN_ELFNOTE_PADDR_OFFSET: the of

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-10 Thread Andrew Cooper
On 10/06/2015 19:55, Konrad Rzeszutek Wilk wrote: >> All other processor registers and flag bits are undefined. The OS is in >> charge of setting up it's own stack, GDT and IDT. >> >> Note that the boot protocol resembles the multiboot1 specification, >> this is done so OSes with multiboot1 entry

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-10 Thread Konrad Rzeszutek Wilk
On Wed, Jun 10, 2015 at 02:34:00PM +0200, Roger Pau Monné wrote: > Hello, > > The discussion in [1] lead to an agreement of the missing pieces in PVH > (or HVM without a device-model) in order to progress with it's > implementation. > > One of the missing pieces is a new boot ABI, that replaces

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-10 Thread Andrew Cooper
On 10/06/15 16:38, Roger Pau Monné wrote: > El 10/06/15 a les 15.18, Andrew Cooper ha escrit: >>> * cr0: bit 31 (PG) must be cleared. Bit 0 (PE) must be set. Other bits >>>are all undefined. >> "unspecified" is perhaps better phrasing. Most will be 0, but ET will >> be set as it is a read-on

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-10 Thread Jan Beulich
>>> On 10.06.15 at 16:53, wrote: > El 10/06/15 a les 15.15, Jan Beulich ha escrit: > On 10.06.15 at 14:34, wrote: >> For my taste, it's getting too >> close to something that could be a legitimate 32-bit kernel pointer >> (agreed, all values could be valid pointers in 32-bit OSes, but with >>

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-10 Thread Roger Pau Monné
Sorry, forgot to reply to one of your chunks. El 10/06/15 a les 15.15, Jan Beulich ha escrit: >> * cr0: bit 31 (PG) must be cleared. Bit 0 (PE) must be set. Other bits >>are all undefined. > > I see that grub1 documentation says so, but I doubt this is realistic > (even less so for cr4 bit

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-10 Thread Roger Pau Monné
El 10/06/15 a les 15.18, Andrew Cooper ha escrit: >> * cr0: bit 31 (PG) must be cleared. Bit 0 (PE) must be set. Other bits >>are all undefined. > > "unspecified" is perhaps better phrasing. Most will be 0, but ET will > be set as it is a read-only bit in all processors Xen will function on

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-10 Thread Roger Pau Monné
El 10/06/15 a les 15.15, Jan Beulich ha escrit: On 10.06.15 at 14:34, wrote: >> * XEN_ELFNOTE_PADDR_OFFSET: the offset of the ELF paddr field from the >>actual required physical address. > > Why would that be needed? I.e. why would there ever be an offset? For example a FreeBSD kernel

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-10 Thread Andrew Cooper
On 10/06/15 13:34, Roger Pau Monné wrote: > Hello, > > The discussion in [1] lead to an agreement of the missing pieces in PVH > (or HVM without a device-model) in order to progress with it's > implementation. > > One of the missing pieces is a new boot ABI, that replaces the PV boot > ABI. The

Re: [Xen-devel] [Draft A] Boot ABI for HVM guests without a device-model

2015-06-10 Thread Jan Beulich
>>> On 10.06.15 at 14:34, wrote: > * XEN_ELFNOTE_PADDR_OFFSET: the offset of the ELF paddr field from the >actual required physical address. Why would that be needed? I.e. why would there ever be an offset? > * XEN_ELFNOTE_PADDR_ENTRY: the 32bit entry point into the kernel. > * XEN_ELFNOT