Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp17669rdh; Mon, 30 Oct 2023 12:20:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/9UDdR72OVgifTINAQPer1+l8lWBJmo3Y60MAP2H5igljCW92B8CtTHFWE/w9fVwrv4TD X-Received: by 2002:a05:6a21:1a3:b0:17b:1696:e5ea with SMTP id le35-20020a056a2101a300b0017b1696e5eamr11050627pzb.14.1698693605017; Mon, 30 Oct 2023 12:20:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698693605; cv=pass; d=google.com; s=arc-20160816; b=wd1sJVHq4pyLIQuQJRHhIQmcdH1OmpzPy8ImAmbguJiFfMaI8SJLdFuRy+p3lxUDu9 YK/wvSOsnvEzyyyA01Zs8qVjU5vIcVN41gUH5tct5q7jiMFOg+oaX/HHl9mKY2XermJv 6qNXNst+ArhvOvuuSHCmtMMC8iKqUI3pXXFMrrs6Y+nBUILAAlb/Cyao6J7jAGp4Hct5 6EyqW9oFbXrEE0ZhFd6wJelI//0f3sON9cKm+HbQoIMYmeWXC+yGeBdGHLPor0dm60JM v4Y+tJ7i+oCfLIGOsrBLjB0NPbRyGQgprF6CT32me0DrEQfivYf8KZJSPqQi1BA2hGj2 KBBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=HC0F4DX4OI70JALnKe3QiCRnFkorcl4LlbGk8ulOwZU=; fh=NU02LwloB+Fd/cfVcIBoNjJNLtnlo+NEvuRhjd90JOY=; b=zetKAon3CDSBiOeD1lTNMyUcar57iE7PTqO/ri37FeIyFNmzM7m5qHHBUmu/kmlXwp 5Q8m9PHyaQnpBXdaf7ohCZzDoBxRj1lO3UT8HZkWibiloJAcZouTtYjZ57Bmzk8dy/Gv Cunm3+eCJHdhbaQKDtELT2f8j5WgPSnFBEOFI5bEMn07UNvg0CTnbkI47BkeoqjKsWjz 4gs7J+ZXVZClHiXbW6Y7A+rbS9vKWjUJf/ufAmQY+/vxRNRWQ4YnyaRPJrt5Eb6XQeR7 LRIVJKIx6IdnNt8A9BBjIoAbwyru0TDDGBqqQThicePXNpSqz9TUOL5KmECSuc5quiFa 5zFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Z9QeI7m5; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bq8-20020a056a02044800b005898b0b851asi5381105pgb.530.2023.10.30.12.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 12:20:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Z9QeI7m5; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 45D718051AA6; Mon, 30 Oct 2023 12:20:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbjJ3TTs (ORCPT + 99 others); Mon, 30 Oct 2023 15:19:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbjJ3TTr (ORCPT ); Mon, 30 Oct 2023 15:19:47 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2058.outbound.protection.outlook.com [40.107.95.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4744AA9; Mon, 30 Oct 2023 12:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lYYcSIlIWBT23AGag1Du0kb9VzaKJ2ArKLZxGlPA9nkp34/9Sm/9JvBSHS96D0jCqdoCQawiDxsGnfzB7nltIEUjYLgddRtM9hCcJ+j9VPs425g9CpcKD/R3caAEu6hWcGOjjEcyyJ0kiXxWwDaetsp+uYwuOGzKX5fkePFt6Bsne9WleGEGFiav3YTCnni3noFs4KxUhEvStZxJfZ5KRA90aPKgxoKp/YpDaN6hGz4/jxQpTtqD8T5s3srA1y9aPANflUsbzqTHrg4XHEHUp5LLlSQB5OSm1cZJ91hQ0qrC0DpslX685d4Mn1SAVKreE1kfYUohLSieimlmhRCZ2w== 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=HC0F4DX4OI70JALnKe3QiCRnFkorcl4LlbGk8ulOwZU=; b=G4wXPP54X5x0/cAh5HVqRGoWpOZRa+A3fy9Sw5HlNZx5g1jgGWWQMCKecAt2U/Xo0r8OFxRBIHl4ADRCxDMFHiTMGOwKMJguM9QVb304eegosek0/GKqeQnQhRsp+0caxDSt3d7Iq5erG8mGHxrF0T6zhQycDkElQmQfXEmvmrenZrthSDYQ4GPlh/hE6o3Q3yEvkpeDGOeiqTkSnumwassDXQfTLZHtkBTl3vtehwqS4AelVePb/n5zhmNOnczFDRj8SgpTkD+FhDm3BgY1WWlvpNR7DduW2kLv9xg4QGwFEPenM7WaF4xKEGQmdeOPi+H3ghTMahh0PydT+7yJ0g== 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=HC0F4DX4OI70JALnKe3QiCRnFkorcl4LlbGk8ulOwZU=; b=Z9QeI7m5OuM4MCJYzHh3g7m//xQ7+GAR3j/OPfUcE7v5+aK7s+BEpN+eodTdoQxuJd7S7kwOJt04blcHzvkR5WBoui55Fjo25MF93Nvbmb07DlGMWtARazmlpL9YC28aYW8MiH7oMlwbPPp54m7T9Jl067RFVGk4xGsw9Cy2rlI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) by SJ2PR12MB7866.namprd12.prod.outlook.com (2603:10b6:a03:4cc::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.27; Mon, 30 Oct 2023 19:19:41 +0000 Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::e16e:d7f1:94ad:3021]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::e16e:d7f1:94ad:3021%7]) with mapi id 15.20.6933.027; Mon, 30 Oct 2023 19:19:41 +0000 Message-ID: Date: Mon, 30 Oct 2023 14:19:38 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v5 08/14] x86/mm: Add generic guest initialization hook Content-Language: en-US To: Nikunj A Dadhania , linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org Cc: bp@alien8.de, mingo@redhat.com, tglx@linutronix.de, dave.hansen@linux.intel.com, dionnaglaze@google.com, pgonda@google.com, seanjc@google.com, pbonzini@redhat.com References: <20231030063652.68675-1-nikunj@amd.com> <20231030063652.68675-9-nikunj@amd.com> From: Tom Lendacky In-Reply-To: <20231030063652.68675-9-nikunj@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA0PR13CA0017.namprd13.prod.outlook.com (2603:10b6:806:130::22) To BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5732:EE_|SJ2PR12MB7866:EE_ X-MS-Office365-Filtering-Correlation-Id: d883cb7f-47f7-4938-118f-08dbd97d2acd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: apYxcWE2k1jfnguX4WyUApV2ZKPziiz6q8B+20IjiZQtCzCYX7ZcUeYf/BZ1CrP9If389yPEOkidoY41rZBIbUT89Rm7iSL2udUTnBlZXZ16fMK73J80JNCD85jcmLHHRHUMysACO4XA+khcSenyFcgcPRZSDP/B1EDg35vTk+1VUPTKQIehL3IQ2em3I/yd8gJO++sYJuKtAb566KOBXkosKloGPROst+JSDyjFszAmCndxp3L1xf46/6McTRHX36CDsoF3a2JqWGw6UGW5ZIcI4ZTAAOifPjKvVzL0TbMj0by8QaEh1ot47SRVdDTU/Zf0fm+2YlkGHxjpWZEmmu4PwhgpCASxp6DoK1fZGpoj8XS7o+BG7Ud9QOkkEdN4I1WS4Abf0Y3ivq8m/JLI1diwLnXNsDJo1VEc7ms6GdNdUvK+2JTEjgXCTF56nhdCasUBd3UTwXUR3QGOxBUnUWksxDn8kxDfn8Crhr3zw7vNEA/KfBQH/hAcv850maE7WssMLRD+JWveNn0B6Dmml9quwRI7HEwNt7yUb+mKhCxJfa+Q8e/7LbbGWwShinlnAMTrrviVAQCllE9/GwIq6ds+acnHfoveIoCb5xStxnkQR0ki1HWPoOzlIWRap9hsbGQRkJWcf8yPrylYiz40D75s8PFpBoFCyBT9ItWFBm8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5732.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(366004)(376002)(396003)(39860400002)(346002)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(31686004)(6512007)(53546011)(6666004)(83380400001)(6486002)(478600001)(6506007)(41300700001)(86362001)(31696002)(36756003)(38100700002)(7416002)(66476007)(66556008)(66946007)(26005)(2616005)(2906002)(5660300002)(4326008)(8676002)(8936002)(316002)(41533002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ckp4WEZVck12NEhtY3JXaU8rS1dpTGJudmpwOUdjWHRvQys0dXI5TnZ3eUFX?= =?utf-8?B?QkZsallrWWpHRlpveU5Cb1dsL1A5dXdiV3VxdFNnZHpYQ0pTcktUR2dCNmFD?= =?utf-8?B?Njd6OGgyaG0wVGlFNi9yWlp1YmIwTm13TUdSS0VDUWw5dWhrcGhlc3hUMEVY?= =?utf-8?B?eCtEd2RxQnZ2RVF5TTJqNmUzSFh2cm5Xc2tkTkFNdmI4MUpIS2FtMUxhU1Ey?= =?utf-8?B?ZUFnbWlSRVhEbGFidDlyWTlnNE45ZmdTYmdVMVVtejlwS0liL25GVS9HeU1r?= =?utf-8?B?Yml5dWxN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k?= =?utf-8?Q?BwTmhJd5bqgePe6jPfClgTdAq?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d883cb7f-47f7-4938-118f-08dbd97d2acd X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2023 19:19:41.6782 (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: KL3IuljxZZiWtpX5jlDpGu1EhLK9cFsSla/wPUqh5rjtBcGcu/+wstVWq+euCEYvxO3ci+Mh2D2VyTmlxgA90w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB7866 X-Spam-Status: No, score=-5.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 30 Oct 2023 12:20:02 -0700 (PDT) On 10/30/23 01:36, Nikunj A Dadhania wrote: > Add generic enc_init guest hook for performing any type of > initialization that is vendor specific. I think this commit message should be expanded on a bit... like when it is intended to be called, etc. Thanks, Tom > > Signed-off-by: Nikunj A Dadhania > --- > arch/x86/include/asm/x86_init.h | 2 ++ > arch/x86/kernel/x86_init.c | 2 ++ > arch/x86/mm/mem_encrypt.c | 3 +++ > 3 files changed, 7 insertions(+) > > diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h > index 5240d88db52a..6a08dcd1f3c4 100644 > --- a/arch/x86/include/asm/x86_init.h > +++ b/arch/x86/include/asm/x86_init.h > @@ -148,12 +148,14 @@ struct x86_init_acpi { > * @enc_status_change_finish Notify HV after the encryption status of a range is changed > * @enc_tlb_flush_required Returns true if a TLB flush is needed before changing page encryption status > * @enc_cache_flush_required Returns true if a cache flush is needed before changing page encryption status > + * @enc_init Prepare and initialize encryption features > */ > struct x86_guest { > bool (*enc_status_change_prepare)(unsigned long vaddr, int npages, bool enc); > bool (*enc_status_change_finish)(unsigned long vaddr, int npages, bool enc); > bool (*enc_tlb_flush_required)(bool enc); > bool (*enc_cache_flush_required)(void); > + void (*enc_init)(void); > }; > > /** > diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c > index a37ebd3b4773..a07985a96ca5 100644 > --- a/arch/x86/kernel/x86_init.c > +++ b/arch/x86/kernel/x86_init.c > @@ -136,6 +136,7 @@ static bool enc_status_change_finish_noop(unsigned long vaddr, int npages, bool > static bool enc_tlb_flush_required_noop(bool enc) { return false; } > static bool enc_cache_flush_required_noop(void) { return false; } > static bool is_private_mmio_noop(u64 addr) {return false; } > +static void enc_init_noop(void) { } > > struct x86_platform_ops x86_platform __ro_after_init = { > .calibrate_cpu = native_calibrate_cpu_early, > @@ -158,6 +159,7 @@ struct x86_platform_ops x86_platform __ro_after_init = { > .enc_status_change_finish = enc_status_change_finish_noop, > .enc_tlb_flush_required = enc_tlb_flush_required_noop, > .enc_cache_flush_required = enc_cache_flush_required_noop, > + .enc_init = enc_init_noop, > }, > }; > > diff --git a/arch/x86/mm/mem_encrypt.c b/arch/x86/mm/mem_encrypt.c > index 9f27e14e185f..01abecc9a774 100644 > --- a/arch/x86/mm/mem_encrypt.c > +++ b/arch/x86/mm/mem_encrypt.c > @@ -84,5 +84,8 @@ void __init mem_encrypt_init(void) > /* Call into SWIOTLB to update the SWIOTLB DMA buffers */ > swiotlb_update_mem_attributes(); > > + if (x86_platform.guest.enc_init) > + x86_platform.guest.enc_init(); > + > print_mem_encrypt_feature_info(); > }