<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <span style="color: rgb(33, 33, 33); font-family: "Meiryo
      UI", "MS UI Gothic", "MS PGothic",
      "MS Pゴシック", "MS Gothic", "MS ゴシック",
      sans-serif; font-size: 13.3333px; font-style: normal;
      font-variant-ligatures: normal; font-variant-caps: normal;
      font-weight: normal; letter-spacing: normal; orphans: 2;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 2; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none;"></span>榮樂様、<br>
    <br>
    <span style="color: rgb(33, 33, 33); font-family: "Meiryo
      UI", "MS UI Gothic", "MS PGothic",
      "MS Pゴシック", "MS Gothic", "MS ゴシック",
      sans-serif; font-size: 13.3333px; font-style: normal;
      font-variant-ligatures: normal; font-variant-caps: normal;
      font-weight: normal; letter-spacing: normal; orphans: 2;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 2; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none;">素早い回答ありがとうございます。<br>
      EFIパーティションの直下に</span><span style="color: rgb(33, 33, 33);
      font-family: "Meiryo UI", "MS UI Gothic",
      "MS PGothic", "MS Pゴシック", "MS
      Gothic", "MS ゴシック", sans-serif; font-size:
      13.3333px; font-style: normal; font-variant-ligatures: normal;
      font-variant-caps: normal; font-weight: normal; letter-spacing:
      normal; orphans: 2; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255); display: inline !important;
      float: none;"><span style="color: rgb(33, 33, 33); font-family:
        "Meiryo UI", "MS UI Gothic", "MS
        PGothic", "MS Pゴシック", "MS Gothic",
        "MS ゴシック", sans-serif; font-size: 13.3333px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: normal; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); display: inline
        !important; float: none;">loadvmm.efiとbitvisor.elfを持ってきて、<br>
      </span>/etc/grub.d/40_custom を下記のようにすることでbitvisorの起動ができました。<br>
      menuentry "bitvisor" {<br>
          insmod part_gpt<br>
          insmod search_fs_uuid<br>
          insmod chain<br>
          search --fs-uuid --no-floppy --set=root 178A-CB39<br>
          chainloader ($root)/loadvmm.efi<br>
      }<br>
      <br>
      ただ、<br>
      panic(CPU0) callrealmode_call is not allowed on UEFI systemds:
      d->func=10<br>
      で落ちます。<br>
      また、moduleをつけたいのですが、</span><span style="color: rgb(33, 33, 33);
      font-family: "Meiryo UI", "MS UI Gothic",
      "MS PGothic", "MS Pゴシック", "MS
      Gothic", "MS ゴシック", sans-serif; font-size:
      13.3333px; font-style: normal; font-variant-ligatures: normal;
      font-variant-caps: normal; font-weight: normal; letter-spacing:
      normal; orphans: 2; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255); display: inline !important;
      float: none;"><span style="color: rgb(33, 33, 33); font-family:
        "Meiryo UI", "MS UI Gothic", "MS
        PGothic", "MS Pゴシック", "MS Gothic",
        "MS ゴシック", sans-serif; font-size: 13.3333px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: normal; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); display: inline
        !important; float: none;">loadvmm.efiではどうやって設定するのでしょうか。</span><br>
      <br>
    </span>------<br>
    suzaki<br>
    <br>
    <div class="moz-cite-prefix">On 2017/01/18 17:29, Hideki EIRAKU
      wrote:<br>
    </div>
    <blockquote cite="mid:20170118.172938.160040568.hdk@igel.co.jp"
      type="cite">
      <pre wrap="">イーゲル 榮樂です。

From: k.suzaki <a class="moz-txt-link-rfc2396E" href="mailto:k.suzaki@aist.go.jp"><k.suzaki@aist.go.jp></a>
Subject: [BitVisor-devel:101] UEFI/GRUB2の設定(Ubuntu1610 on ThinkPAD T440s)
Date: Wed, 18 Jan 2017 17:09:46 +0900

</pre>
      <blockquote type="cite">
        <pre wrap="">この環境(Secure BootはDisenableにした)で/etc/grub.d/40_customを編集し
てBitvisorが起動できるか試したのですが、このごウンスンになります。
GRUB2に戻らないまでも、何かメッセージが出ると思ったのですが。

ちなみにSecure BootはEnableにすると
エラー Secure Boot forbids loading module form
(hd0,msdos)/grub/x86_64-efi/multiboot/mod
と表示されて楽しい。:-)
</pre>
      </blockquote>
      <pre wrap="">
multiboot コマンドで読み込むと BitVisor の動作が BIOS モードになります
ので動作しません。BIOS モードではテキスト VRAM にログを書き込みますが、
UEFI 環境では画面モードがグラフィックモードになっていますので何も見え
ません。また、UEFI 環境では BIOS 用の割り込みベクターは空っぽの場合も
あり、BitVisor がメモリー情報取得などで BIOS を呼び出そうとしたところ
で暴走することも考えられます。

UEFI 環境で BitVisor を multiboot で実行できない理由は、UEFI でファー
ムウェアによるデバイス制御を終わらせる (オペレーティング・システムがデ
バイスを使えるようにする) ExitBootServices という API を GNU GRUB が呼
び出してしまうためです。BitVisor 起動後、オペレーティング・システムの
起動に引き続き UEFI ファームウェアを使いたいので、ExitBootServices を
呼ばれては困るのです。そのような理由により、BitVisor は multiboot で開
始されたら BIOS モード、という風に実装されています。

UEFI 環境で GRUB2 から BitVisor を起動するには chainload コマンドを使
用して loadvmm.efi を呼び出すようにしてください。chainload コマンドを
使うには各ファイルを FAT パーティション (EFI システムパーティションで
OK) においておく必要があったかと思います。chainload コマンドを使う場合
でも、loadvmm.efi に署名がないので Secure Boot を有効にしていると起動
できません。

</pre>
    </blockquote>
    <br>
  </body>
</html>