From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (NAM02-DM3-obe.outbound.protection.outlook.com [40.107.95.88]) by mx.groups.io with SMTP id smtpd.web08.809.1665003758191201505 for ; Wed, 05 Oct 2022 14:02:38 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=UpQzDevP; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.95.88, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g8ucvxQX4L3aKqBqSbyT7gWzNuuNJIS98wqKEHXz25c1XYohjSeMTx7AN4JqmofDAALnp0VAmemdX9ct/ELVzir72TBEHjk29E+MtBwISzqQ0kXxjocvHFvfGSMNXU5W73P/UEW8R3SaCo6TuT9SB26XlQyxbcvUUHjVdRWbJOjrER/aY/yphqpcTsnhqJuH6/fwUFpZQ2w/c1xIZyuSMOaajwKSlQMLEj9hIB6AhFC8QV/6F5UXRI4LAzQ4LAOo+yq1qJwKeth08t/RyQYVR3ep3sWjxgQD+MDxQpE3urQymbTEbK0fce920VMsYIXRiOhdxj0AmBSd8pCnZXwNzA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YPlz6PKKl05aC2m8fIEvCxVKOmGxfcf/AWbFAg7qsMU=; b=SSN18ZuX5fJen1v5JyfSfUwQ6oZY4B+8SoSZftz27l0jdLP/puNhGffnulZaNC1IOYgw7GiatZtKvGbzYBZeWhF8FImdZK9acaLhSYxczVPfGChEkmEA2qBRbDZbA/tCT3uVSQ9+b2cHFimo+SFSZwXH1dcbHlteewEOPDs/FgzZrwR5mPHh5zGOZihmEawZQaX2yNSh39g3AsvLoMyW4spMUUzpXGSt8mOxLB/Gc2tyJza/LwkeLsf4TFETH2EMxOx3g+OzPUAHBh/ftpk/ULNMDauA/4o88H+pFErzStUt4mHZ27FPJpdlWBww3/gn5xg/ydFw91koRW5AHKg5UQ== 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=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YPlz6PKKl05aC2m8fIEvCxVKOmGxfcf/AWbFAg7qsMU=; b=UpQzDevP4zugaOKyOsuIOklkP5aIhpKterDpvZ7HYdmoruoS2yurv76iNqO0alJy9VqzlEE0dytLZ7v2raf2JbVqmTdOgl9x+RnQ6ZKoQLGCdHH4oTDpKNHsl9AzYo2unqlxiTIz9rm4yUVCmoMyPs/25BEVXhuYS3uyHkNCBQk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) by CH2PR12MB4088.namprd12.prod.outlook.com (2603:10b6:610:a5::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.28; Wed, 5 Oct 2022 21:02:36 +0000 Received: from DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::c175:4c:c0d:1396]) by DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::c175:4c:c0d:1396%4]) with mapi id 15.20.5676.033; Wed, 5 Oct 2022 21:02:36 +0000 Message-ID: <73a97e4a-1f82-6516-1658-1cbba0a6463e@amd.com> Date: Wed, 5 Oct 2022 16:02:33 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v7 7/7] OvmfPkg/PlatformPei: SEV-SNP make >=4GB unaccepted To: Dionna Glaze , devel@edk2.groups.io Cc: Ard Biescheuvel , "Min M. Xu" , Gerd Hoffmann , James Bottomley , Jiewen Yao , Erdem Aktas References: <20221005203329.469866-1-dionnaglaze@google.com> <20221005203329.469866-8-dionnaglaze@google.com> From: "Lendacky, Thomas" In-Reply-To: <20221005203329.469866-8-dionnaglaze@google.com> X-ClientProxiedBy: BLAP220CA0025.NAMP220.PROD.OUTLOOK.COM (2603:10b6:208:32c::30) To DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) Return-Path: Thomas.Lendacky@amd.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB5229:EE_|CH2PR12MB4088:EE_ X-MS-Office365-Filtering-Correlation-Id: f2297ed9-1e19-4ddc-dd46-08daa714ee10 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jodhAvl2KU9BA2KTXr9E9vYJrnhUP2SXQal9QSQ8p1xBbPCiSoSTcG5nWf49JZ8MjyuiRXAi6f0w4FbcJmM8VO1j0xMmxqD47Iv3ro0nC3KI+Ku+ySWFJNfg/wFaLmYLz4eHL/Bctjk9d+edFEkOnwlw5Q+8czAkb3NE6C2S4YDe9dyup4kZnXuKUCgteJJlUgC9iHvosalh6S401UiMepvAwpW3fZt3kA8ixy3Gn5dQ/PiNFBfpM5Oyy2/AT6j9AVBUMG9T2BAWVp44hhuvQzNofN3IQBUIjod/OnJtdSf753QY13p2XWgwSBA9Y8z0+MghV6cWz+X3gaYPojHOGCblDrRdL0S0fG2rz+RLdcHWJrEhZVVhOuYm+InzWx2qTUeBOyCLu1xpyQgQJWzEXAnPkRTkDv+f45h4RSdM7HhcLvn6qL3pkPcC6bFLI+j37kbRgJp9cCx8qFZVQ/w4fJmuo49nxMrtBgIa9Q3Me53X7kKkltWfD2kx9O1nKvinKCcfSGsytZbuz2xIeVqI56pJQv07QUIQQkbRTDWMFE4a+AlJYvuo+oEXLlq8AKScyPYJ1rzn+Br02J+H0MkJQaociqzEZWMRLUAKtGZ1l5cySdYMOfDWRNYObrQNCwlxYCzMSWuUZdl12H6e+itU4cIyLZ1wrg56NQl2hwc9Max9L4Xk0mDEs/pXQ0U2BbXDVo/meDEP9xr/5aquqAtla+7H8ZmpqMzwiZxpN5ZqiEj2+btdcDLcx2v1hXpz9tXaHNkom6u+pgosxbYYq6JXLGgAOst4vW8zWrH+bXzTA44= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5229.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(396003)(346002)(136003)(39860400002)(366004)(451199015)(41300700001)(2906002)(4744005)(5660300002)(8936002)(31686004)(6506007)(53546011)(86362001)(478600001)(186003)(66946007)(26005)(66556008)(6512007)(8676002)(4326008)(66476007)(6666004)(2616005)(36756003)(31696002)(6486002)(54906003)(316002)(38100700002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RjUraHpBSWFpcmtwRlpHSVp6M2N6QlNLNkE2VUx4SGdLalRMZGdSeUx5RHEz?= =?utf-8?B?dUkremh2WU1GbFZpc0QyOUdCVmZodHVvbGk0ZDVTQURrNzZtdFpxV3BrSmw2?= =?utf-8?B?cHRQSTFLN2htM0pTT2NFYVFMbk9yRFRRczFSMXZWS0x2WWJIZ05ZQ2dsRTli?= =?utf-8?B?Wm1mN3VpNDNrUU9zSzlJQ25CbGUwMEg4d3F4R3FibEQ0NmE1Ri91ejhRd0FJ?= =?utf-8?B?KzJGUTRYQUROblFBZjdLakNDdlAveVJ6UVFxRWV5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WDlI?= =?utf-8?B?TGg1aFE0eHhtTlIyMktsbUpsaVR6Z2pNcCtKd1U1eDlMRjVFWlhPWHkzM2x3?= =?utf-8?Q?f3nZAjsWBq5lz7pwmfpXwjl3y?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2297ed9-1e19-4ddc-dd46-08daa714ee10 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5229.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2022 21:02:36.2707 (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: FGQD/Rut+D4AbnPjP/5ZMv9wyFZ1vO4uBTtj3zfYdNwF97QO20Fh2a2itG82X/zGUCW1YUvAUNpW5ofLFGaT4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4088 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/5/22 15:33, Dionna Glaze wrote: > Instead of eagerly accepting all memory in PEI, only accept memory under > the 4GB address. This allows a loaded image to use the > ACCEPT_ALL_UNACCEPTED_MEMORY_PROTOCOL to disable the accept behavior and > indicate that it can interpret the memory type accordingly. > > This classification is safe since ExitBootServices will accept and > reclassify the memory as conventional if the disable protocol is not > used. > > Cc: Ard Biescheuvel > Cc: "Min M. Xu" > Cc: Gerd Hoffmann > Cc: James Bottomley > Cc: Tom Lendacky > Cc: Jiewen Yao > Cc: Erdem Aktas > > Signed-off-by: Dionna Glaze Reviewed-by: Tom Lendacky > ---