Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07E13C2BA83 for ; Fri, 7 Feb 2020 17:42:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E09CD20838 for ; Fri, 7 Feb 2020 17:42:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727309AbgBGRmt (ORCPT ); Fri, 7 Feb 2020 12:42:49 -0500 Received: from mga11.intel.com ([192.55.52.93]:13003 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726988AbgBGRms (ORCPT ); Fri, 7 Feb 2020 12:42:48 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Feb 2020 09:42:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,414,1574150400"; d="scan'208";a="312095681" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.202]) by orsmga001.jf.intel.com with ESMTP; 07 Feb 2020 09:42:46 -0800 From: Sean Christopherson To: Paolo Bonzini Cc: kvm@vger.kernel.org Subject: [kvm-unit-tests PATCH 4/4] nVMX: Extend EPT cap MSR test to allow 5-level EPT Date: Fri, 7 Feb 2020 09:42:44 -0800 Message-Id: <20200207174244.6590-5-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200207174244.6590-1-sean.j.christopherson@intel.com> References: <20200207174244.6590-1-sean.j.christopherson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Modify the EMSR_IA32_VMX_EPT_VPID_CAP test to mark the 5-level EPT cap bit as allowed-1. KVM is in the process of gaining support for 5-level nested EPT[*]. [*] https://lkml.kernel.org/r/20200206220836.22743-1-sean.j.christopherson@intel.com Signed-off-by: Sean Christopherson --- x86/vmx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/x86/vmx.c b/x86/vmx.c index ac4aa56..a15c2be 100644 --- a/x86/vmx.c +++ b/x86/vmx.c @@ -1540,6 +1540,7 @@ static void test_vmx_caps(void) fixed0 = -1ull; fixed0 &= ~(EPT_CAP_WT | EPT_CAP_PWL4 | + EPT_CAP_PWL5 | EPT_CAP_UC | EPT_CAP_WB | EPT_CAP_2M_PAGE | -- 2.24.1