From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH 0/8] Nested SVM unit tests Date: Wed, 28 Jul 2010 13:18:19 +0300 Message-ID: <1280312307-16686-1-git-send-email-avi@redhat.com> To: Joerg Roedel , Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:49728 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751330Ab0G1KS3 (ORCPT ); Wed, 28 Jul 2010 06:18:29 -0400 Sender: kvm-owner@vger.kernel.org List-ID: The following patchset adds a framework for nested SVM unit testing. As you may guess, future fixes and enhancements to nested SVM will require matching tests. Currently, our nested SVM implementation has a 66.67% success rate using these tests. Avi Kivity (8): test: move ARRAY_SIZE() to libcflat.h test: move memset() to libcflat test: add type bool test: add processor register access functions test: make use of new processor.h header test: add svm definitions header test: add msr definitions header test: add svm tests kvm/test/config-x86-common.mak | 2 + kvm/test/config-x86_64.mak | 1 + kvm/test/lib/libcflat.h | 9 + kvm/test/lib/string.c | 11 + kvm/test/lib/x86/msr.h | 406 ++++++++++++++++++++++++++++++++++++++++ kvm/test/lib/x86/processor.h | 246 ++++++++++++++++++++++++ kvm/test/x86/access.c | 8 - kvm/test/x86/apic.c | 8 - kvm/test/x86/emulator.c | 10 +- kvm/test/x86/idt.c | 8 - kvm/test/x86/svm.c | 180 ++++++++++++++++++ kvm/test/x86/svm.h | 328 ++++++++++++++++++++++++++++++++ kvm/test/x86/vm.c | 30 +--- kvm/test/x86/vm.h | 43 +---- kvm/test/x86/vmexit.c | 2 - 15 files changed, 1197 insertions(+), 95 deletions(-) create mode 100644 kvm/test/lib/x86/msr.h create mode 100644 kvm/test/lib/x86/processor.h create mode 100644 kvm/test/x86/svm.c create mode 100644 kvm/test/x86/svm.h