vhost-pciを試す(1)
環境
- Ubuntu16.04
- STYLE-M0B3-R7-IX (Ryzen 7 1700, 8cores/16threads, 16GB Mem)
https://www.pc-koubou.jp/products/detail.php?product_id=592398
(注) 標準価格は98,980円ですがメモリ16GBに増設して119,836円
やったこと
本家からgit cloneする。ソースを変更したい場合は自分のアカウントにforkした方が良いかもしれない。
git clone https://github.com/wei-w-wang/vhost-pci-device.git
つづいて./configureを実行するも、pixmanが足りないと怒られる。
$ cd vhost-pci-device $ ./configure ERROR: pixman >= 0.21.8 not present. Your options: (1) Preferred: Install the pixman devel package (any recent distro should have packages as Xorg needs pixman too). (2) Fetch the pixman submodule, using: git submodule update --init pixman
Preferredな方のdevel packageを試みる。
sudo apt install libpixman-1-dev
つづいてDTC (libfdt)が足りないと怒られる。
$ ./configure ERROR: DTC (libfdt) version >= 1.4.2 not present. Your options: (1) Preferred: Install the DTC (libfdt) devel package (2) Fetch the DTC submodule, using: git submodule update --init dtc
こちらはaptでインストールをしてみたところ、バージョンが1.4.0(要求されるのは>=1.4.2)で若干古いためNG。
なのでdctを'git submodule add'してから指示通り'git submodule update --init dtc'する。
git submodule add https://github.com/dgibson/dtc.git
git submodule update --init dtc
ついでにbisonとflexも事前にインストールしておく。
sudo apt install bison sudo apt install flex
このあとconfigure、make(qemuのmakeは結構時間がかかります)ともに無事成功。