introduce unaligned.h
authorJan Beulich <jbeulich@suse.com>
Mon, 18 Jan 2021 11:09:13 +0000 (12:09 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Jan 2021 11:09:13 +0000 (12:09 +0100)
commit7c9f81687ad611515474b1c17afc2f79f19faef5
treeabed068744cac41bad76529ef40804c6ca9376fd
parentdb9c4ad1b1abaef3c38027b9b2700d9250d13125
introduce unaligned.h

Rather than open-coding commonly used constructs in yet more places when
pulling in zstd decompression support (and its xxhash prereq), pull out
the custom bits into a commonly used header (for the hypervisor build;
the tool stack and stubdom builds of libxenguest will still remain in
need of similarly taking care of). For now this is limited to x86, where
custom logic isn't needed (considering this is going to be used in init
code only, even using alternatives patching to use MOVBE doesn't seem
worthwhile).

For Arm64 with CONFIG_ACPI=y (due to efi-dom0.c's re-use of xz/crc32.c)
drop the not really necessary inclusion of xz's private.h.

No change in generated code.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/lz4/defs.h
xen/common/lzo.c
xen/common/unlzo.c
xen/common/xz/crc32.c
xen/common/xz/private.h
xen/include/asm-x86/unaligned.h [new file with mode: 0644]
xen/include/xen/unaligned.h [new file with mode: 0644]