Re: [PATCH 0/7] KVM: Kernel-based Virtual Machine (v2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Avi Kivity wrote:
I'll also reply to this mail with a sample userspace so people can see how it works.
Attached is the source for a small library (libkvm.a) and a small test 
harness (kvmctl) plus a few tests (test/*).  The only test which will 
work now is sieve.flat (I haven't used the tests since we got a real OS 
booting, and had to scrub it up a bit).  The tests are currently only 
for x86_64.
The library is also used in our qemu patch (not included). I'll post 
that later on.
Basically, the library adds function wrappers around the ioctl()s, and 
converts exit reasons to callbacks, so the user need not code that large 
switch.
To try it, compile it, modprobe kvm, and

   ./kvmctl test/bootstrap test/sieve.flat

"bootstrap" is a bit of code to take the machine to 32-bit nonpaged mode. sieve.flat will go into long mode and tell you some uninteresting facts about prime numbers.
--
error compiling committee.c: too many arguments to function

Attachment: kvm-sample-userspace.tar.gz
Description: GNU Zip compressed data


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux