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

すごいBareflank楽しく学ぼう!

morimolymoly
November 11, 2018

 すごいBareflank楽しく学ぼう!

ゆるふわ入門編

morimolymoly

November 11, 2018
Tweet

More Decks by morimolymoly

Other Decks in Technology

Transcript

  1. ࢲ morimolymoly a.k.a. ήΩΧϫͶ͜ΈΈϝΠυ řŐŕŲƄ:morimolymoly.com ࡟আ ීஈ΍ͬͯΔ͜ͱ • ৘ใηΩϡϦςΟ •

    Hypervisor • Twitter • ΞΠΧπ@੢10߸ؗΞΠΧπࢹௌεϖʔε ࣮͸MMA෦һͳΜͰ͢Ͷʙʙʙʙ
  2. ΋͘͡ • Hypervisorͱ͸ʁ • Bareflankͬͯͳʹ • Ͱ͖Δ͜ͱ • ͭΒ͍͜ͱ •

    ৄղ Bareflank’s ϏϧυγεςϜ(͕࣌ؒ͋Ε͹ -> ͳͦ͞ ͏ͳͷͰϒϩάͰॻ͘)
  3. Hypervisorͱ͸ Ծ૝ϚγϯΛ؅ཧ͢ΔͨΊͷγεςϜ Type1 - Baremetal Type2 - Host ϋʔυ΢ΣΞ Hypervisor

    VM VM VM ϋʔυ΢ΣΞ Hypervisor VM VM VM ήετOS • Xen • KVM • Hyper-V • Bitvisor • VirtualBox • Qemu • Bochs
  4. ͭΒ͍͜ͱ • ബ͍ϑϨʔϜϫʔΫ -> ࣗ෼Ͱ༻ҙ͠Ζ • υΩϡϝϯτ͕ແ(͋Δ͚Ͳݹ͍) -> ςετίʔυ͋Δ͍͍͠΍? ->

    ίϯτϦϏϡʔγϣϯͷ νϟϯε? ଞͷHypervisor(Xen, Bitvisor)ͷιʔεͱIntel SDMΛಡΊʂ͆
  5. Αͦ͞͏จݙ • ʰϋΠύʔόΠβͷ࡞Γํʱhttp://syuu1228.github.io/howto_implement_hypervisor/ • ʰHypervisor From Scratchʱhttps://rayanfam.com/topics/hypervisor-from-scratch- part-1/ • Intel

    SDM • Bitvisorͷιʔε - thin hypervisorͷྲّྀ͕Θ͔Δ(PassThrough Driverͱ͔) ΍Γ͍ͨ͜ͱʹΑͬͯಡΉจݙ͸͋Γ͑Μଟ͘ͳΔ
  6. ྫ ࢀߟ: http://github.com/Tr4pMafia • syscall -MSR-IA32-LSTARͷվ͟ΜʹΑΔsyscall໋ྩͷtrap • Int3 - INT3ͷtrap

    • starter_kit - ௒γϯϓϧͳ֦ு ࠓ͸ύεεϧʔυϥΠόͷ࣮૷ͱ͔Λ;͘Ή͍͍ײ͡ͷHypervisorΛ։ൃ͍ͯ͠Δ