<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syuu1228</author_name>
  <author_url>https://blog.hatena.ne.jp/syuu1228/</author_url>
  <blog_title>syuu1228's blog</blog_title>
  <blog_url>https://syuu1228.hatenablog.com/</blog_url>
  <categories>
    <anon>BHyVe</anon>
    <anon>x86</anon>
  </categories>
  <description>VT-xなVMMはエミュレータと違って1命令毎にソフトウェアエミュレーションしている訳では無いので、単純に命令エミュレーションごとにデコード結果をprintfすればいいとかいう簡単な解は無いし、1命令実行ごとにVMExitする為の設定とかいうものも存在していないのでちょっと面倒くさかった、というか単純には作れないのだが、少しだけ工夫したら動くものができた。何を使ったかというとVT-x側の特別な仕組みじゃなくて、ゲストCPU上のデバッグ機能を利用した。 具体的にはEFLAGSレジスタのTFフラグというもので、これがセットされていると1命令（シングルステップ）毎に#DB例外が発生する（＝割り込みベ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsyuu1228.hatenablog.com%2Fentry%2F20121102%2F1351833105&quot; title=&quot;Instruction level tracer作った - syuu1228&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-11-02 14:11:45</published>
  <title>Instruction level tracer作った</title>
  <type>rich</type>
  <url>https://syuu1228.hatenablog.com/entry/20121102/1351833105</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
