Encryptedstore: Set sector_size=4096B for cryptDev

Enable setting opt_params in the DmTargetSpec for dm-crypt. Also, use it
to set encryption unit to 4096 (default is 512B). HCTR2's (the algorithm
used by encryptedstore) performance is seen to be better with larger
sector size.

Test: cat /sys/block/dm-7/queue/physical_block_size
Bug: 260329386
Change-Id: I7178e6d06c0a47085eebacb93bd7a999628e7c4f
2 files changed
tree: 4272a1cf49a2273e976b8117e4880c6977df3309
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. avmd/
  5. compos/
  6. demo/
  7. docs/
  8. encryptedstore/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. tests/
  17. virtualizationmanager/
  18. virtualizationservice/
  19. vm/
  20. vm_payload/
  21. vmbase/
  22. vmclient/
  23. zipfuse/
  24. .clang-format
  25. .gitignore
  26. Android.bp
  27. OWNERS
  28. PREUPLOAD.cfg
  29. README.md
  30. 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.