From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=Vb/zhT6I; spf=none, err=SPF record not found (domain: amd.com, ip: , mailfrom: thomas.lendacky@amd.com) Received: from NAM05-DM3-obe.outbound.protection.outlook.com (NAM05-DM3-obe.outbound.protection.outlook.com []) by groups.io with SMTP; Thu, 19 Sep 2019 12:53:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HDBBbuCrKNSLIssNAOvVccJmMU6VqNFWRgAr9qaRPe0RYxXevzlan92/hv8iO/kPnZU1gsis7hTkXCZh8iTAz1dydldBnd7LeejblTuNgWdfz1GTO1UWR8qGiauu34kTwm6ZJkFnxDDHVSpwqZvNFFtiGQvWFSoBqSteXc0mRfmm0ZF0dAGhiNDat+ONQe8EJgwVEtnFDoX4Vmf9AhdM1bHiMOnWFr+4L92SmeuJulfZaQVq3y5AuB4VHTVtVMm7UR5eYKexYjMEo10gbZrueOYvbr45gPGrVxZYYDDdYgAEEGZNxA5zTsgbJtlKb+E7D6Zs6qo3oI2jiJCQ/c7+xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UQY7TP2AK37rIjh/mOxsziNXkO8cG3uPdmCkWgWgjoM=; b=BJzSKIQiKx9HP4NtxeIiDHC8vtz0sImE8xixAmvDRZB6ag1K9yYSsxNvWJJ/v2ovNJO/8mR9+K29Hg5VOJPtKM7WCjq/PO7P4P+S6hhL/AbGbvvqPwb5dsPpY6nJd3pZ/Lpz0xM9/dSoyiKox3Y+MePzW+emMeo7yxz+JwU7U56hjCWgapejHxp1PWpF7U/Ud0SOp9KarimzD6gdxChgcN3juV9aHyCIZotC1DQExH67s5gOPX1+9OpRxrshkMR81hmDw6HcVowNzIhrohdM6nckmdpQWUOR9r5OCNuT1+MQvHgEap2DOCTUrrJ6gFZKHKCVci6Iy+3MEU3Z3xVvLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UQY7TP2AK37rIjh/mOxsziNXkO8cG3uPdmCkWgWgjoM=; b=Vb/zhT6IwNbNniHHhgzriin7RCV8evdjOJDzA66WuWMhyOD1jVO3jFr2HZbJRKF/EfwKAq2o+Fg+gwJu/gPGZFUvb7FPSmP4m301IE+UwO1DAZ5Wtqtd3ZAkpDr01HQnoulMVyh3MrMOBaw+UizQIPJm3PNGoFbMPajOGdOsNO4= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB3372.namprd12.prod.outlook.com (20.178.198.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.22; Thu, 19 Sep 2019 19:53:32 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::400e:f0c3:7ca:2fcc]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::400e:f0c3:7ca:2fcc%6]) with mapi id 15.20.2284.009; Thu, 19 Sep 2019 19:53:32 +0000 From: "Lendacky, Thomas" To: "devel@edk2.groups.io" CC: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Michael D Kinney , Liming Gao , Eric Dong , Ray Ni , "Singh, Brijesh" , Jian J Wang , Hao A Wu , Dandan Bi Subject: [RFC PATCH v2 35/44] MdeModulePkg: Reserve a 16-bit protected mode code segment descriptor Thread-Topic: [RFC PATCH v2 35/44] MdeModulePkg: Reserve a 16-bit protected mode code segment descriptor Thread-Index: AQHVbyPZsVmbXlP6P0KLPv8MmB931w== Date: Thu, 19 Sep 2019 19:53:04 +0000 Message-ID: <5bfd380278d8098f23b39c018e76c551af848ef2.1568922729.git.thomas.lendacky@amd.com> References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: SN4PR0501CA0146.namprd05.prod.outlook.com (2603:10b6:803:2c::24) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:182::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.78.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9a673f70-cf4a-4d55-6bfe-08d73d3afbcb x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB3372; x-ms-traffictypediagnostic: DM6PR12MB3372: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-forefront-prvs: 016572D96D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(39860400002)(376002)(366004)(136003)(346002)(199004)(189003)(386003)(71200400001)(52116002)(14444005)(86362001)(14454004)(256004)(76176011)(99286004)(966005)(66446008)(64756008)(478600001)(19627235002)(66556008)(6666004)(118296001)(66946007)(66476007)(71190400001)(66066001)(5660300002)(6306002)(6512007)(5640700003)(476003)(2616005)(36756003)(11346002)(446003)(8676002)(6506007)(8936002)(1730700003)(81166006)(81156014)(2501003)(26005)(186003)(102836004)(50226002)(54906003)(486006)(6436002)(6486002)(2351001)(316002)(6116002)(3846002)(7736002)(305945005)(25786009)(2906002)(6916009)(7416002)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3372;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: IgQ9S8JDfzfTzPfFLVLKAqfADbMYzkVkBF+WBzKZUTDzKv2J7jEcRPqx2iZT32urNAIcqr1OLd7yeX53xhFf7y4Jgh9uHKdaEOLgqdWvD9+qBFN5atywibZhpvfwahKg0n5qfKRpfc/0o2qnLngqco1FCLiIIQHfpxANN3h6WWEtyT7W+YHKUHRSV6nsg+QSPoJEmnCIGkVxX46lLLdue86FZ1UOKvR0dCKY78NHuZYYC5I4lIO/bEymAIIyV+BbfFk/TyfeZFNpLc9sls+y5QPjI/tSDXU46ghQhEzcrB3Psjfs+Z2AuGzTI1ctqveepJ5fdzCRP6B16tbUMkhn8ymoAEnjnOl72KFz33FlOAw0mS7lf+VksiIUqMpeCLGoYl9mcf5uXb7kpbPpjCSHKZjk3FW7by7fkh3dDoQoG3Y= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a673f70-cf4a-4d55-6bfe-08d73d3afbcb X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2019 19:53:04.0253 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gNeplsynD/QjxSZrj9qapxC+j4NA7sRd2EfKawSLngIVm2qZfw8OU+9MuymEpwWAkX8cyEKjo9mhhV9S5/WZfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3372 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable From: Tom Lendacky BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2198 SEV-ES guest AP boot support needs to transition from 64-bit long mode into 16-bit real mode. This will require a 16-bit code segment descriptor. Reserve one of the spare segment descriptors (0x28) for this purpose. Cc: Jian J Wang Cc: Hao A Wu Cc: Dandan Bi Cc: Liming Gao Signed-off-by: Tom Lendacky --- MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c b/MdeModulePkg= /Core/DxeIplPeim/Ia32/DxeLoadFunc.c index 630a3503f6ba..b9af22bede61 100644 --- a/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c +++ b/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c @@ -33,7 +33,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED IA32_GDT gGdtEntries[] =3D = { /* 0x10 */ {{0xffff, 0, 0, 0xf, 1, 0, 1, 0xf, 0, 0, 1, 1, 0}}, = //linear code segment descriptor /* 0x18 */ {{0xffff, 0, 0, 0x3, 1, 0, 1, 0xf, 0, 0, 1, 1, 0}}, = //system data segment descriptor /* 0x20 */ {{0xffff, 0, 0, 0xa, 1, 0, 1, 0xf, 0, 0, 1, 1, 0}}, = //system code segment descriptor -/* 0x28 */ {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, = //spare segment descriptor +/* 0x28 */ {{0xffff, 0, 0, 0xa, 1, 0, 1, 0xf, 0, 0, 0, 1, 0}}, = //system code16 segment descriptor /* 0x30 */ {{0xffff, 0, 0, 0x2, 1, 0, 1, 0xf, 0, 0, 1, 1, 0}}, = //system data segment descriptor /* 0x38 */ {{0xffff, 0, 0, 0xa, 1, 0, 1, 0xf, 0, 1, 0, 1, 0}}, = //system code segment descriptor /* 0x40 */ {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, = //spare segment descriptor --=20 2.17.1