Skip to content

xen: Centralise byteswap infrastructure

Andrew Cooper xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest15 patches 8 repliesIn review
  2. v516 patches 13 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15xen: Implement common byte{order,swap}.hxen/include/xen/byteorder.h xen/include/xen/byteorder/big_endian.h xen/include/xen/byteorder/little_endian.h +2 more+67 -140 replies
2/15drivers/smmu-v3: Fix impending MISRA R20.6 violationxen/drivers/passthrough/arm/smmu-v3.c+5 -33 replies
3/15xen/lib: Switch to xen/byteorder.hxen/lib/divmod.c xen/lib/find-next-bit.c+9 -340 replies
4/15xen/device-tree: Remove use of *_to_cpup() helpersxen/common/device-tree/device-tree.c+22 -221 reply
5/15xen/decompressors: Remove use of *_to_cpup() helperstools/libs/guest/xg_dom_decompress_lz4.c tools/libs/guest/xg_dom_decompress_unsafe_lzo1x.c tools/libs/guest/xg_dom_decompress_unsafe_xz.c +3 more+43 -241 reply
6/15xen/arch: Switch to new byteorder infrastructurexen/arch/arm/include/asm/byteorder.h xen/arch/ppc/include/asm/byteorder.h xen/arch/riscv/include/asm/byteorder.h +2 more+7 -400 replies
7/15xen/decompressors: Use new byteorder infrastructuretools/libs/guest/xg_dom_decompress_unsafe_zstd.c xen/common/lz4/defs.h xen/common/lzo.c +2 more+1 -60 replies
8/15xen: Remove old byteorder infrastructurexen/include/xen/byteorder/big_endian.h xen/include/xen/byteorder/generic.h xen/include/xen/byteorder/little_endian.h +1 more+0 -4370 replies
9/15crypto/vmac: Switch to xen/byteswap.hxen/crypto/vmac.c+3 -730 replies
10/15xsm/flask: Switch {asm -> xen}/byteorder.hxen/xsm/flask/ss/avtab.c xen/xsm/flask/ss/conditional.c xen/xsm/flask/ss/ebitmap.c +1 more+13 -161 reply
11/15xen/common: Switch {asm -> xen}/byteorder.hxen/common/bitmap.c xen/common/libelf/libelf-private.h xen/drivers/char/ehci-dbgp.c +4 more+12 -110 replies
12/15arm: Remove asm/byteorder.hxen/arch/arm/alternative.c xen/arch/arm/arm64/livepatch.c xen/arch/arm/include/asm/arm32/io.h +4 more+11 -221 reply
13/15ppc: Drop asm/byteorder.hxen/arch/ppc/include/asm/byteorder.h xen/arch/ppc/include/asm/page.h xen/arch/ppc/mm-radix.c+2 -101 reply
14/15riscv: Remove asm/byteorder.hxen/arch/riscv/include/asm/byteorder.h xen/arch/riscv/include/asm/io.h+2 -150 replies
15/15x86: Drop asm/byteorder.hxen/arch/x86/include/asm/byteorder.h xen/arch/x86/include/asm/msi.h+0 -70 replies

Reviews trailers per patch

All 15 patches have a Reviewed-by or Acked-by.

PatchJan BeulichAndrew CooperOleksii KurochkoDaniel P. SmithNicola VetriniStefano StabelliniShawn AnastasioBertrand Marquis
1/15R-b
2/15R-b R-b
3/15R-b
4/15A-b
5/15R-b
6/15R-b
7/15A-b
8/15R-b
9/15A-b R-b
10/15A-b
11/15A-b
12/15A-b
13/15R-b
14/15R-b
15/15A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v6 thread

Cover letter [PATCH v6 00/15] xen: Centralise byteswap infrastructure

The diffstat speaks for itself.

Compared to v6, one patch (TMEM) committed, one new patch (drivers/smmu-v3) to fix a MISRA regression, and the __{BIG,LITTLE}_ENDIAN_BITFIELD logic is retained. See individual patches for details.

https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/1771377732

Andrew Cooper (7):
drivers/smmu-v3: Fix impending MISRA R20.6 violation xsm/flask: Switch {asm -> xen}/byteorder.h xen/common: Switch {asm -> xen}/byteorder.h
arm: Remove asm/byteorder.h
ppc: Drop asm/byteorder.h
riscv: Remove asm/byteorder.h
x86: Drop asm/byteorder.h

Lin Liu (8):
xen: Implement common byte{order,swap}.h xen/lib: Switch to xen/byteorder.h xen/device-tree: Remove use of *_to_cpup() helpers xen/decompressors: Remove use of *_to_cpup() helpers xen/arch: Switch to new byteorder infrastructure xen/decompressors: Use new byteorder infrastructure
xen: Remove old byteorder infrastructure crypto/vmac: Switch to xen/byteswap.h

 tools/libs/guest/xg_dom_decompress_lz4.c      |  10 +-
 .../guest/xg_dom_decompress_unsafe_lzo1x.c    |  14 +-
 .../libs/guest/xg_dom_decompress_unsafe_xz.c  |  13 +-
 .../guest/xg_dom_decompress_unsafe_zstd.c     |   3 +-
 xen/arch/arm/alternative.c                    |   6 +-
 xen/arch/arm/arm64/livepatch.c                |   2 +-
 xen/arch/arm/include/asm/arm32/io.h           |   3 +-
 xen/arch/arm/include/asm/arm64/io.h           |   3 +-
 xen/arch/arm/include/asm/byteorder.h          |  16 --
 xen/arch/arm/kernel.c                         |   2 +-
 xen/arch/arm/vgic/vgic-mmio.c                 |   3 +-
 xen/arch/ppc/include/asm/byteorder.h          |  12 --
 xen/arch/ppc/include/asm/page.h               |   4 +-
 xen/arch/ppc/mm-radix.c                       |   2 +-
 xen/arch/riscv/include/asm/byteorder.h        |  16 --
 xen/arch/riscv/include/asm/io.h               |   3 +-
 xen/arch/x86/include/asm/byteorder.h          |  29 ---
 xen/arch/x86/include/asm/msi.h                |   1 -
 xen/common/bitmap.c                           |   5 +-
 xen/common/device-tree/device-tree.c          |  44 ++---
 xen/common/libelf/libelf-private.h            |   9 +-
 xen/common/lz4/defs.h                         |   7 +-
 xen/common/lzo.c                              |   1 -
 xen/common/unlzo.c                            |  13 +-
 xen/common/xz/private.h                       |  13 +-
 xen/crypto/vmac.c                             |  76 +-------
 xen/drivers/char/ehci-dbgp.c                  |   4 +-
 xen/drivers/passthrough/arm/smmu-v3.c         |   8 +-
 xen/include/xen/bitmap.h                      |   2 +-
 xen/include/xen/byteorder.h                   |  44 +++++
 xen/include/xen/byteorder/big_endian.h        | 102 ----------
 xen/include/xen/byteorder/generic.h           |  68 -------
 xen/include/xen/byteorder/little_endian.h     | 102 ----------
 xen/include/xen/byteorder/swab.h              | 179 ------------------
 xen/include/xen/byteswap.h                    |  15 ++
 xen/include/xen/config.h                      |   8 +
 xen/include/xen/device_tree.h                 |   3 +-
 xen/include/xen/libfdt/libfdt_env.h           |   3 +-
 xen/include/xen/unaligned.h                   |   3 +-
 xen/lib/divmod.c                              |   5 +-
 xen/lib/find-next-bit.c                       |  39 +---
 xen/xsm/flask/ss/avtab.c                      |   4 +-
 xen/xsm/flask/ss/conditional.c                |   9 +-
 xen/xsm/flask/ss/ebitmap.c                    |   9 +-
 xen/xsm/flask/ss/policydb.c                   |   7 +-
 45 files changed, 193 insertions(+), 731 deletions(-)
 delete mode 100644 xen/arch/arm/include/asm/byteorder.h
 delete mode 100644 xen/arch/ppc/include/asm/byteorder.h
 delete mode 100644 xen/arch/riscv/include/asm/byteorder.h
 delete mode 100644 xen/arch/x86/include/asm/byteorder.h
 create mode 100644 xen/include/xen/byteorder.h
 delete mode 100644 xen/include/xen/byteorder/big_endian.h
 delete mode 100644 xen/include/xen/byteorder/generic.h
 delete mode 100644 xen/include/xen/byteorder/little_endian.h
 delete mode 100644 xen/include/xen/byteorder/swab.h
 create mode 100644 xen/include/xen/byteswap.h

base-commit: 7f8c2dd829358406dc9e50d5e386e4d2b20b4303

Signature · 1 line
2.39.5