All Projects → jserv → kvm-user-x86

jserv / kvm-user-x86

Licence: other
A simple userspace program to interact with Linux KVM

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects
assembly
5116 projects

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

  • Intel processor with VT (virtualization technology) extensions or AMD processor with SVM extensions (also called AMD-V)
    • Enable VT or AMD in advnace.
  • Install Linux kernel headers
sudo apt-get install linux-headers-generic

Build

Simply execute GNU make:

make

There are two files generated:

  • kvm-user
  • vm.bin

Run

sudo modprobe kvm
  • Execute kvm-user
./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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].