[PATCH kvmtool] riscv, arm64, powerpc: Align the FDT staging buffer to 8 bytes
Will Deacon
will at kernel.org
Thu Nov 26 09:14:36 PST 2026
On Wed, 28 Oct 2026 20:05:31 +0100, Mika Tammi wrote:
> setup_fdt() creates the guest's device tree in staging_fdt, a u8 array
> on the stack, and then copies it into guest memory with fdt_open_into().
>
> The Devicetree Specification requires the blob to be at an 8-byte
> aligned address [1], and libfdt has checked this since dtc v1.6.1:
> fdt_ro_probe_() fails with -FDT_ERR_ALIGNMENT for any other address.
> The sequential-write functions don't call it, so the tree is created
> without errors and fdt_open_into() is the first call to fail.
>
> [...]
Applied to kvmtool (master), thanks!
[1/1] riscv, arm64, powerpc: Align the FDT staging buffer to 8 bytes
https://git.kernel.org/will/kvmtool/c/6ad12e755313
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the kvm-riscv
mailing list