From: Lin Liu <lin.liu@citrix.com>
To: <xen-devel@lists.xenproject.org>
Cc: "Lin Liu" <lin.liu@citrix.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Daniel De Graaf" <dgdegra@tycho.nsa.gov>,
"Daniel P. Smith" <dpsmith@apertussolutions.com>,
"George Dunlap" <george.dunlap@citrix.com>,
"Ian Jackson" <iwj@xenproject.org>,
"Jan Beulich" <jbeulich@suse.com>,
"Julien Grall" <julien@xen.org>,
"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Ross Lagerwall" <ross.lagerwall@citrix.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
"Wei Liu" <wl@xen.org>
Subject: [PATCH v2 0/7] Implement byteswap and update references
Date: Fri, 22 Oct 2021 10:47:21 +0000 [thread overview]
Message-ID: <cover.1634897942.git.lin.liu@citrix.com> (raw)
The swab() is massively over complicated
Simplify it with compiler builtins and fallback to plain C function
if undefined.
Update components to switch to this new swap bytes.
Lin Liu (7):
xen: implement byteswap.h
crypto/vmac: Simplify code with byteswap.h
arm64/find_next_bit: Remove ext2_swab()
arm: Switch to byteswap.h
xen/xsm: Switch to byteswap.h
xen: Switch to byteswap.h
byteorder: Remove byteorder
xen/arch/arm/alternative.c | 2 +-
xen/arch/arm/arm64/lib/find_next_bit.c | 40 +----
xen/arch/arm/arm64/livepatch.c | 2 +-
xen/arch/arm/kernel.c | 2 +-
xen/arch/arm/vgic/vgic-mmio.c | 2 +-
xen/common/bitmap.c | 2 +-
xen/common/gdbstub.c | 2 +-
xen/common/libelf/libelf-private.h | 8 +-
xen/common/lz4/defs.h | 2 +-
xen/common/lzo.c | 2 +-
xen/common/unlzo.c | 2 +-
xen/common/xz/private.h | 4 +-
xen/crypto/vmac.c | 76 +--------
xen/drivers/char/ehci-dbgp.c | 2 +-
xen/include/asm-arm/arm32/io.h | 2 +-
xen/include/asm-arm/arm64/io.h | 2 +-
xen/include/asm-arm/byteorder.h | 16 --
xen/include/asm-x86/byteorder.h | 36 -----
xen/include/asm-x86/msi.h | 2 +-
xen/include/xen/bitmap.h | 2 +-
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 | 183 ----------------------
xen/include/xen/byteswap.h | 93 +++++++++++
xen/include/xen/compiler.h | 12 ++
xen/include/xen/device_tree.h | 2 +-
xen/include/xen/libfdt/libfdt_env.h | 2 +-
xen/include/xen/unaligned.h | 14 +-
xen/lib/divmod.c | 2 +-
xen/xsm/flask/ss/avtab.c | 2 +-
xen/xsm/flask/ss/conditional.c | 2 +-
xen/xsm/flask/ss/ebitmap.c | 2 +-
xen/xsm/flask/ss/policydb.c | 2 +-
34 files changed, 150 insertions(+), 646 deletions(-)
delete mode 100644 xen/include/asm-arm/byteorder.h
delete mode 100644 xen/include/asm-x86/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
--
2.27.0
next reply other threads:[~2021-10-22 10:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-22 10:47 Lin Liu [this message]
2021-10-22 10:47 ` [PATCH v2 1/7] xen: implement byteswap.h Lin Liu
2021-10-22 14:00 ` Andrew Cooper
2021-11-02 14:23 ` Jan Beulich
2021-10-22 10:47 ` [PATCH v2 2/7] crypto/vmac: Simplify code with byteswap.h Lin Liu
2021-11-02 15:00 ` Jan Beulich
2021-10-22 10:47 ` [PATCH v2 3/7] arm64/find_next_bit: Remove ext2_swab() Lin Liu
2021-10-22 10:47 ` [PATCH v2 4/7] arm: Switch to byteswap.h Lin Liu
2021-10-22 10:47 ` [PATCH v2 5/7] xen/xsm: " Lin Liu
2021-10-22 15:46 ` Daniel P. Smith
2021-11-02 15:18 ` Jan Beulich
2021-10-22 10:47 ` [PATCH v2 6/7] xen: " Lin Liu
2021-10-22 11:25 ` Andrew Cooper
2021-11-02 15:23 ` Jan Beulich
2021-10-22 10:47 ` [PATCH v2 7/7] byteorder: Remove byteorder Lin Liu
2021-10-22 11:50 ` [PATCH v2 0/7] Implement byteswap and update references Andrew Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1634897942.git.lin.liu@citrix.com \
--to=lin.liu@citrix.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=dpsmith@apertussolutions.com \
--cc=george.dunlap@citrix.com \
--cc=iwj@xenproject.org \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=konrad.wilk@oracle.com \
--cc=roger.pau@citrix.com \
--cc=ross.lagerwall@citrix.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.