From patchwork Tue Feb 12 23:34:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 10808903 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ABE4B1390 for ; Tue, 12 Feb 2019 23:34:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B2932BCDD for ; Tue, 12 Feb 2019 23:34:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D5822C202; Tue, 12 Feb 2019 23:34:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 332652BCDD for ; Tue, 12 Feb 2019 23:34:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730959AbfBLXex (ORCPT ); Tue, 12 Feb 2019 18:34:53 -0500 Received: from mga04.intel.com ([192.55.52.120]:58481 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729589AbfBLXex (ORCPT ); Tue, 12 Feb 2019 18:34:53 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2019 15:34:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,362,1544515200"; d="scan'208";a="318494773" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.14]) by fmsmga006.fm.intel.com with ESMTP; 12 Feb 2019 15:34:52 -0800 From: Sean Christopherson To: Paolo Bonzini , =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= Cc: kvm@vger.kernel.org Subject: [kvm-unit-tests PATCH 00/15] KVM: clean up the nVMX config Date: Tue, 12 Feb 2019 15:34:36 -0800 Message-Id: <20190212233451.27740-1-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The VMX validation space is ginormous, e.g. there are hundreds if not thousands of combinations of control settings alone to test, and that's not counting tests like the VMCS shadowing test that permute every possible value of the test space and generate tens of thousands of sub-tests. Because of the sheer number of things to validate, the VMX code crams many individual test, i.e. things that report PASS/FAIL, into each test function, i.e. a collection of tests that can be explicitly invoked via command line, and then consolidates several test functions under an actual test case, i.e. an entry in x86/unittests.cfg. While the VMX test infrastructure isn't terrible (I wouldn't call it "good" either), the testcases defind in unittests.cfg are a mess. Clean up the worst of the mess so that the defined testcases are at least somewhat sane, and more importantly, somehwat maintainable. Most of the patches are relatively minor things to undo copy+paste issues. Patch 1/15 adds an option to run a specific test, which is Sean Christopherson (15): KVM: Add a "-t" option to run a specific test KVM: x86/config: Consolidate EPT access tests into a single test KVM: nVMX: Exclude the EPT access tests from the VMX testcase KVM: nVMX: Drop the bogus 2gb requirement from the "vmx" testcase KVM: nVMX: Drop the bogus 2gb requirement from the shadow VMCS test KVM: nVMX: Drop the bogus SMP requirement from VMCS shadowing test KVM: nVMX: Rename VMCS shadowing test to "vmcs_shadow" KVM: nVMX: Exclude the VMCS shadowing test from the "vmx" testcase KVM: nVMX: Drop testcases that are redundant with the primary VMX testcase KVM: nVMX: Drop the SMP configuration of the ST APIC passthrough test KVM: nVMX: Consolidate the SMP tests into a single testcase KVM: nVMX: Rename SMP tests to being with vmx_smp_* KVM: nVMX: Exclude the SMP tests from the primary "vmx" testcases KVM: nVMX: Drop the bogus 2gb requirement from the SMP tests KVM: nVMX: Drop the bogus 2gb requirement from the HLT+RVI testcase run_tests.sh | 6 +- scripts/runtime.bash | 6 +- x86/unittests.cfg | 397 +------------------------------------------ x86/vmx_tests.c | 8 +- 4 files changed, 20 insertions(+), 397 deletions(-)