diff options
author | Alexander Duyck <[email protected]> | 2020-07-13 13:35:39 -0700 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2020-07-29 13:24:30 -0400 |
commit | ca72cc348355fbc969f5fa00fa94d584920d403b (patch) | |
tree | 2469061f064294545ce00a75a9d6c8090c2e10ee /lib/mpi/mpi-add.c | |
parent | 295c1b9852d000580786375304a9800bd9634d15 (diff) |
virtio-balloon: Document byte ordering of poison_val
The poison_val field in the virtio_balloon_config is treated as a
little-endian field by the host. Since we are currently only having to deal
with a single byte poison value this isn't a problem, however if the value
should ever expand it would cause byte ordering issues. Document that in
the code so that we know that if the value should ever expand we need to
byte swap the value on big-endian architectures.
Signed-off-by: Alexander Duyck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions