summary refs log tree commit diff
path: root/devices
diff options
context:
space:
mode:
authorZach Reizner <zachr@google.com>2018-01-09 15:19:23 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-01-18 17:40:15 -0800
commitd48d7f10b56e74296eb065de995a23f1c6173547 (patch)
tree92a3c9e05597b2da26e75156584078665018a775 /devices
parent0335dad57e6ccf06f132a890df36f3d3ef7f3e14 (diff)
downloadcrosvm-d48d7f10b56e74296eb065de995a23f1c6173547.tar
crosvm-d48d7f10b56e74296eb065de995a23f1c6173547.tar.gz
crosvm-d48d7f10b56e74296eb065de995a23f1c6173547.tar.bz2
crosvm-d48d7f10b56e74296eb065de995a23f1c6173547.tar.lz
crosvm-d48d7f10b56e74296eb065de995a23f1c6173547.tar.xz
crosvm-d48d7f10b56e74296eb065de995a23f1c6173547.tar.zst
crosvm-d48d7f10b56e74296eb065de995a23f1c6173547.zip
kvm: add dirty_log_bitmap_size helper
For the callers of get_dirty_log, they must pass in bitmap large enough
to hold the log. Instead of duplicating that calculation inside the
method and the caller, this change provides a public helper usable by
both to calculate the bitmap's minimum size.

TEST=./build_test
BUG=chromium:800626

Change-Id: I349aa0dd7e78e7f9ea3d35ba0acba8088fd77a4e
Reviewed-on: https://chromium-review.googlesource.com/857909
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'devices')
0 files changed, 0 insertions, 0 deletions