Re: [Xen-devel] [RFC] OVMF on PVH

2018-08-09 Thread Wei Liu
On Wed, Aug 08, 2018 at 04:02:09PM +0100, Anthony PERARD wrote: > > But long term we might want to support VarStore (that is used to stored > > config, right?). How are we going to do that in the future if we > > repurpose it now? > > So, normally on QEMU/KVM, in order to use this VarStore,

Re: [Xen-devel] [RFC] OVMF on PVH

2018-08-08 Thread Anthony PERARD
On Thu, Aug 02, 2018 at 12:24:35PM +0100, Anthony PERARD wrote: > That replace a section of the OVMF binary called VarStore by that ELF > header. It's empty and libxl doesn't know how to use it. (QEMU/KVM would > have a flash device loading the store, so it can be written to.) > ## Loading

Re: [Xen-devel] [RFC] OVMF on PVH

2018-08-08 Thread Anthony PERARD
On Thu, Aug 02, 2018 at 06:21:31PM +0200, Roger Pau Monné wrote: > On Thu, Aug 02, 2018 at 12:24:35PM +0100, Anthony PERARD wrote: > > ## New binary, separated from QEMU/KVM one. > > > > Right now, the rules to build the firmware are located in > > `OvmfPkg/OvmfPkgX64.dsc`, a platform. I've

Re: [Xen-devel] [RFC] OVMF on PVH

2018-08-08 Thread Roger Pau Monné
On Wed, Aug 08, 2018 at 04:02:09PM +0100, Anthony PERARD wrote: > On Thu, Aug 02, 2018 at 04:44:56PM +0100, Wei Liu wrote: > > On Thu, Aug 02, 2018 at 12:24:35PM +0100, Anthony PERARD wrote: > > > ## Loading binary at 0x1 (1MB, like hvmloader on HVM) > > > > > > Right now, the OVMF blob is

Re: [Xen-devel] [RFC] OVMF on PVH

2018-08-08 Thread Anthony PERARD
On Thu, Aug 02, 2018 at 04:44:56PM +0100, Wei Liu wrote: > On Thu, Aug 02, 2018 at 12:24:35PM +0100, Anthony PERARD wrote: > > ## New binary, separated from QEMU/KVM one. > > > > Right now, the rules to build the firmware are located in > > `OvmfPkg/OvmfPkgX64.dsc`, a platform. I've created a new

Re: [Xen-devel] [RFC] OVMF on PVH

2018-08-08 Thread Anthony PERARD
On Thu, Aug 02, 2018 at 06:23:54AM -0600, Jan Beulich wrote: > >>> On 02.08.18 at 13:24, wrote: > > ## Loading binary at 0x1 (1MB, like hvmloader on HVM) > > > > Right now, the OVMF blob is loaded (by hvmloader) just below 4GB, with > > hvmloader moving some RAM around to allow that. But

Re: [Xen-devel] [RFC] OVMF on PVH

2018-08-02 Thread Roger Pau Monné
On Thu, Aug 02, 2018 at 12:24:35PM +0100, Anthony PERARD wrote: > Hi, > > I've been working on booting OVMF in a PVH guest. There are few changes > that I'd like your comments on. Those are changes that I've already made > in my private branch, there are either required or will make things >

Re: [Xen-devel] [RFC] OVMF on PVH

2018-08-02 Thread Wei Liu
On Thu, Aug 02, 2018 at 12:24:35PM +0100, Anthony PERARD wrote: > Hi, > > I've been working on booting OVMF in a PVH guest. There are few changes > that I'd like your comments on. Those are changes that I've already made > in my private branch, there are either required or will make things >

Re: [Xen-devel] [RFC] OVMF on PVH

2018-08-02 Thread Jan Beulich
>>> On 02.08.18 at 13:24, wrote: > ## New binary, separated from QEMU/KVM one. > > Right now, the rules to build the firmware are located in > `OvmfPkg/OvmfPkgX64.dsc`, a platform. I've created a new platform, without > KVM support, and would like to retire the Xen support from the current >

[Xen-devel] [RFC] OVMF on PVH

2018-08-02 Thread Anthony PERARD
Hi, I've been working on booting OVMF in a PVH guest. There are few changes that I'd like your comments on. Those are changes that I've already made in my private branch, there are either required or will make things easier. ## Goal Have a single blob that can be use for both HVM and PVH