From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.47]) by mx.groups.io with SMTP id smtpd.web11.30868.1674600134446324273 for ; Tue, 24 Jan 2023 14:42:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=V/KwfgcT; 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.243.47, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UZdzqqDlV++jOyuXXO3rXyJHnC71WlNwYXDak/yHI2YUukJqYjKSQoR16ci7o/56BVyhBomBs+paf0p9zplMLqltj8cO+BMxHm8u+usuUao3lsrrwbyd8EtY2zsu5mj1Lz+pMl8+cFvZsxLOQCJYKlsm0bUjmXj9dXxux7nCgu0R482d6UMbVRJ8qD9GdpF6PFmOi2SRYVZ/UB/6J66nBlrVJqScrAg1vh/NGBIT1bXqwgIBRScTgnEx1tElrmXgDiRbVdyOHJPlElCHAV397pTe/utPqQtlPjdveGaFs6jnxOxEIhDkQSzNGKXPUy1+gEam27CizIoG5a6lU3WTvg== 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=FIIDzm8yEzC28bnZNWZrV6+RfxUs3okt/zg7Dx1+8rc=; b=VRScJf/7ixT6VQ0WMsaHX9gfJtMVWoOheFtT21fhZhCfltbLBguQlf8x5S6FHQwTz/YGARVjisxSk/yHKqwYgiF1Mm2F9t2sDrNBxc/f06I9TIx470gvDB+VPMUEFNWjRAHonkisLwJ0HjfEEVQ6t26eKplgsXMgqmhaR1xMR1rF79NccQKaGSOXnz/xkC8NzEcP8HVs20dvTvHGtrB5YCXZojtRuDB1U8NNQ/IUbXj13cOBCGRbuO7de3R9EW/QUqwnDOq65ttbJe68GqzWrelh+6SOKJBSoICmnn7GUk7hVC0SCNXMaDxqYYt3gb/lh/Cqb3GBWa41a23Ew+rRtg== 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=FIIDzm8yEzC28bnZNWZrV6+RfxUs3okt/zg7Dx1+8rc=; b=V/KwfgcTjE76t/d3/A1j/A1OPVpVcs7g7870MXx84QbbFlIulrDsNxMMyL2RM9rl5ENZ58u3oTmfmNZbRgXRXkBlsmZCiP+ZNytJBu7NLP1i+d9nuq6z5mSH1AncbQfJ8oXfrECuSXO7fnD/jCFklAP+35woR86kUzvEK/zdjQA= 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 MN2PR12MB4271.namprd12.prod.outlook.com (2603:10b6:208:1d7::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Tue, 24 Jan 2023 22:42:12 +0000 Received: from DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::8200:4042:8db4:63d7]) by DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::8200:4042:8db4:63d7%3]) with mapi id 15.20.6002.033; Tue, 24 Jan 2023 22:42:12 +0000 Message-ID: Date: Tue, 24 Jan 2023 16:42:09 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [edk2-devel] [PATCH v9 0/4] Add safe unaccepted memory behavior To: devel@edk2.groups.io, kraxel@redhat.com, dave.hansen@intel.com Cc: dionnaglaze@google.com, dave.hansen@linux.intel.com, Jiewen , "Shutemov, Kirill" References: <16581.1673625639418051810@groups.io> <0918b9db-c949-75ce-a24e-f12f03865938@intel.com> <20230116102801.y3l6xn3gdgregn4k@sirius.home.kraxel.org> From: "Lendacky, Thomas" In-Reply-To: <20230116102801.y3l6xn3gdgregn4k@sirius.home.kraxel.org> X-ClientProxiedBy: CH0P221CA0002.NAMP221.PROD.OUTLOOK.COM (2603:10b6:610:11c::10) 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_|MN2PR12MB4271:EE_ X-MS-Office365-Filtering-Correlation-Id: 574f7cf4-6750-40da-0a9c-08dafe5c3b7b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kwweS2/bJSUUpI/AvJmrVpEyMjs4cHQG1exvyN2aRBw8RJysfCwnJFvPMI0QGfWl8CaKdk5ISY7vJNnJJvN4dCciB+Yl6p22Vhb0Ives5vLieTm1PM+ekP/86di2BFtVqfPnrcznag8it4xWnBlZIvAkxw/wR6R9YExPGBh8NdM2EaVMRfCqFX5x1L70ZT7a4eTbmgyH2YuA/RfL0H07jVlj/v88o+nho6hW7Vf5NKdZsC2tegH0dis/jFlI6qv2kmoJandOTnVTCChr4l7u60MTM8UNlyD7enLgpw+sWqoj/9Dw7EOjFcfNK+Z+XTlZgE3NenDaxWaLOmAeZPngi9WGDWkx1jpz5PXIKYS4XZTdESj/dlTlMSXF51Mgm/7iT5zuUcq8nQgl2lweIdM6UO9KnKNhNRIk3s4xCrQ+ENn9Peb5DL5HPcIMMGxytOoFYbYCJNmOcHivAWJJIGvws74bZqkg5VmcOAXKT8LbvZM4JImXUJeYdV+Mop/WL8L6iKjXkVvjNxd8LUZaT2r8NdgmOLszu8PGRby7PFjMrUEEwK4nh6rqFqxrFiLdxyPg87YwRyCyNYRs4rGD5d9Z2F8vxQ3I5lJIIy+3mNPLFAGNNj0Z/N0rnHTCoend2mqzjryE4Q7zFfHbzRQULgkYf5oJvnXA3UTcm9whYvAbSgF4pFwUYdTOvpZfGzt+PTMmohMua5IW+/DgqSYTB0Brj857320kzjcVncFkDWX4hlD8l+ADfexCPY3EZAGPbJtwJisK7t+sqPEf2Ds4c9SmOw/OIaCoQ1IyclSYIreBxHIQL6lF/5CNp7f9PIwYeFCa 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:(13230025)(4636009)(39860400002)(366004)(396003)(376002)(346002)(136003)(451199018)(66899018)(83380400001)(38100700002)(26005)(5660300002)(41300700001)(86362001)(2906002)(4326008)(8936002)(6512007)(6666004)(316002)(6506007)(53546011)(186003)(8676002)(66476007)(66556008)(54906003)(2616005)(478600001)(966005)(6486002)(36756003)(66946007)(31686004)(31696002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MmtCeUovbWxkaGdKUlIyWHRZdVZzTkhQTmMyNFBodnQrSlUvS244WlhnUXlO?= =?utf-8?B?TG9HWXllY0FVUk9LT2QrK0IwUHp3bmc4eTIvOUtnT0tPZmJaS3k5WW9YbjEx?= =?utf-8?B?aXY2cmZLS2VPQ1dJSFYxdUNtczF6a0FpMitCOG9xZkdrVmgxSC9nNzJFT2hZ?= =?utf-8?B?cmhVT2t5dWRmSG5ZdTVTeWVMY2hrZ1crOXBSOXMwWGw5eGVkS3ovbkRrOEtv?= =?utf-8?B?T1N5N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JuNXpDOERVUFBYT3paNFNSU2xMSjF2RmZiUE1LOGV3ZC9K?= =?utf-8?B?LzFxSUFORlAwRzhER1hEaHhWekl2dFRJU1NjTHkxemlNb00vL05EbzNhMHVH?= =?utf-8?Q?ogYBL1EEs4muz7AZTY4VrgHkX?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 574f7cf4-6750-40da-0a9c-08dafe5c3b7b X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5229.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2023 22:42:12.4098 (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: OboHl3GIkPTOCXALKOfR8XNYN//IngpSXPArbCgv525/YfnITlTr1D3FILiEuymtmP+DiuhcNo6GzVa3YifubA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4271 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/16/23 04:28, Gerd Hoffmann via groups.io wrote: > On Fri, Jan 13, 2023 at 10:34:15AM -0800, Dave Hansen wrote: >> On 1/13/23 10:23, Dionna Glaze via groups.io wrote: >>>> However, *NONE* of this points me in the direction of saying that we >>>> should have an OS/firmware protocol to negotiate whether the firmware or >>>> OS does page acceptance other than the existing UEFI memory map bit. >>> We know of distributions that are going to release SEV-SNP support >>> without unaccepted memory support, >> >> Well, I guess that's a bit of a different problem. >> >> I'd love to hear from the distros what they're planning on carrying >> outside of mainline and what their plans are for the kernel side of this >> series. > > Fedora has near zero additional patches, so it pretty much depends on > how mainline merges stuff. If SEV-SNP or TDX or both will land in an > upstream release before support for unaccepted memory lands too you'll Sorry, just saw this... SEV-SNP guest support has already landed upstream and is part of the 5.19 kernel. So without this interface, anyone using a newer OVMF with a 5.19 to whatever kernel just before unaccepted memory finally gets pulled into, would have issues. Thanks, Tom > see that in Fedora kernels, and I guess likewise in most non-enterprise > distros. > > RHEL/CentOS typically requires mainline acceptance too for backports, so > it likewise depends on upstream merging, and additionally rhel release > planning comes into play. In case unaccepted memory support lands later > than TDX it could (depending on timing) very well be that the choices > are to either backport TDX without unaccepted memory support, or move > both TDX support and unaccepted memory support to a later release. > > take care, > Gerd > > > > > >