Flush data to instance disk using BLKFLSBUF

Previously, we used fsync which works only for file descriptors that
are not by page cache. Since the instance disk is directly opened as a
block device, fsync didn't work. Fixing the issue by using BLKFLSBUF
instead.

Bug: 208639280
Test: atest MicrodroidTestApp
Change-Id: I782bc9d1d59d302fedecc72f471abde601162830
3 files changed
tree: 3ab1a4e67f56845466f56202387b78d3fef28b54
  1. .prebuilt_info/
  2. apex/
  3. apkdmverity/
  4. apkverify/
  5. authfs/
  6. binder_common/
  7. compos/
  8. demo/
  9. docs/
  10. idsig/
  11. javalib/
  12. launcher/
  13. libs/
  14. microdroid/
  15. microdroid_manager/
  16. pvmfw/
  17. statslog_virtualization/
  18. tests/
  19. virtualizationservice/
  20. vm/
  21. vmconfig/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.