Add support for Xen ARM guest on FreeBSD
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · On Sun, 23 Nov 2014 22:35:36 +0000 Julien Grall <[email protected]> wrote:
Hello all,
At the beginning of the year, I have sent a first RFC to add support for FreeBSD on Xen ARM [1].
...
Quoted 10 lines
Major changes in this new version:
* Add Device Tree support via Linux Boot ABI
* Add zImage support
* Netfront support
* Blkfront fixes
* DOM0 support (separate branch see below)The former item is very hackish. I was wondering if there is another way to do it? Or maybe we should support FreeBSD Bootloader in ARM guest?
I think using the loader is the correct way to handle booting in Xen. It allows us to relocate the dtb as required. It look like a zImage then use the Xen console to interact with the user.
Quoted 13 lines
The patch series is divided in X parts:
* #1 - #14: Clean up and bug fixes for Xen. They can be
applied without the rest of the series
* #15 - #19: Update Xen interface to 4.4 and fix
compilation. It's required for ARM.
* #20 - #26: Update Xen code to support ARM
* #27 - #33: Rework the event channel code for supporting
ARM. I will work with Royger to come with a common interface with x86
* #34 - #36: Add support for ARM in Xen code
* #37 - #46: ARM bug fixes and new features. Some of thoses
patches (#37 - #40) could be applied without the rest of the series
* #47 - #48: Add Xen ARM platform
I have committed patches 30 and 40 as they look good. I'm not familiar with the code to review 37 or 38, however from my quick look at 38 I appears _bus_dmamap_load_buffer does take in to account buflen and dmat->maxsegsz when setting sgsize just not dmat->alignment.
...
Quoted 4 lines
TODO:
* Add SMP/PSCI support in FreeBSD. Could be useful other
platform too
Adding PSCI support is on my TODO lost for arm64, however I don't expect to get on ti in until early next year.
Quoted 2 lines
* Only FreeBSD to load anywhere. Currently there is a 2M
alignment which require a patch in Xen.
If you use the loader this will be fixed as the loader can load the kernel at the correct alignment.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Andrew,
Quoted 9 lines · Andrew Turner
Quoted 7 lines · On Sun, 23 Nov 2014 22:35:36 +0000 Julien Grall <[email protected]> wrote:
Major changes in this new version:
* Add Device Tree support via Linux Boot ABI
* Add zImage support
* Netfront support
* Blkfront fixes
* DOM0 support (separate branch see below)
Quoted 7 lines
Quoted 3 lines
The former item is very hackish. I was wondering if there is another way to do it? Or maybe we should support FreeBSD Bootloader in ARM guest?
I think using the loader is the correct way to handle booting in Xen. It allows us to relocate the dtb as required. It look like a zImage then use the Xen console to interact with the user.
Thanks, I will give a look to this solution.
Quoted 14 lines
Quoted 13 lines
The patch series is divided in X parts:
* #1 - #14: Clean up and bug fixes for Xen. They can be
applied without the rest of the series
* #15 - #19: Update Xen interface to 4.4 and fix
compilation. It's required for ARM.
* #20 - #26: Update Xen code to support ARM
* #27 - #33: Rework the event channel code for supporting
ARM. I will work with Royger to come with a common interface with x86
* #34 - #36: Add support for ARM in Xen code
* #37 - #46: ARM bug fixes and new features. Some of thoses
patches (#37 - #40) could be applied without the rest of the series
* #47 - #48: Add Xen ARM platform
Quoted 1 line
I have committed patches 30 and 40 as they look good.
Thanks!
Quoted 4 lines
I'm not familiar
with the code to review 37 or 38, however from my quick look at 38 I appears_bus_dmamap_load_bufferdoes take in to account buflen anddmat->maxsegszwhen setting sgsize just notdmat->alignment.
Right, I guess I could just keep the roundup2.
Quoted 9 lines
...
Quoted 4 lines
TODO:
* Add SMP/PSCI support in FreeBSD. Could be useful other
platform tooAdding PSCI support is on my TODO lost for arm64, however I don't expect to get on ti in until early next year.
BTW, what is the actual status of the ARM64 port? I plan to give a look for adding Xen support too.
Regards,
Signature · 1 line
Julien Grall
Hey Julien,
Have you rebased your patch train after Andrew’s commits?
Warner
Quoted 56 lines · Julien Grall
Hello Andrew,
Quoted 9 lines · Andrew Turner
Quoted 7 lines · On Sun, 23 Nov 2014 22:35:36 +0000 Julien Grall <[email protected]> wrote:
Major changes in this new version:
* Add Device Tree support via Linux Boot ABI
* Add zImage support
* Netfront support
* Blkfront fixes
* DOM0 support (separate branch see below)Quoted 7 lines
Quoted 3 lines
The former item is very hackish. I was wondering if there is another way to do it? Or maybe we should support FreeBSD Bootloader in ARM guest?
I think using the loader is the correct way to handle booting in Xen. It allows us to relocate the dtb as required. It look like a zImage then use the Xen console to interact with the user.
Thanks, I will give a look to this solution.
Quoted 14 lines
Quoted 13 lines
The patch series is divided in X parts:
* #1 - #14: Clean up and bug fixes for Xen. They can be
applied without the rest of the series
* #15 - #19: Update Xen interface to 4.4 and fix
compilation. It's required for ARM.
* #20 - #26: Update Xen code to support ARM
* #27 - #33: Rework the event channel code for supporting
ARM. I will work with Royger to come with a common interface with x86
* #34 - #36: Add support for ARM in Xen code
* #37 - #46: ARM bug fixes and new features. Some of thoses
patches (#37 - #40) could be applied without the rest of the series
* #47 - #48: Add Xen ARM platformQuoted 1 line
I have committed patches 30 and 40 as they look good.
Thanks!
Quoted 4 lines
I'm not familiar
with the code to review 37 or 38, however from my quick look at 38 I appears_bus_dmamap_load_bufferdoes take in to account buflen anddmat->maxsegszwhen setting sgsize just notdmat->alignment.Right, I guess I could just keep the roundup2.
Quoted 7 lines
...
Quoted 4 lines
TODO:
* Add SMP/PSCI support in FreeBSD. Could be useful other
platform too
Quoted 5 lines
Quoted 2 lines
Adding PSCI support is on my TODO lost for arm64, however I don't expect to get on ti in until early next year.
BTW, what is the actual status of the ARM64 port? I plan to give a look for adding Xen support too.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 1 line · Warner Losh
Hey Julien,
Hi Warner,
Quoted 1 line
Have you rebased your patch train after Andrew’s commits?
I just pushed a new branch rebased on the latest master:
git://xenbits.xen.org/people/julieng/freebsd.git branch xen-arm-v2.2
I can re-export the patch into files if necessary.
Regards,
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel