[Pkg-xen-devel] [PATCH 00/16] Current cross-build patches, some misc

Elliott Mitchell ehem+debian at m5p.com
Sun Jan 3 03:19:15 GMT 2021


>From the description of messages, I'm left suspecting it is the list
server corrupting patches, not the MTAs.  Perhaps there is extra magic in
`git send-email` which tickles list servers in magic ways, but again that
needs `git send-email` in a place which mismatches my setup (fine,
I've got an odd setup, that doesn't make it wrong).

Bottom line, I'm directly Cc'ing Hans on this series, let us see whether
that gets things through correctly...


My primary goal is having cross-builds working.  I've ended up picking up
some extra pieces related to this along the way.  I'm a bit worried this
is turning into a misnamed trilogy.  The earlier patches are more
crucial/valuable, the later patches are pretty well optional.

Without the first four, cross-builds simply don't work for me.  One quirk
of my builds is I've been building with ACPI support, so this may well be
a case of making things work for me while breaking for others.

I grimace at `xen-utils-wrapper` having a built-in copy of `xen-version`,
but the issue is how often `xen-utils-wrapper` is used.
`xen-utils-wrapper` is used *really* often.  Every invocation of `xl`
uses `xen-utils-wrapper`, which means overhead in `xen-utils-wrapper` is
massively magnified.  I haven't done proper benchmarking, but my feeling
is this is a Big win.


My feeling is the current packaging is suboptimal.  "PyGRUB" really
should be a *separate* package from xen-utils-X.YY.  The reason is better
alternatives to PyGRUB exist for most cases and PyGRUB isn't at all
paired to the version of Xen.  Notably I've confirmed a 4.11 build of
PyGRUB works fine with a 4.14 hypervisor build.

Presently PvGRUB/grub-xen-host is the only packaged alternative to PyGRUB
(and only for x86).  Multiple viable and sometimes better alternatives
exist though.  The two I'm aware of are Tianocore and U-Boot.  I've filed
wishlist bug #978595 against src:edk2 asking for the Xen-compatible
builds of Tianocore to be built.  With this list of options, the
dependency should be on xen-domu-bootloader (or a better name) and this
should be Provided by grub-xen-host.  A Tianocore build could then also
offer this virtual package name, and a broken-off PyGRUB package would
follow.

With the number of recommendations of Open vSwitch over the traditional
bridge, having ovn-host as an alternative Recommends to bridge-utils
seems a no-brainer.


Then there is the script work I suggest.  These aren't actually required
for functioning cross-builds, but they seemed like good ideas.

A target has been painted on xen-init-list.  Thing is the real solution
means some major work in `xl list`.  This is an in-progress submission to
Xen, at which point /etc/init.d/xendomains will be able to simply use
`xl list` directly.


Elliott Mitchell (16):
  d/shuffle-binaries: Fix binary shuffling script for cross-building
  debian/rules: Setup use of noOCAML profile
  Rework "debian/rules: Do not try to move EFI binaries on armhf"
  debian/rules: Correct shim install step for current Xen
  debian/scripts: Optimize runtime scripts
  debian/control: Update utils Recommends
  debian/xen-utils-common.examples: Remove xm examples
  d/shuffle-boot-files: Merge arguments together
  d/shuffle-boot-files: Rework version string handling
  d/xendomains.init: Use internal `xen` compat wrapper for `xl`
  debian/xendomains.init: Pipe xen-init-list instead of tmp file
  d/shuffle-boot-files: Support filenames besides .gz
  d/shuffle-boot-files: Simplify loop structure
  d/shuffle-binaries: Switch loop from for to while
  d/shuffle-binaries: Switch to POSIX shell, instead of Bash
  d/shuffle-boot-files: Switch to POSIX shell, instead of Bash

 debian/control                          |  7 ++--
 debian/rules                            | 30 +++++++++++------
 debian/scripts/xen-utils-wrapper        | 43 ++++++++++++++++++++++---
 debian/scripts/xen-version              |  6 ++--
 debian/shuffle-binaries                 | 36 ++++++++++-----------
 debian/shuffle-boot-files               | 19 +++++------
 debian/xen-utils-common.examples        |  1 -
 debian/xen-utils-common.xendomains.init | 21 +++++++-----
 8 files changed, 108 insertions(+), 55 deletions(-)

-- 


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         ehem+sigmsg at m5p.com  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445






More information about the Pkg-xen-devel mailing list