Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1608803lqp; Sat, 23 Mar 2024 01:15:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVChHdhNq2tzkTNoxFQuqUv/K1zdtP1XC+AHuDr3GMF0eSCbNDAuWlwFxqlUN42FciTGSjwuXUEqYDe4+F/v7vJIHyQMX/IUho15LXSwA== X-Google-Smtp-Source: AGHT+IE66KKbspI3biyoUliMPP8rxc5/07C2gJxeQFLg43MoO59lFRgkOs/VvbE8tqw7ZPRcK9Nw X-Received: by 2002:a05:6808:38c5:b0:3c3:756c:f587 with SMTP id el5-20020a05680838c500b003c3756cf587mr2808749oib.45.1711181751910; Sat, 23 Mar 2024 01:15:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711181751; cv=pass; d=google.com; s=arc-20160816; b=jZ2QTAE8pS+kKGaBCPuct80hgIAyKI3VEjI20Sw/v2XRVswhyK8igRO8CIH8pXllBM LHfb2EGllFvSVjKWM5snO07NNeA/1V9W56cDFZ07Xgqsp0qw/LhQjGsX7vAZXBDpeORH 5N02//5u8QJQB7xt354Qh2CTw2EXEOUvq0XFsK6hjc+8h7CVQQ6S1V6ZscHBVU7kfrh7 AyIUaYLhbbT/8nOENjRtKjQPVi+38xaqyovQf/9oENm+0YBtQK242/SRPQrrCm7bBNwr A9wRCysE/hx3t5N/V/OyJ1llCVaUQac/zZ2XTwiEyXm65QmUOTj9S+Ifnsz5oEuAP40N jcfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=HK7GTT5/2OwX9eM7/LlYUTpwpen5gbho6wiSE2jOPMY=; fh=UxV87AsXP+NG3jM0Yn7Du8wuvg82MqXpU9PCaVgyoUU=; b=yWNkSsJx62AtNBwFz75MLvDPZUJoOl2MYxbYuy8y3z3bVUhUAiOPRgOGD+Pq99eSuf 9qGhL4vH9VO2d+9L4r4KR0T849flreR2dAG6PahpnCpJXVz9PWQcI4LGFWIs8lCZmyKP MZ4UwM8PrfaeKHYoUjZ3RAUWVjDLF1T/pcE4ICmdyvlLxVILd1nctFJWr2dYLtoeSprM yBjlS9SauzZWrFFCVwX9uWW7fL1lo/rTHeXf2A04ZqqpFGoC/9uXm/4V0yXDHjswNDD7 n6fnLtw+7kyHZ8XFMtsDqpawW+mJAMcNJ/d90v4ORJsQ2w/Keh1qyEA1cIomX5aqY3L7 G71g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-112257-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112257-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u17-20020a62ed11000000b006e558a20e88si1158940pfh.208.2024.03.23.01.15.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 01:15:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112257-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-112257-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112257-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7CCAAB21985 for ; Sat, 23 Mar 2024 08:15:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62A3FDDC1; Sat, 23 Mar 2024 08:15:35 +0000 (UTC) Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88F65D2E5; Sat, 23 Mar 2024 08:15:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711181734; cv=none; b=eZEcl0oxJPV1NUTZqMSjBJNxc3SybwNltMwYxkzehVVdvL3+yiLkq0gSiySlUGjARYxDJOSB1Liv0pQF+xnfv//rzgJJ7CjMcgeZhNbmqhS8rpXWsg6fuIGPXFXUdkVsh/UPo9Ek/Pq7dlrJ1dYqeiPaB28Vl4Brvvm9suLXGx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711181734; c=relaxed/simple; bh=Ny2z/INP7b+0ECBQtSpvYw7XT10zbyoaHaX6trX1qh0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uyCt7JigI6jP5KyQV/vQQPn0M74xtHr/qxcEBMJTWFSJ5HGeNr+t4kzZTNrxDcsdH7Y4E4JCZ7S03E4t+0rPEFvyKXKcwWi/xDDtd8ruysV1TzBqYT563nUbUnYkRYNT7s8dHlYy9bXjn59GPtHzMSN2XDibUdAYdRVUeLuYMFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [192.168.0.224] (unknown [95.90.237.163]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id D0C7361E5FE36; Sat, 23 Mar 2024 09:14:53 +0100 (CET) Message-ID: Date: Sat, 23 Mar 2024 09:14:51 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] KVM: VMX: make vmx_init a late init call to get to init process faster To: Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Cc: Colin Ian King , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240323080541.10047-2-pmenzel@molgen.mpg.de> Content-Language: en-US From: Paul Menzel In-Reply-To: <20240323080541.10047-2-pmenzel@molgen.mpg.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit [CC: Update Colin’s address.] Am 23.03.24 um 09:05 schrieb Paul Menzel: > From: Colin Ian King > > Making vmx_init a late initcall improves QEMU kernel boot times to > get to the init process. Average of 100 boots, QEMU boot average > reduced from 0.776 seconds to 0.622 seconds (~19.8% faster) on > Alder Lake i9-12900 and ~0.5% faster for non-QEMU UEFI boots. > > Signed-off-by: Colin Ian King > [Take patch > https://github.com/clearlinux-pkgs/linux/commit/797db35496031b19ba37b1639ac5fa5db9159a06 > and fix spelling of Alder Lake.] > Signed-off-by: Paul Menzel > --- > arch/x86/kvm/vmx/vmx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c > index c37a89eda90f..0a9f4b20fbda 100644 > --- a/arch/x86/kvm/vmx/vmx.c > +++ b/arch/x86/kvm/vmx/vmx.c > @@ -8783,4 +8783,4 @@ static int __init vmx_init(void) > kvm_x86_vendor_exit(); > return r; > } > -module_init(vmx_init); > +late_initcall(vmx_init)