From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.158.5]) by mx.groups.io with SMTP id smtpd.web12.1027.1608082954756228315 for ; Tue, 15 Dec 2020 17:42:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ibm.com header.s=pp1 header.b=YTxivNwH; spf=pass (domain: linux.ibm.com, ip: 148.163.158.5, mailfrom: jejb@linux.ibm.com) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0BG1WLAS054957; Tue, 15 Dec 2020 20:42:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=5hBLX3Rpk3yMPkHWZ0K1RrcTrQZ1UHZs0zUe2ToArw4=; b=YTxivNwHsjScNfl25UeAS9cHnkFoUh7yPMqWReao1B0MhG3rxFeHS33h2ct89XubhWLR Mtzp3+r0viB+JZSXeHZeayEJAD4Tbfj2Ub4KKNf8SEkUAYk1M+rcyNxgiAJLU1zizbtM CDWIRnm9LDUsXmOJnTOfOQgqCo/QV++piyMZbvGFkvshf93PmDaWrZ4GWqF02WtJMvNX wAElfH3Q52/MCe0xN/G+4NJQSniILYJRArlENhaSmAoLYn17KGLwkiTW06llVechYCO7 2RmH+t37qu6r/s1sSQ9AGyDmjfgLBdsuzAdy+dDwG6RbtZ4NpaC9kCKBT7Ok1o+VpAFa Gg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 35f84x0yxn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Dec 2020 20:42:30 -0500 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0BG1WXFw056025; Tue, 15 Dec 2020 20:42:30 -0500 Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0b-001b2d01.pphosted.com with ESMTP id 35f84x0yxf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Dec 2020 20:42:29 -0500 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0BG1MDIZ010959; Wed, 16 Dec 2020 01:42:29 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma02wdc.us.ibm.com with ESMTP id 35cng9461j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Dec 2020 01:42:29 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0BG1gRb130867856 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Dec 2020 01:42:27 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5A488AC05F; Wed, 16 Dec 2020 01:42:27 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5AB63AC05B; Wed, 16 Dec 2020 01:42:25 +0000 (GMT) Received: from jarvis.int.hansenpartnership.com (unknown [9.80.214.106]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 16 Dec 2020 01:42:25 +0000 (GMT) From: "James Bottomley" To: devel@edk2.groups.io Cc: dovmurik@linux.vnet.ibm.com, Dov.Murik1@il.ibm.com, ashish.kalra@amd.com, brijesh.singh@amd.com, tobin@ibm.com, david.kaplan@amd.com, jon.grimm@amd.com, thomas.lendacky@amd.com, jejb@linux.ibm.com, frankeh@us.ibm.com, "Dr . David Alan Gilbert" , Laszlo Ersek , Jordan Justen , Ard Biesheuvel , "Yao, Jiewen" Subject: [PATCH 1/2] OvmfPkg: Change SEV Launch Secret API to be UINT64 for base and size Date: Tue, 15 Dec 2020 17:41:45 -0800 Message-Id: <20201216014146.2229-2-jejb@linux.ibm.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201216014146.2229-1-jejb@linux.ibm.com> References: <20201216014146.2229-1-jejb@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2020-12-15_13:2020-12-15,2020-12-15 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 spamscore=0 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 clxscore=1015 impostorscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012160002 Content-Transfer-Encoding: 8bit Although the SEV secret location must always be below 4GB, the same is not necessarily true for Intel TDX, so change the configuration table to contain a pair of UINT64 parameters instead of UINT32 so that any X64 location can be represented. Signed-off-by: James Bottomley --- This represents an ABI change, so it is essential to get this in before the next stable tag --- OvmfPkg/Include/Guid/SevLaunchSecret.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/Include/Guid/SevLaunchSecret.h b/OvmfPkg/Include/Guid/SevLaunchSecret.h index fa5f3830bc2b..dfd89646651b 100644 --- a/OvmfPkg/Include/Guid/SevLaunchSecret.h +++ b/OvmfPkg/Include/Guid/SevLaunchSecret.h @@ -19,8 +19,8 @@ } typedef struct { - UINT32 Base; - UINT32 Size; + UINT64 Base; + UINT64 Size; } SEV_LAUNCH_SECRET_LOCATION; extern EFI_GUID gSevLaunchSecretGuid; -- 2.26.2