Treat CID on cmdline as signed

We pass a CID value of -1U (VMADDR_CID_ANY) from composd to odrefresh
to pvm_exec as a sentinel value to indicate use of
composd. Unfortunately odrefresh expects it to be signed while composd
and pvm_exec expect it to be unsigned, leading to test breakge.

This CL moves everything to signed. (Technically unsigned is more
correct, but -1 looks more elegant than 4294967295.

Fixes: 202696349
Test: atest ComposTestCase
Test: adb shell apex/com.android.compos/bin/composd_cmd
Change-Id: I9f8cbe85ebf6755a158c20de95c62e3d44591db0
2 files changed
tree: 0cc6cc09d035d936d4622fefc0738a80f585e2bc
  1. apex/
  2. apkdmverity/
  3. apkverify/
  4. authfs/
  5. binder_common/
  6. compos/
  7. demo/
  8. docs/
  9. idsig/
  10. javalib/
  11. launcher/
  12. libs/
  13. microdroid/
  14. microdroid_manager/
  15. pvmfw/
  16. tests/
  17. virtualizationservice/
  18. vm/
  19. vmconfig/
  20. zipfuse/
  21. .clang-format
  22. Android.bp
  23. OWNERS
  24. PREUPLOAD.cfg
  25. README.md
  26. 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.