Home

Awesome

A simple userspace program to interact with Linux KVM on x86 hardware containing virtualization extensions (Intel VT or AMD-V).

The work was derived from this article.

Prerequisites

sudo apt-get install linux-headers-generic

Build

Simply execute GNU make:

make

There are two files generated:

Run

sudo modprobe kvm
./kvm-user

Sample output:

KVM start run
KVM_EXIT_IO
out port: 0x10, data 0
KVM start run
KVM_EXIT_IO
out port: 0x10, data 1
KVM start run
KVM_EXIT_IO
out port: 0x10, data 2
KVM start run
KVM_EXIT_IO
out port: 0x10, data 3