crosvm/crosvm_plugin
Dmitry Torokhov ab4994a646 plugin: only convert to negative errors on crosvm.h boundary
We have decided that API defined in crosvm.h should signal errors by
returning negative values derived from common errno error codes. To
avoid confusion within the rest of crosvm code that is using positive
erro codes, let's perform the conversion to negative on that crosvm API
boundary, so it is contained.

TEST=cargo test --features plugin
BUG=None

Change-Id: Icb1e719c8e99c95fdc32dce13a30d6ff8d3d9dc7
Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/947563
Reviewed-by: Zach Reizner <zachr@chromium.org>
2018-03-07 16:55:32 -08:00
..
src plugin: only convert to negative errors on crosvm.h boundary 2018-03-07 16:55:32 -08:00
Cargo.toml allow plugin to query KVM for supported/emulated CPUIDs 2018-02-28 21:30:20 -08:00
crosvm.h allow plugin to query KVM for supported/emulated CPUIDs 2018-02-28 21:30:20 -08:00