From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 712ADC433E2 for ; Tue, 1 Sep 2020 12:25:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 53C9A20767 for ; Tue, 1 Sep 2020 12:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727892AbgIAMYy (ORCPT ); Tue, 1 Sep 2020 08:24:54 -0400 Received: from 8bytes.org ([81.169.241.247]:40262 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728036AbgIAMNy (ORCPT ); Tue, 1 Sep 2020 08:13:54 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id AB1D6391; Tue, 1 Sep 2020 14:13:52 +0200 (CEST) Date: Tue, 1 Sep 2020 14:13:51 +0200 From: Joerg Roedel To: Borislav Petkov Cc: x86@kernel.org, Joerg Roedel , hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Sean Christopherson , Martin Radev , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v6 36/76] x86/head/64: Load IDT earlier Message-ID: <20200901121351.GB22385@8bytes.org> References: <20200824085511.7553-1-joro@8bytes.org> <20200824085511.7553-37-joro@8bytes.org> <20200829102405.GA29091@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200829102405.GA29091@zn.tnic> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 29, 2020 at 12:24:05PM +0200, Borislav Petkov wrote: > On Mon, Aug 24, 2020 at 10:54:31AM +0200, Joerg Roedel wrote: > > @@ -385,3 +386,25 @@ void __init alloc_intr_gate(unsigned int n, const void *addr) > > if (!WARN_ON(test_and_set_bit(n, system_vectors))) > > set_intr_gate(n, addr); > > } > > + > > +void __init early_idt_setup_early_handler(unsigned long physaddr) > > I wonder if you could drop one of the "early"es: > > idt_setup_early_handler() > > for example looks ok to me. Or > > early_setup_idt_handler() > > if you wanna have "early" as prefix... Yeah, makes sense. I settled with the second version. Thanks, Joerg