summary refs log tree commit diff
path: root/src/linux.rs
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2018-08-09 14:18:07 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-13 14:25:11 -0700
commit5f871eb8f4b152a5f97af0482edefe3a1708f033 (patch)
treefcf36859f822cc7c846ac3a4fd7945335d976d1b /src/linux.rs
parent660a653d0f5a381448a19fed28672de1065fb598 (diff)
downloadcrosvm-5f871eb8f4b152a5f97af0482edefe3a1708f033.tar
crosvm-5f871eb8f4b152a5f97af0482edefe3a1708f033.tar.gz
crosvm-5f871eb8f4b152a5f97af0482edefe3a1708f033.tar.bz2
crosvm-5f871eb8f4b152a5f97af0482edefe3a1708f033.tar.lz
crosvm-5f871eb8f4b152a5f97af0482edefe3a1708f033.tar.xz
crosvm-5f871eb8f4b152a5f97af0482edefe3a1708f033.tar.zst
crosvm-5f871eb8f4b152a5f97af0482edefe3a1708f033.zip
devices: block: define features as shift counts
Convert the definition of VIRTIO_BLK_F_FLUSH to a shift count instead of
a bitmask.  This matches the way the features are defined in the virtio
spec and makes block consistent with other device models, such as p9.

BUG=chromium:872973
TEST=cargo test -p devices

Change-Id: Iece974c6f4d826b7bb76622973f08469a7936234
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1170303
Reviewed-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'src/linux.rs')
0 files changed, 0 insertions, 0 deletions