Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp457160rdb; Thu, 15 Feb 2024 05:37:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXJJa/xxiFrWQzuPup5RJgBfVShQ7R+8NJq5q4s61Db5tTh4DZW2eg+bATxLbUb05fEQza7xayYqbw8wu12eEwYogzjqNXZzCyZgFlH3g== X-Google-Smtp-Source: AGHT+IHIdQzYkRVSBXwYmIEGkI5O79b/3SYY5Hp2lMb2oS65dKg+LbgzCgZD038KwUNiOaJqZib8 X-Received: by 2002:a17:906:e088:b0:a38:9923:46da with SMTP id gh8-20020a170906e08800b00a38992346damr1466733ejb.20.1708004240755; Thu, 15 Feb 2024 05:37:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708004240; cv=pass; d=google.com; s=arc-20160816; b=evutVtZfoBfdB8UzqnsWkdmHSem7nQT/6zvbOEFWPrBNvCq/K/Y1vtVdQlp5yyYL7d PbnSg4E3qwzFv9TmdYUMFHCpcMdBQf8BMmXZQvlOubx8zxqnve0Z8zu7X3+ceg4su+d8 USHX0xVRhaS+8ytz1SHB2AObCUoq5ATVV4+etDKkYo/mFlU27uKwhOI7+yp2IU7yf0Nd NZGF7NpJcmB60sz3QT2YZOmzB1IdBQLzb06OwD0CXOZ7spgTpIdf1Qi7IArmy134kbcV vtNFZXtiuYJ9IatLkpPYqUlzisJSeFXTZd/5DeIB3WLXLqYWQuvvPYK9e5MP6NMqvPQ3 SxhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=kSAPglM2wZ+xLjfRrMYJKrvwCFVOGwCTlmuHoEDAY3I=; fh=LWSZ/wbcu4BsajS6Bk00WGdNqMG0ZZSL/fTMVNIEjOg=; b=Lr5nA91910BBYVoAXD8iH1AYchK8QlwjHLyAxyQQNQuqyhEdLq1ce/FYhL0TXziRrN sxnF2lMeMf7M6wiLoGXajbaBZ8MJgr8JBPC+Ui0bX8vMU2ziPSZ+JlBXj9MzxyRXG/8T V0OzsaLy/R1qtxc4zAPnX5QMOmaoC7jdC6m/fX8MtZPUYggrcN8cnuvxi/gn/Z+CCGH6 U2KfHcybroTp3ZhbGfBVxIkoJtENZGFMub1GC0Dt6Wuvqy7I3hMUmDBrAtQPJzAcNx5k E0+I6mLs0EbNSUu5JvnR/jmG9/b/Z/bpfYjdUdKKsUWwmYA16LD2Xk+yOvWo5pUNklkR 3nlg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=IY4OVNa0; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-66994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id oz39-20020a170906cd2700b00a3cecae6a97si647642ejb.102.2024.02.15.05.37.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 05:37:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=IY4OVNa0; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-66994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.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 15B541F279E2 for ; Thu, 15 Feb 2024 13:36:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D5BC130AEF; Thu, 15 Feb 2024 13:36:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="IY4OVNa0" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A50CB12BF3D for ; Thu, 15 Feb 2024 13:36:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708004205; cv=none; b=GdJdXZWueyrRLyLS79JJCJ+i3UebWyvQKVybR70MNEHAXfck9bHBOSdHcRMZzX5ooEjSwz34Xc3tuptKRDwFNwIJgwcqKF0RDLip4LWIqFc+B/NdaAFRCkGDEtbEmAvr2POdfRhvDC9fsd/eMBKj92SSDVwI96wl/XUKu3kIO0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708004205; c=relaxed/simple; bh=+qesoz2V42RgfnQKUGiS5UYjIIFWsK48uyeINtqXE/A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=BWDoUwr9QXaCGJxIsGFy8vs3NcaWSR+7xAOosbcf3u6uB5X5JefwLTQGrguHxDiMReihs4mHjQAQx6s9tt7l8nQ9CmNsDy1b3O8b06jxrkCNn6ZUazAUq+2/ueLlL0zpSrwNAuL+cjvMGHPySZOvHvW30X/SMtNUBAxqCLC8CIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com; spf=pass smtp.mailfrom=ionos.com; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b=IY4OVNa0; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionos.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-561f78f1ba1so940146a12.0 for ; Thu, 15 Feb 2024 05:36:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1708004201; x=1708609001; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=kSAPglM2wZ+xLjfRrMYJKrvwCFVOGwCTlmuHoEDAY3I=; b=IY4OVNa0hihlnbwP70YHsBdcI2BzPlAKrsg/qokuZRhUvP9s82dAMSHruJ2z6p/3GA KV3PD7KImFwQsfHaNMpgdBNZVtVYG7LshSc799Owvsn8V8yzoZBi267aAjG2rsCaE3US mVSlhjM/cDhdG+l139cr4O4sWiS2F67SXD25oL7MHhBW61d7olpTMDmJVVFhHpUovZfO VeeJ9WoIWTRDZ1ngyOqwX/Ia+q7xUZBE0FCWMr77kQx+dsq92Xu5xHVyZvDtJqH+DqVM 959w0q5tBVNY8XOjZjrXtVbbeatTnRNewH6skM1WkZzCJ1sJjNrqXkp/FIXCnAi1MeyS fQCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708004201; x=1708609001; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kSAPglM2wZ+xLjfRrMYJKrvwCFVOGwCTlmuHoEDAY3I=; b=u3UcQWvshaQNzL+J9VBjyJapqwKnTSbvjxsZ3o8/pv+p9ttJAUF+PbSl3G9gOlIM58 MSCK4xXG+5Gb3ujhLD4ihwE1yh6o+FFbll9TuJzveb0hQArPIf0relvfcsfx/pkAI8dK +EdU/wdI+KDgl5OvmHohZG2HuXtlGxVrYYXEkay6ZqszNhAzMdDWyomcmAuzLPmGUWQs aRDuXdxZetnKPdOpmxJMJG6ScjMPgD8ppmM/0F8QCZj2dur1jQLft+oyQ3bgHM5JCtVX z077GuwoL3NcQnPZ6T/8ymwrlRqYgk1ersxJCpE5ofOd9y6ZoChDEnIMYBRcmhBCj3Yp suyg== X-Forwarded-Encrypted: i=1; AJvYcCWyG0Q0awL0Bz+C7Sh0bUaoVdfYkcK4/9lRHvlp1O8dnHGethKD31VCyhIIbTR+4sw0INEQS900utFiLx0uzoFMCrnziWFQEsXWVB7t X-Gm-Message-State: AOJu0YwzMZPk5zrolNaNJnU3woFqV3fXEgzmAthzhS1tJ1BcjeL4RX8y H9XMXCoam6QUdY1gEcjz/GwQF7yywfIVsCxGa9zCRBBRRA1lPbaL0hrkHPmj3KQ= X-Received: by 2002:a17:907:76e5:b0:a3d:8035:fdd1 with SMTP id kg5-20020a17090776e500b00a3d8035fdd1mr1467797ejc.76.1708004200904; Thu, 15 Feb 2024 05:36:40 -0800 (PST) Received: from raven.blarg.de (p200300dc6f267100023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f26:7100:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id w24-20020a170906131800b00a3d22f53210sm542350ejb.188.2024.02.15.05.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 05:36:40 -0800 (PST) From: Max Kellermann To: hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH] arch/x86/entry_fred: don't set up KVM IRQs if KVM is disabled Date: Thu, 15 Feb 2024 14:36:31 +0100 Message-Id: <20240215133631.136538-1-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit When KVM is disabled, the POSTED_INTR_* macros do not exist, and the build fails. Fixes: 14619d912b65 ("x86/fred: FRED entry/exit and dispatch code") Signed-off-by: Max Kellermann --- arch/x86/entry/entry_fred.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/entry/entry_fred.c b/arch/x86/entry/entry_fred.c index ac120cbdaaf2..660b7f7f9a79 100644 --- a/arch/x86/entry/entry_fred.c +++ b/arch/x86/entry/entry_fred.c @@ -114,9 +114,11 @@ static idtentry_t sysvec_table[NR_SYSTEM_VECTORS] __ro_after_init = { SYSVEC(IRQ_WORK_VECTOR, irq_work), +#if IS_ENABLED(CONFIG_KVM) SYSVEC(POSTED_INTR_VECTOR, kvm_posted_intr_ipi), SYSVEC(POSTED_INTR_WAKEUP_VECTOR, kvm_posted_intr_wakeup_ipi), SYSVEC(POSTED_INTR_NESTED_VECTOR, kvm_posted_intr_nested_ipi), +#endif }; static bool fred_setup_done __initdata; -- 2.39.2