mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
The generic type used in read_config() and write_config() was only used to check the offset against the size of that type; the backend device is capable of checking this itself, so we can drop the type from the function signatures. Additionally, fix the config functions to use the offset rather than reading/writing the whole config and copying out the relevant parts. This makes the config function implementation identical for all vhost/user/vmm/ code. BUG=None TEST=mount vhost-user-fs filesystem in guest Change-Id: I22493f4e87bff68ef9d68f1d1a0feeb29ec059da Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3867543 Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Auto-Submit: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |