From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH kvm-unit-tests 0/4] API test framework Date: Wed, 24 Nov 2010 12:52:09 +0200 Message-ID: <1290595933-13122-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:64765 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753451Ab0KXKwZ (ORCPT ); Wed, 24 Nov 2010 05:52:25 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oAOAqPBb021050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 24 Nov 2010 05:52:25 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oAOAqOBq026095 for ; Wed, 24 Nov 2010 05:52:25 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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