Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Microdroidが
興味深い件について

Kuu
February 23, 2022
700

 Microdroidが
興味深い件について

Kuu

February 23, 2022
Tweet

Transcript

  1. Kuu/͎͘ͱ͍͍·͢🍣 • Software Enginer @ ϝϧΧϦ • Android ΞϓϦΛ࡞Δ͓࢓ࣄ •

    େମಇ͖࢝Ίͯ̎೥͙Β͍ • झຯ • ཱྀߦɾࣸਅࡱӨ • ݈߁ҡ࣋ • ਭ຾ɺ৯ࣄɺӡಈ • ৘ใऩूͱߟ࡯
  2. Android Go editionͱMicrodroidͷҧ͍ • Android Go edition • ࣮୺຤ͰϢʔβʔ͕৮ΔGUIΛఏڙͯ͠Δ •

    ௿Ϧιʔε && ωοτϫʔΫଳҬͷগͳ͍؀ڥ޲͚ • Microdroid • ͦ΋ͦ΋GUIΛఏڙͯ͠ͳ͍ • HAL͢Βఏڙͯ͠ͳ͍ • Ծ૝Ϛγϯͷ্Ͱಈ͔͢؀ڥ޲͚ https://android.googlesource.com/platform/packages/modules/Virtualization/+/HEAD/microdroid/README.md
  3. GoogleͷϓϨθϯ͔ΒηΩϡϦςΟ޲্ͷ
 த਎Λਪଌͯ͠ΈΔ • Virtualisation for the Masses: Exposing KVM on

    Android • ຋༁: Ծ૝ԽͷେऺԽ, Androidͷ্Ͱಈ͘KVMͷެ։ • ຊདྷͷ໨తͱͯ͠͸ηΩϡϦςΟ޲্ͷͨΊʹ෼཭ΛਐΊΔಈ͖ʹ࢖͏΋ͷ • ৄࡉͬΆ͍ͷ͕ॻ͍ͯ͋ͬͨ • Two-stage MMU • ϝϞϦۭؒͷ෼཭ • Ծ૝ϝϞϦΞυϨεͱ࣮ΞυϨεΛม׵͢Δ΍ͭ • αʔυύʔςΟͷιʔείʔυΛEL2/Trust zone͔Β෼཭ • ࢦ໲ೝূͳͲͷηΩϡΞͳ৘ใ΁ѱҙͷ͋ΔΞϓϦ౳͔ΒͷΞΫηεΛ੍ޚ
  4. ιʔείʔυ౳ಡΜͰ ࢓૊ΈΛໝ૝ͯ͠ΈΔ • Rust Ͱهड़͞ΕͯΔʂ😵💫 • ࠷ۙͬΆ͍ݴޠʂ • APKͱॺ໊౳ʑΛࢦఆͯ͠ىಈ •

    crosvm Λ࢖͍Ծ૝Ϛγϯ (Protected KVM)Λ؅ཧͯ͠Δ • Chrome OSͰطʹ࢖ΘΕͯ ͍Δ΋ͷΛྲྀ༻ͯ͠ΔͬΆ͍ https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/heads/master