[PATCH kvm-unit-tests 0/4] API test framework

Avi Kivity
2010-11-24T10:52:25Z

This patchset adds an API test framework. Rather than driving kvm from qemu,
we now have a way of calling the kvm API directly and observing the results.
We can switch to guest mode and back at will and see any micro effects such
as the result of executing particular instructions.

As an experiment, the framework is coded in C++.

Avi Kivity (4):
Makefile: add support for C++
Introduce a C++ wrapper for the kvm APIs
Add support for calling a function in guest mode
Add sample test using the api test harness

Makefile | 4 +-
api/identity.cc | 76 ++++++++++++++++++++++
api/identity.h | 28 ++++++++
api/kvmxx.cc | 168 +++++++++++++++++++++++++++++++++++++++++++++++++
api/kvmxx.h | 80 +++++++++++++++++++++++
config-x86-common.mak | 8 +++
x86/api-sample.cc | 23 +++++++
7 files changed, 386 insertions(+), 1 deletions(-)
create mode 100644 api/identity.cc
create mode 100644 api/identity.h
create mode 100644 api/kvmxx.cc
create mode 100644 api/kvmxx.h
create mode 100644 x86/api-sample.cc