Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp132811rdb; Sat, 17 Feb 2024 01:52:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXjLQgKjtVA0O3v3rKOUdeY/ZRYIBve04F2HRRS7TBk/W4bSzx7B7GozmukZD59E56p5t9kEjreXN3h3Q/B0L5hgIU9ueNXYBtxQQzfAA== X-Google-Smtp-Source: AGHT+IG02YZIXW7SuySSIB87xI1ScDYxlbwXQTs6xqtq8Xz8KqMfYlTfOnzJVbzAxENBFDqbeNng X-Received: by 2002:a05:6402:68f:b0:564:1c4e:eb58 with SMTP id f15-20020a056402068f00b005641c4eeb58mr976071edy.9.1708163560192; Sat, 17 Feb 2024 01:52:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708163560; cv=pass; d=google.com; s=arc-20160816; b=cmFfF0I7m1B2xz3nXnfwo7CvrQoMSQWQ2pRA+pxSRrOYPSR/QF7G6YVqLt/ThkrroU HggkVKKc6i1gxvxy9Y+bVY2RlNdTaJhUMtq1bkgdNDa++rJQ/VdmDsOtLXeg1PsQ79TM 9YKvg9sWXlGkpphe8V00/i8t1dIHoMv3x3NemNyLKgrcdPIFaMXPcyn/eBvT0lMwjxZ/ YcvFQ3sKLxduzy4zjsMZcD67icAFpf4d0gNukdLw4r2hp0wuSgyTd4ogZ4Gz7As2Gl55 qVEbMGuP1GJIlwgNDbaLSHqRNjUuSBOMowqQXo/w+ylLORlEpVpvmkrGe+qYS46OsNcd Td+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=CEpjrVkbt/D7eyxsGXNC7Cbq+WSkmsxFGkAuvlaUy7g=; fh=6Fl9yftv/xi925mjaBbOIcEkl8A4GMQaiVNn1O2f5Bs=; b=0mJWWi/66YQDDeOEmRh4WF1EcGy7IQZIdWPd8wnmhgtRRt/7s+CtVawFhRaAvlzmgt u1FCTjfTLSZ1jMIu8CZWWSZLezjJ6gmFs9crA9NyGgwzIk5ttjKbYmuTf3q4uWgUrRDe YFMzp7fcre66bYhw3CWsbN3dKaAUHSzk1YXa8wzz77lFoHmhXqtbbVXSaGGgqx5yb/g+ uF0ZOi6l4n+OE+l5CFnwmhtbZHPs9RrdmYZSrAq+8XdcXH5jT+wYUZFR/GFMOZHQFNR1 TjNEjVqo0/gndRqgv0Fr72VC/FExIuD+ZIh2Ez8QZXa1jPT+Mf1gnQB3KHqkSu7iLyS+ QUug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="TEB/13Sm"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-69780-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69780-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ch15-20020a0564021bcf00b00560780137casi751032edb.557.2024.02.17.01.52.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 01:52:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69780-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="TEB/13Sm"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-69780-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69780-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id EE2E41F22239 for ; Sat, 17 Feb 2024 09:52:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 075201EB4D; Sat, 17 Feb 2024 09:52:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TEB/13Sm" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 A2CE01E884 for ; Sat, 17 Feb 2024 09:52:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708163548; cv=none; b=kn9zxLJOSLrW82wzSG4sXDY6XYzJVEQ8SLmYAIC6VBNCES8r476dpnQK47Eg+X3Xjgy3J1ZTmfsOdlZ4Y8Dn/PdGo180bFaCIX4EtBmthVO/1jWH/2IeO4tiPBM2Q27eTKL3TlOKsdg1WiE4/wYpMpsbwaXwO2rsdjh8YiLCoPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708163548; c=relaxed/simple; bh=CEpjrVkbt/D7eyxsGXNC7Cbq+WSkmsxFGkAuvlaUy7g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KDwukiJNBEr56TQWEM+BNUMszumDpGxcCZeUVhVRRlziRWs8sgCEjYyJKgAvoZCHK2DWnGTZQ7ETQCQU5g0c75jjPK6cLb47LPSOw8MtnysT6NVoLlZ3APLd33pIKYe/IqXmTJc76EHun6I5zI7yTpgJe1UX6Gs5RWVf4hpXPrw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=TEB/13Sm; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708163541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CEpjrVkbt/D7eyxsGXNC7Cbq+WSkmsxFGkAuvlaUy7g=; b=TEB/13SmgVhT+Gp8SZN0IVIhQIUBU8cucNADbTyQfvt3HwcexTcPUtZHAP0eMpsW6sE8Z2 77OTjqPxvEMxj8aZgZD0XuKngX6P2tbvcBehXnefGbltXoj8t0GjjdjVKNhcSdh6DOppRO Woh4KIEnrskWm5fjoC/+qM7pJIgPcIs= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-670-F-xPwVJaOsCjjXY39eL22Q-1; Sat, 17 Feb 2024 04:52:19 -0500 X-MC-Unique: F-xPwVJaOsCjjXY39eL22Q-1 Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-298c59f0109so2678956a91.0 for ; Sat, 17 Feb 2024 01:52:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708163538; x=1708768338; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CEpjrVkbt/D7eyxsGXNC7Cbq+WSkmsxFGkAuvlaUy7g=; b=LdAA75wix1EIPcVt7mHU0EUyraNg+QXnRaPt/9Ax/BFeUCJDkSZV2gHJpqvOKOVDCj UlP90ZxxdWVlWMzkIEwEP7dySefEvjoXnKUuVif0bAKD0cxOcec7CjyakxottjLT9jY6 CcaFLbwwS74omDF0Yj4lpuXGJJ9LxODe7dUqhOQqjpcXX111nRUKiv+WRIT9CTywarut yYZAhNHxXI1HSxr8jK1h2H/QUYxzm5zDiFVELOWMCM1wY6nac6PI+af0oxIAJJaJ9Ifs AORDYcvNFn2vXDk0f6wegENpuuNa/irDF4WdDHzTrFPbgrJ++DsZkaF05JTv0hrgC/K+ vW8A== X-Forwarded-Encrypted: i=1; AJvYcCW/uX9cu+330ZRSwLuM7XVqDLXp+h7w7OgqQ/uBhCvD6Ygvnax7XHzC9JU/Aeb/zVWgUx7dKNa9xNHctbqFdVpiPEruGkRTuoBjqlpP X-Gm-Message-State: AOJu0YwpUHj1XBJuNn/QbEzG8ibKgAAvoBqS/eLEyPA8BY4NPB2l2C5x ZurKj1lRS5WhIG638Ia593aznjkBm/dnCaek8lKiyGFJwkzn3MtUC9VBOprLRNTatPnZStnROhD Iwa0ZJ4OsLvBTApy+3L/y0b9D4iGg74sXxZ+F9Ve7AqNK5xObzXXqa+hB02FQ7rg1eEjaSnidI5 DaiI8xSqa7iB2c+0O4kpskRoiwb/oHXDHMwTZc X-Received: by 2002:a17:90a:d482:b0:299:4ae4:7a17 with SMTP id s2-20020a17090ad48200b002994ae47a17mr2981678pju.15.1708163538618; Sat, 17 Feb 2024 01:52:18 -0800 (PST) X-Received: by 2002:a17:90a:d482:b0:299:4ae4:7a17 with SMTP id s2-20020a17090ad48200b002994ae47a17mr2981665pju.15.1708163538304; Sat, 17 Feb 2024 01:52:18 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240215133631.136538-1-max.kellermann@ionos.com> <5a332064-0a26-4bb9-8a3e-c99604d2d919@redhat.com> <87ttm8axrq.ffs@tglx> In-Reply-To: <87ttm8axrq.ffs@tglx> From: Paolo Bonzini Date: Sat, 17 Feb 2024 10:52:05 +0100 Message-ID: Subject: Re: [PATCH] arch/x86/entry_fred: don't set up KVM IRQs if KVM is disabled To: Thomas Gleixner Cc: Xin Li , Sean Christopherson , Max Kellermann , hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, Stephen Rothwell , kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 16, 2024 at 10:45=E2=80=AFPM Thomas Gleixner wrote: > > On Fri, Feb 16 2024 at 07:31, Paolo Bonzini wrote: > > On 2/16/24 03:10, Xin Li wrote: > > > > It is intentional that KVM-related things are compiled out completely > > if !IS_ENABLED(CONFIG_KVM), because then it's also not necessary to > > have > > That's a matter of taste. In both cases _ALL_ KVM related things are > compiled out. > > #ifdeffing out the vector numbers is silly to begin with because these > vector numbers stay assigned to KVM whether KVM is enabled or not. No problem---it seems that I misunderstood or read too much into the usage of CONFIG_HAVE_KVM up to 6.8, so I'm happy to follow whatever FRED support did for thermal vector and the like, and remove the #ifdef for the vector numbers. Paolo