From: Arthur Chunqi Li Subject: [PATCH v4 0/2] Basic nested VMX test suite Date: Wed, 17 Jul 2013 14:05:51 +0800 Message-ID: <1374041153-32235-1-git-send-email-yzt356@gmail.com> Cc: jan.kiszka@web.de, gleb@redhat.com, pbonzini@redhat.com, Arthur Chunqi Li To: kvm@vger.kernel.org Return-path: Received: from mail-pd0-f181.google.com ([209.85.192.181]:43013 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751876Ab3GQGGH (ORCPT ); Wed, 17 Jul 2013 02:06:07 -0400 Received: by mail-pd0-f181.google.com with SMTP id 14so1470938pdj.26 for ; Tue, 16 Jul 2013 23:06:07 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: These two patches are focued on providing a basic version of VMX nested test suite. This commit provides the architecture of nested VMX similiar to x86/svm.c. When new test suite added, just write functions included in "struct vmx_test" and register it in array "vmx_tests". GPR in guest can be read from vmx_test. guest_regs. VM exit times can be read from vmx_test.exits. setjmp/longjmp is designed to avoid exiting VMX in call-back form. Arthur Chunqi Li (2): kvm-unit-tests : Add setjmp/longjmp to libcflat kvm-unit-tests : The first version of VMX nested test case config-x86-common.mak | 2 + config-x86_64.mak | 3 + lib/setjmp.h | 11 + lib/x86/msr.h | 5 + lib/x86/setjmp64.S | 27 ++ x86/cstart64.S | 4 + x86/unittests.cfg | 6 + x86/vmx.c | 676 +++++++++++++++++++++++++++++++++++++++++++++++++ x86/vmx.h | 419 ++++++++++++++++++++++++++++++ 9 files changed, 1153 insertions(+) create mode 100644 lib/setjmp.h create mode 100644 lib/x86/setjmp64.S create mode 100644 x86/vmx.c create mode 100644 x86/vmx.h -- 1.7.9.5