From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8E64A80333 for ; Mon, 6 Mar 2017 15:27:50 -0800 (PST) Received: by mail-io0-x244.google.com with SMTP id f103so15432289ioi.2 for ; Mon, 06 Mar 2017 15:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=tlS8fw5TquSyOeUZkRHB8PQ7cE3D8x7UcEpHVQBAe8Q=; b=J0jc1quDgEErkxLa3AsrXTqB5mjzhkZonJyW/8NVlb3Lrim+QJX/rIledu993QOHbL v24zwsxRdryiHOOHHtYGYSgFvYI5c84muPvTSDeZABpwe+USTi4eKDMOCMOzCBs+ZmXO UPHHkLE3AwzZbGvPwlQ2nVv9QYYI2BDM+w4lPKh5vQHnzUmRXzjEjfto+TVEvVTy5NS5 MXQDKdEQzPA1sf3b4HMHHeKIX3uu4eN8vtL5DP3qiJ0YOcKshzjomdzlbW0s1fjx4/CM fgdyc2tc9BYpz85kGVKg8NpFERW78d+kcMpBGF7Guhb56gnm8NMQhXDyLdcOIAtaMFgW U4DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=tlS8fw5TquSyOeUZkRHB8PQ7cE3D8x7UcEpHVQBAe8Q=; b=DzIZM2yz1HOzyAa2cm7lbuslpNk8IV7F5ybOQM5YNnv9wWKghVSW/0wulJ4E7RUuJ8 Yn0kK2e2qcftWuP+ILABOJoEKKOsbWT2DK8Qp5syKoCcnyztiX/bMwDm8P23gGtwU1lb +as1LEtrCesrOLnMD1fL50hYtaCzISXFVICzyDvnAkZlJhUgl7bI2nh7XGoTpLO5XmCY O0KbvdfvsbnjHpBqUywezgfr+1AzFnbI7r3+jBbuhB01w3aucZtMl1GfwPBOvaMZiQQ/ OtSopNXBrQIfHa5l4D3fO3CUOSPJOiKYtnFgbkHHBmQTfMRjqd4lAm/v6in8ItDDoOZD ZWNg== X-Gm-Message-State: AMke39m2JOYX22OFtfu2mN4NL5BE8s/laQdjO0549DSYlkaUBrI3n2+ZbqaJzJR/87BhOQ== X-Received: by 10.107.2.201 with SMTP id 192mr4568194ioc.81.1488842869908; Mon, 06 Mar 2017 15:27:49 -0800 (PST) Received: from [127.0.1.1] ([165.204.77.1]) by smtp.gmail.com with ESMTPSA id e62sm9321051ioj.2.2017.03.06.15.27.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Mar 2017 15:27:49 -0800 (PST) From: Brijesh Singh X-Google-Original-From: Brijesh Singh To: jordan.l.justen@intel.com, edk2-devel@ml01.01.org, lersek@redhat.com Cc: Thomas.Lendacky@amd.com, leo.duran@amd.com, brijesh.sing@amd.com Date: Mon, 06 Mar 2017 18:27:48 -0500 Message-ID: <148884286883.29188.10103467162152106751.stgit@brijesh-build-machine> In-Reply-To: <148884284887.29188.7643544710695103939.stgit@brijesh-build-machine> References: <148884284887.29188.7643544710695103939.stgit@brijesh-build-machine> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Subject: [RFC PATCH v1 3/5] OvmfPkg/PlatformPei: Initialize SEV support X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 23:27:50 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Initialize Secure Encrypted Virtualization (SEV) support. Signed-off-by: Brijesh Singh --- OvmfPkg/PlatformPei/Platform.c | 6 ++++++ OvmfPkg/PlatformPei/PlatformPei.inf | 1 + 2 files changed, 7 insertions(+) diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index 0be8672..a948037 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -669,5 +670,10 @@ InitializePlatform ( MiscInitialization (); InstallFeatureControlCallback (); + // + // Initialize SEV support + // + MemcryptSevInitialize (); + return EFI_SUCCESS; } diff --git a/OvmfPkg/PlatformPei/PlatformPei.inf b/OvmfPkg/PlatformPei/PlatformPei.inf index fbaed31..f85b208 100644 --- a/OvmfPkg/PlatformPei/PlatformPei.inf +++ b/OvmfPkg/PlatformPei/PlatformPei.inf @@ -60,6 +60,7 @@ QemuFwCfgLib MtrrLib PcdLib + MemcryptSevLib [Pcd] gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase