BHyVe Hackathon用にサンプルの仮想デバイスを書いてみた。 実行イメージ bhyve-tap0# cat /dev/bvtest Hello from BHyVe 仕組み inl(BVTEST_LEN_PORT)で文字列の長さを取得 outl(BVTEST_OFF_PORT, offset)で読み取りたい1文字のオフセットを設定 inl(BVTEST_IO_PORT)で1文字取得 実装 diff --git a/sys/conf/files.amd64 b/sys/conf/files.amd64 index 1769a17..b0c3f0f 100644 --- a/sys/conf/files.amd64 +++ b/sys/conf/files.amd64 @@ -454,6 +454,7 @@ contrib/x86emu/x86emu.c optional x86bi