From patchwork Tue Feb 12 23:34:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 10808917 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 E2F1817FB for ; Tue, 12 Feb 2019 23:35:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0C432BCDD for ; Tue, 12 Feb 2019 23:35:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C54482C201; Tue, 12 Feb 2019 23:35:00 +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 39C002BCDD for ; Tue, 12 Feb 2019 23:35:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731853AbfBLXe5 (ORCPT ); Tue, 12 Feb 2019 18:34:57 -0500 Received: from mga04.intel.com ([192.55.52.120]:58482 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731819AbfBLXe4 (ORCPT ); Tue, 12 Feb 2019 18:34:56 -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:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,362,1544515200"; d="scan'208";a="318494787" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.14]) by fmsmga006.fm.intel.com with ESMTP; 12 Feb 2019 15:34:54 -0800 From: Sean Christopherson To: Paolo Bonzini , =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= Cc: kvm@vger.kernel.org Subject: [kvm-unit-tests PATCH 09/15] KVM: nVMX: Drop testcases that are redundant with the primary VMX testcase Date: Tue, 12 Feb 2019 15:34:45 -0800 Message-Id: <20190212233451.27740-10-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190212233451.27740-1-sean.j.christopherson@intel.com> References: <20190212233451.27740-1-sean.j.christopherson@intel.com> 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 overarching VMX test binary, i.e. vmx.flat, contains a large number of individual tests. In addition to a kitchen sink testcase, "vmx", many (but not all) of the individual tests also define their own test case. Drop all such individual test cases that can use the generic umbrella testcase, e.g. don't need SMP, 2gb ram, etc..., so that running all unit tests doesn't double up on said tests. Alternatively, "vmx" could be removed, but doing so would provide little value (the tests are relatively fast and stable), be a maintenance nightmare, and run the risk of unintentionally omitting tests from the config. Ideally, the config would find a middle ground and group the vmx tests into a handful of meaningful testcases, but the tests exposed by vmx.flat currently don't play nice with that approach. In other words, the tests themselves need to be reorganized before the config can follow suit. Signed-off-by: Sean Christopherson --- x86/unittests.cfg | 252 ---------------------------------------------- 1 file changed, 252 deletions(-) diff --git a/x86/unittests.cfg b/x86/unittests.cfg index ad54126..4d46789 100644 --- a/x86/unittests.cfg +++ b/x86/unittests.cfg @@ -236,258 +236,6 @@ extra_params = -cpu host,host-phys-bits,+vmx -m 2560 -append "ept_access*" arch = x86_64 groups = vmx -[vmx_null] -file = vmx.flat -extra_params = -cpu host,+vmx -append null -arch = x86_64 -groups = vmx - -[vmx_test_vmx_feature_control] -file = vmx.flat -extra_params = -cpu host,+vmx -append test_vmx_feature_control -arch = x86_64 -groups = vmx - -[vmx_test_vmxon] -file = vmx.flat -extra_params = -cpu host,+vmx -append test_vmxon -arch = x86_64 -groups = vmx - -[vmx_test_vmptrld] -file = vmx.flat -extra_params = -cpu host,+vmx -append test_vmptrld -arch = x86_64 -groups = vmx - -[vmx_test_vmclear] -file = vmx.flat -extra_params = -cpu host,+vmx -append test_vmclear -arch = x86_64 -groups = vmx - -[vmx_test_vmptrst] -file = vmx.flat -extra_params = -cpu host,+vmx -append test_vmptrst -arch = x86_64 -groups = vmx - -[vmx_test_vmwrite_vmread] -file = vmx.flat -extra_params = -cpu host,+vmx -append test_vmwrite_vmread -arch = x86_64 -groups = vmx - -[vmx_test_vmcs_high] -file = vmx.flat -extra_params = -cpu host,+vmx -append test_vmcs_high -arch = x86_64 -groups = vmx - -[vmx_test_vmcs_lifecycle] -file = vmx.flat -extra_params = -cpu host,+vmx -append test_vmcs_lifecycle -arch = x86_64 -groups = vmx - -[vmx_test_vmx_caps] -file = vmx.flat -extra_params = -cpu host,+vmx -append test_vmx_caps -arch = x86_64 -groups = vmx - -[vmx_vmenter] -file = vmx.flat -extra_params = -cpu host,+vmx -append vmenter -arch = x86_64 -groups = vmx - -[vmx_preemption_timer] -file = vmx.flat -extra_params = -cpu host,+vmx -append preemption_timer -arch = x86_64 -groups = vmx - -[vmx_control_field_PAT] -file = vmx.flat -extra_params = -cpu host,+vmx -append control_field_PAT -arch = x86_64 -groups = vmx - -[vmx_control_field_EFER] -file = vmx.flat -extra_params = -cpu host,+vmx -append control_field_EFER -arch = x86_64 -groups = vmx - -[vmx_CR_shadowing] -file = vmx.flat -extra_params = -cpu host,+vmx -append CR_shadowing -arch = x86_64 -groups = vmx - -[vmx_IO_bitmap] -file = vmx.flat -extra_params = -cpu host,+vmx -append I/O_bitmap -arch = x86_64 -groups = vmx - -[vmx_instruction_intercept] -file = vmx.flat -extra_params = -cpu host,+vmx -append instruction_intercept -arch = x86_64 -groups = vmx - -[vmx_EPT_AD_enabled] -file = vmx.flat -extra_params = -cpu host,+vmx -append EPT_A/D_enabled -arch = x86_64 -groups = vmx - -[vmx_EPT_AD_disabled] -file = vmx.flat -extra_params = -cpu host,+vmx -append EPT_A/D_disabled -arch = x86_64 -groups = vmx - -[vmx_PML] -file = vmx.flat -extra_params = -cpu host,+vmx -append PML -arch = x86_64 -groups = vmx - -[vmx_VPID] -file = vmx.flat -extra_params = -cpu host,+vmx -append VPID -arch = x86_64 -groups = vmx - -[vmx_interrupt] -file = vmx.flat -extra_params = -cpu host,+vmx -append interrupt -arch = x86_64 -groups = vmx - -[vmx_debug_controls] -file = vmx.flat -extra_params = -cpu host,+vmx -append debug_controls -arch = x86_64 -groups = vmx - -[vmx_MSR_switch] -file = vmx.flat -extra_params = -cpu host,+vmx -append MSR_switch -arch = x86_64 -groups = vmx - -[vmx_vmmcall] -file = vmx.flat -extra_params = -cpu host,+vmx -append vmmcall -arch = x86_64 -groups = vmx - -[vmx_disable_RDTSCP] -file = vmx.flat -extra_params = -cpu host,+vmx -append disable_RDTSCP -arch = x86_64 -groups = vmx - -[vmx_int3] -file = vmx.flat -extra_params = -cpu host,+vmx -append int3 -arch = x86_64 -groups = vmx - -[vmx_into] -file = vmx.flat -extra_params = -cpu host,+vmx -append into -arch = x86_64 -groups = vmx - -[vmx_exit_monitor_from_l2_test] -file = vmx.flat -extra_params = -cpu host,+vmx -append exit_monitor_from_l2_test -arch = x86_64 -groups = vmx - -[vmx_v2] -file = vmx.flat -extra_params = -cpu host,+vmx -append "v2_null_test v2_multiple_entries_test fixture_test_case1 fixture_test_case2" -arch = x86_64 -groups = vmx - -[vmx_invvpid] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append invvpid_test_v2 -arch = x86_64 -groups = vmx - -[vmx_controls] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmx_controls_test -arch = x86_64 -groups = vmx - -[vmx_vmentry_movss_shadow_test] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmentry_movss_shadow_test -arch = x86_64 -groups = vmx - -[vmx_cr_load_test] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmx_cr_load_test -arch = x86_64 -groups = vmx - -[vmx_nm_test] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmx_nm_test -arch = x86_64 -groups = vmx - -[vmx_pending_event_test] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmx_pending_event_test -arch = x86_64 -groups = vmx - -[vmx_pending_event_hlt_test] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmx_pending_event_hlt_test -arch = x86_64 -groups = vmx - -[vmx_store_tsc_test] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmx_store_tsc_test -arch = x86_64 -groups = vmx - -[vmx_store_tsc_test] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmx_store_tsc_test -arch = x86_64 -groups = vmx - -[vmx_db_test] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmx_db_test -arch = x86_64 -groups = vmx - -[vmx_nmi_window_test] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmx_nmi_window_test -arch = x86_64 -groups = vmx - -[vmx_intr_window_test] -file = vmx.flat -extra_params = -cpu host,+vmx -m 2560 -append vmx_intr_window_test -arch = x86_64 -groups = vmx - [vmx_eoi_bitmap_ioapic_scan] file = vmx.flat smp = 2