From nobody Sat Apr 11 21:52:15 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1773139627; cv=none; d=zohomail.com; s=zohoarc; b=B8+vi5G+sPbDU21LXuAJVIMS89WVxpYvODk5oAukN4LBBbx9kqISTZ0wy6NBP4xFdI0ccz7QHehgPNTrkzKsG/33EpBiv02znsk8fjhClYnlk+TJ/RGVzaOVI4OxWI7K6Ro2uDA1L6+ozwcw/ZzPEz+OcdVtk4fwW7OxQgptGV4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773139627; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=w3BIlPw0CMfmgESexX1jy7Eew6qRZ790jhRyJ/45kFQ=; b=F8nG/A252dlfXXht1A5UFCZw7kzchqxIHg5JAHKsBuZOgz1AQK9XrmwcEkOtg+YtnJg0vnPaOaOlTJIX3xsV2d/w3yrS6Tb5IcGYYF8nKpkj2mauNUfaL49kdeQwmRdHmCiPg5oZJCgbxmxTitHvDVgvpEhBMQenBqQnXCH78ko= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1773139627066620.1836464364228; Tue, 10 Mar 2026 03:47:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vzubq-0008An-Vp; Tue, 10 Mar 2026 06:46:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vzubb-0007qr-DZ for qemu-devel@nongnu.org; Tue, 10 Mar 2026 06:46:32 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vzubZ-0005tl-TY for qemu-devel@nongnu.org; Tue, 10 Mar 2026 06:46:27 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-485345e1013so18326265e9.1 for ; Tue, 10 Mar 2026 03:46:24 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48541a8d4desm65313945e9.8.2026.03.10.03.46.21 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 10 Mar 2026 03:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773139582; x=1773744382; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=w3BIlPw0CMfmgESexX1jy7Eew6qRZ790jhRyJ/45kFQ=; b=O284WygsowAUAogxdtmVvXjL4UJJt4d9iK6P+ba8CF7wJ1oxYimw8b9f0Dfj+iXa0w e6uKmguesBrueGKJzgHWBJUstGpasTBlinJCqDbxVlxpJbqAGgTRI0kSTuyvvbX8U6OU 8Yl0zFLYklKcXJJO2ejlfUzLWpgSiqXxTSSBCZN6J/wkEEnybNtHUhUfDI5rGiX2klL/ 7fmu3ODz4/61zUdlqZaF8RrmiqpxZue7yqoHdbB+kRXfygya4xW9oI56TvWd+nY9yenx uEVecj/d6Ppa0TN/JZTgZiXsOFsssMgPwZdAtk0ZKhWKkYhxCHlVQTNtLqIDHY/Uf27+ Tb+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773139582; x=1773744382; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=w3BIlPw0CMfmgESexX1jy7Eew6qRZ790jhRyJ/45kFQ=; b=hMFy305EVntiyRqpw27j+wlmph2n/O4aUBG7HJCravFuTbOrsCWoWLhrHovW92dtyS zi7I1hWbS99FMsnUSN5WDgFGs61YGbAUyve2Qcu2wTcFEfsvcm17e5Y18GsY4TsQ6671 +IQbkA93mVjxH3awWsxldB1d5pLzv/AGFujT+k2nIPZXXcLG1e5aCFjd6R7kGOZ4eIq9 m4GSqocbDw1s9pD1ol/bvccqyWgF/Ygg5EMOFeklSha6O26DyWMsFUMeljE4bj/3LWI9 IMEPM6YuE5SDHMcSsKuUZD3uqeUVyPYXcbfXaEG18XLLQqFmPdu/7ZQxfd7AWSG2a5/8 6R2g== X-Gm-Message-State: AOJu0YwqqwNts5VLqp9khXw/3+g3vqChiL9I1va3/DdOwU2v3XmcnOvC 98yK6Vv8EkyjRPAP68HeXz17OYl6S4hqpdkTE4qMBvj32SPkCAONaFEtbIZt9YvRi/VdF7Ye+Cy IS7OObeY= X-Gm-Gg: ATEYQzxhkJandXPOehwCYoWYUqyuAHgR25W7qHd8Lo2/d1UCMuzKCXlP2o1dHNnq1md LNhZsPJVlV5Lvu/tjm/3VnJzaL9r1F/YhJml9tzP/zLz62sZEK8/zPolmkh6d2wF9WuZXIIpY9b eXMiOusA/ukgg3vPCgjQAti27s8bWqcA7S/QXFurPOKGel7JKZql9E4IdWm+42bPM2u+GtmDZiY yNucTgtDvGWa1/S9a4zV3oPp16RpJ70dSdCnVpQhDFyBwnoVZwnO/KBIH+X2RBaBcTfNCxOahFY SKuJ9xOr088wTYUhVh9Ly5SiumqKlCMXFNJwFMVKjJzIvf8lKQkpoPjx8o2vwWG2HdeBajp++NA UDSVf1hHFyU+7tU/djiY+piYUJgSPUTO/dsQ+3SXAfmyfOVz1uPfO7CquFFu/bdCJdKTkx+YfwT flmwdfHG31f3Ud6bNeq8dJIG7W31kmd/GQ6aL4/ZljmB0iF9/Vfwo5HGztz7PASKQUfiF4PxeW X-Received: by 2002:a05:600c:4f8e:b0:47e:e59c:67c5 with SMTP id 5b1f17b1804b1-485419cc0c0mr39842485e9.8.1773139582363; Tue, 10 Mar 2026 03:46:22 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 10/16] accel/kvm: Make kvm_irqchip*notifier() declaration non target-specific Date: Tue, 10 Mar 2026 11:45:05 +0100 Message-ID: <20260310104511.12670-11-philmd@linaro.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260310104511.12670-1-philmd@linaro.org> References: <20260310104511.12670-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1773139628695154100 Commit 3607715a308 ("kvm: Introduce KVM irqchip change notifier") restricted the kvm_irqchip*notifier() declarations to target-specific files, guarding them under the NEED_CPU_H (later renamed as COMPILING_PER_TARGET) #ifdef check. This however prohibit building the kvm-stub.c file once: ../accel/stubs/kvm-stub.c:70:6: error: no previous prototype for function= 'kvm_irqchip_add_change_notifier' [-Werror,-Wmissing-prototypes] 70 | void kvm_irqchip_add_change_notifier(Notifier *n) | ^ ../accel/stubs/kvm-stub.c:74:6: error: no previous prototype for function= 'kvm_irqchip_remove_change_notifier' [-Werror,-Wmissing-prototypes] 74 | void kvm_irqchip_remove_change_notifier(Notifier *n) | ^ ../accel/stubs/kvm-stub.c:78:6: error: no previous prototype for function= 'kvm_irqchip_change_notify' [-Werror,-Wmissing-prototypes] 78 | void kvm_irqchip_change_notify(void) | ^ Since nothing in these prototype declarations is target specific, move them around to be generically available, allowing to build kvm-stub.c once for all targets in the next commit. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Message-Id: <20260309174941.67624-2-philmd@linaro.org> --- include/system/kvm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/system/kvm.h b/include/system/kvm.h index 4b0e1b4ab14..5fa33eddda3 100644 --- a/include/system/kvm.h +++ b/include/system/kvm.h @@ -219,6 +219,10 @@ int kvm_vm_ioctl(KVMState *s, unsigned long type, ...); =20 void kvm_flush_coalesced_mmio_buffer(void); =20 +void kvm_irqchip_add_change_notifier(Notifier *n); +void kvm_irqchip_remove_change_notifier(Notifier *n); +void kvm_irqchip_change_notify(void); + #ifdef COMPILING_PER_TARGET #include "cpu.h" =20 @@ -393,10 +397,6 @@ int kvm_irqchip_send_msi(KVMState *s, MSIMessage msg); =20 void kvm_irqchip_add_irq_route(KVMState *s, int gsi, int irqchip, int pin); =20 -void kvm_irqchip_add_change_notifier(Notifier *n); -void kvm_irqchip_remove_change_notifier(Notifier *n); -void kvm_irqchip_change_notify(void); - struct kvm_guest_debug; struct kvm_debug_exit_arch; =20 --=20 2.53.0