Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1377164rbb; Mon, 26 Feb 2024 07:28:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVONjOze2CBMRXaCWn9V0h7loX0PYYtcOq2QLBIEAKmh+CSo0P5EfcbzKll+vjjIJLH0BynNMezzIIJ5tQ/gLicZHUOJqKCz3Jvuvh8IA== X-Google-Smtp-Source: AGHT+IFWFxWy+6ebbcnaBCmweMFN0qs8dcZcnwtuuuvLz4BGozD3w4BYSzkWpHRF2/KwA8qP+OWs X-Received: by 2002:a05:6a20:9593:b0:1a0:ecf0:640a with SMTP id iu19-20020a056a20959300b001a0ecf0640amr10388759pzb.9.1708961318259; Mon, 26 Feb 2024 07:28:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708961318; cv=pass; d=google.com; s=arc-20160816; b=FkJ0V82aIU+YYqPVpfzdluoW6MHA0SqyAQqBtouPzuCDaLcZr27UBKC4pHqwX29/C2 0yqVm0xRRy06XwfQENeiBZCgnrhKetPncicj22CvHEZgZGEgOXqQ1UY6+rb+a6r5gWY8 JpKaBo7EAgdm7brj83VZ125wjmBod2IW5RM+aA7MsFUuUYYgMIMNRdGo5JvRk6vv49sH 6VOj0s3XgmpWq3Pn3PyX3BU/6tVIWDjmPOBHL7Nala73OtRxAhCRFT3PQiDWDLFlQAt7 EjR+cGoFS5QJFDeg8SYhRtjkleUjgP1T6rEQQSxBKRKqBrCbmCaE6i1tOaddfI6wlTZa elew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=Np64UFrlcA1zUiScJ++rAWu+Ye7rIko/mCcLVb2aFho=; fh=WPbbxOThMM2NQFGD9CBSkXUXWfG3Qa+0hcV47TSR1/k=; b=i1ICC1c8CXFynP/PqQGfQJVL2AIrhsyEEpPh8OTWr20+wzsz6D7XonnY3zfxy0lG1K Tl16yN3hVqpR4tEZOl9mjDDzrdLUgusucbzOjkUPYHHHBpcSKEnmg10zfx2BZCYG7i9S ux5KdLyOCJcYMe1WxHRDYxxDMKk31JXvo9osQi5OksNWJE1wqZw+EEZeYCxetrnT9MNi p8k7ENmjjkb5Sk7s6Q9EvRCpD2DX0ahJQCKhmqalijecxcvGYxJOilrPUWSa4K+WC0b/ NMqiAsAlWp0P7UUpE4yJrvi1RaqBuA6g55NBDiK6zYxwhjAZrLEdDlzwIxnDVKR3UWJh k4bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Uq5KAJLc; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-81763-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81763-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v4-20020a632f04000000b005dc0e9aefeasi3873259pgv.809.2024.02.26.07.28.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 07:28:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81763-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Uq5KAJLc; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-81763-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81763-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 05D50294DC8 for ; Mon, 26 Feb 2024 15:16:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98FAC12C547; Mon, 26 Feb 2024 15:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Uq5KAJLc"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gTs37Py3" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 35B5A1E525; Mon, 26 Feb 2024 15:10:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708960208; cv=none; b=IeVr1rv7Eb9xCG8fYqQk76HIBuuLrOHi8AZEFJ/dkh31VWG4/hWFKQiA4v1V8ZA2kcnAVKOGekWQUUcTn86eq/IAK0NN1SFT//kfmBckKqC5J8TxopwkKlwwYkFaCYeOVPVvNGbVCg7AKHcVp1OfR3A3vtR77nUYuPgahGd5V1w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708960208; c=relaxed/simple; bh=C0ZwnQmP/kh2aUrDS6fDXoRaWozBz0fD5wPpQnqCPKI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=nt+mIxgzKkfdU93HWkHY50AIZUTzlVs2TVjuuTnBP/OktnfSJ62NjYFEFEiNfHCAVvgsFW9+g/eMtuO+2GTrH/V6ItGhL6DNd18qh8CGAs5R6OipE7V8mUmDBGut0yOL0w8pRNSKTa04ceBWnJB1op2fyomS/LbfR97osl9r6n4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Uq5KAJLc; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gTs37Py3; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708960205; 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: in-reply-to:in-reply-to:references:references; bh=Np64UFrlcA1zUiScJ++rAWu+Ye7rIko/mCcLVb2aFho=; b=Uq5KAJLckHXqr97Gny1FQ4D/YJkTN1iuUfrLuGuAaoF7pw2hpW+cwp9xfz3srpl79PoTKq UkXU3luWYY+jHOlizNbF8zohLwD6WBXjkVZ3l8Bc4uqa0Zj9ygQPxCCANvGFvP4+526nMX X4/hsvvTFU8V78XgCBeoLQ1XN56BrESxLYyRMxJH0aN0VVfePsZfOlEy8CvAxb8byRtXQ/ vIIwFxM8/GoLG+3xx5sHKNdtOp6Lqtrxg2alvTEIQo6P3FeEGyIwFGvOxOqwwp0mER01br kqtDd7x90rlR8a9h6AIbaC4zPfPNm76KtGyUTP9N7o3AvL1n/AsSfiOx/X8OgA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708960205; 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: in-reply-to:in-reply-to:references:references; bh=Np64UFrlcA1zUiScJ++rAWu+Ye7rIko/mCcLVb2aFho=; b=gTs37Py37j7g18u29ubSzzjjG8e+Ddfm6z8kHtO8x4tD+MUcC2HMtlcgHzmWfe6s+ci0CD hf+bQyc+7HwBpFBQ== To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: x86@kernel.org, Stephen Rothwell , Xin Li Subject: Re: [PATCH] x86: irq: unconditionally define KVM interrupt vectors In-Reply-To: <20240223102229.627664-1-pbonzini@redhat.com> References: <20240223102229.627664-1-pbonzini@redhat.com> Date: Mon, 26 Feb 2024 16:10:05 +0100 Message-ID: <87zfvn9s8i.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, Feb 23 2024 at 05:22, Paolo Bonzini wrote: > Unlike arch/x86/kernel/idt.c, FRED support chose to remove the #ifdefs > from the .c files and concentrate them in the headers, where unused > handlers are #define'd to NULL. > > However, the constants for KVM's 3 posted interrupt vectors are still > defined conditionally in irq_vectors.h. In the tree that FRED support was > developed on, this is innocuous because CONFIG_HAVE_KVM was effectively > always set. With the cleanups that recently went into the KVM tree to > remove CONFIG_HAVE_KVM, the conditional became IS_ENABLED(CONFIG_KVM). > This causes a linux-next compilation failure in FRED code, when > CONFIG_KVM=n. > > In preparation for the merging of FRED in Linux 6.9, define the interrupt > vector numbers unconditionally. > > Cc: x86@kernel.org > Reported-by: Stephen Rothwell > Suggested-by: Xin Li (Intel) > Suggested-by: Thomas Gleixner > Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Gleixner