crosvm/aarch64
Daniel Verkamp 31ff290605 aarch64, riscv64: fix max kernel command line length
The maximum command line length accepted by the guest kernel is a fixed
per-architecture constant; it is unrelated to the (host) page size,
which was used as the limit on aarch64 and riscv64 before this change.

Making crosvm limit the command line to the correct maximum length
allows for a more useful error message to be printed if the user tries
to use an overly-long command line; without this change, it would not be
apparent that the guest kernel was truncating the command line, leading
to unexpected behavior at runtime.

BUG=b:345478075
TEST=Boot Crostini and ARCVM on arm64

Change-Id: I207bda318b60d207ccb1ef5df1e59f30be238126
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5606562
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-06-10 17:43:02 +00:00
..
src aarch64, riscv64: fix max kernel command line length 2024-06-10 17:43:02 +00:00
.build_test_skip
Cargo.toml