From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 187102095D2DF for ; Mon, 10 Jul 2017 19:17:34 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2017 19:19:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,343,1496127600"; d="scan'208";a="106818894" Received: from ydong10-win10.ccr.corp.intel.com ([10.239.158.51]) by orsmga004.jf.intel.com with ESMTP; 10 Jul 2017 19:19:18 -0700 From: Eric Dong To: edk2-devel@lists.01.org Date: Tue, 11 Jul 2017 10:19:14 +0800 Message-Id: <1499739556-14440-1-git-send-email-eric.dong@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 Subject: [Patch V2 0/2] Fix enable Smx/Vmx error. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2017 02:17:34 -0000 Patch also add error handling code when enable feature failed. V2 changes: If can't enable the feature, then disable it. V1 patch missed it. Eric Dong (2): UefiCpuPkg RegisterCpuFeaturesLib: Add error handling code. UefiCpuPkg CpuCommonFeaturesLib: Fix smx/vmx enable logic error. .../CpuCommonFeaturesLib/CpuCommonFeatures.h | 47 +++------ .../CpuCommonFeaturesLib/CpuCommonFeaturesLib.c | 19 +--- .../Library/CpuCommonFeaturesLib/FeatureControl.c | 106 ++++++++------------- .../RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 47 ++++++++- 4 files changed, 101 insertions(+), 118 deletions(-) -- 2.7.0.windows.1