From nobody Sun Dec 14 06:18:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1764667687; cv=none; d=zohomail.com; s=zohoarc; b=Z81zhlnHepUnb09U2UJLrZH4HGLtTWSbBra/ifliGWsEeQ6mw8VoVHkQH2uBK9PcBIy48NZuWz48+ReiJnbj9padJ1NT+pyDVqpb9AbQQOV0ReugQyZZ4RJdcoEtR41xo2PoFTz1G0JXD/r3/kUn1efho6FzmwqrKOrrzksfmZQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764667687; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=OyxUbCI0eTZpVejGp6ZUvurQ8ce6r710+xVj+fha1TA=; b=CnfxxOeVTLOEG74EL2Wa/kPbhtUCcw/OHLbaXC5OAdBejAgcqsT8vCnMMVERzCXd70RTssspp/wT/wuntuWe3G0VeJf/kKuVrTBg+eiGwyV6B3zHCfkjE7TChYTyMO3xd2Hl9KXv+sfvC9VOorF4YcfXWsfxNpvgZRGz9uItzQU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1764667687465502.53072476666625; Tue, 2 Dec 2025 01:28:07 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1176030.1500597 (Exim 4.92) (envelope-from ) id 1vQMfl-0003ct-MX; Tue, 02 Dec 2025 09:27:49 +0000 Received: by outflank-mailman (output) from mailman id 1176030.1500597; Tue, 02 Dec 2025 09:27:49 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vQMfl-0003ck-Hc; Tue, 02 Dec 2025 09:27:49 +0000 Received: by outflank-mailman (input) for mailman id 1176030; Tue, 02 Dec 2025 09:27:47 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vQMfj-0003c7-Q2 for xen-devel@lists.xenproject.org; Tue, 02 Dec 2025 09:27:47 +0000 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [2a00:1450:4864:20::32d]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 29a0549a-cf61-11f0-9d1a-b5c5bf9af7f9; Tue, 02 Dec 2025 10:27:46 +0100 (CET) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4775ae5684fso24296675e9.1 for ; Tue, 02 Dec 2025 01:27:46 -0800 (PST) Received: from fedora (cust-east-par-46-193-78-210.cust.wifirst.net. [46.193.78.210]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4790adc8bc7sm373122725e9.1.2025.12.02.01.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Dec 2025 01:27:45 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 29a0549a-cf61-11f0-9d1a-b5c5bf9af7f9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764667666; x=1765272466; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OyxUbCI0eTZpVejGp6ZUvurQ8ce6r710+xVj+fha1TA=; b=M+MCzoZXV99CR2In7fy6ewFC96rDVzetnti9uA2YxfaM9c/Hvrwek0ZHti3CYEkkA0 yBbLmVYB7Mbr1LTsv0oTJer4bHtKTuftJxZlOTE18htfqMDeIXD4Wio2EuRsPoM0LBA+ jb5pP68AsXZ+ftMwQRqORn4wVaPtZMuiHQILey5OLL/IKV5kkLODfufCEV1hcaY21sb0 vxIo8sm+UEc/uAYQ40xQHLEeJWuHDyuiRfGmnq5+a6YbrH7owFxmHtN6yY9+N8K+p6Fx BHuitZEdEmTntXnNRhLihNqwG/oGDi+3zighqdIjNT2NuOd6+dzCkdisKb+R6E0TfHvF hwTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764667666; x=1765272466; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OyxUbCI0eTZpVejGp6ZUvurQ8ce6r710+xVj+fha1TA=; b=A+6d72XWzoXo6/LbQFXFCNj2nCaRngNG5tD87qtYYRw5Sl2ua/v8Q7W6hFhaCCwRsX /qb8TUOcDMWgG5tyxghQoMiQj/uP3vo688rRamERGeFn2/CY5o3hITfpRxg0UUSek9lu scZDO5jOseDoMoaexG3mfH9PDdYxtTEbeHDY0bsXbYr7lKrvdCe/VbugR79BY4a9hDZa YyJFvw7r2SO2Eex24rRIEo8ipfkCuFd5zvXhqZrlSmdUpysInTXrTFAc6WzXmBBNaKRt VXey03ydm+eWAsEKiD5AwTfpl0BcHLxPK2/gZFLEMbze2tFibZ8CL/MFEi1gUq3XYG54 FPMQ== X-Gm-Message-State: AOJu0YxiUCADx7zus7sBZKQe8tRiixdGgPKguFmnUxg+Z9MmeaXwEaxM AIDE71SbTgvJ/6fErFJW3ntHz7LpXEc2c3Eg+z1Exx4E2LhnB7BiHgqZ71zyK/pG4h0= X-Gm-Gg: ASbGncv8yojS5op30eWMklxjgTVqxhSwBpxD7sTbP2NcWXSbrQyytxE9HhPajr6wXqc j0XDPSqJsxMkYyJf9IOW2IVBkTqKg8sy4jFMtApffs0nJ6lrfYtTO8pwQ4ik1EDciZ83JKCQaTm hJU+osqqFr34RMxBPNk7rP94JG+1gBZUeuGaJLsZ6oMbB4DWQg8brEDbz3Omn52MPZTNqLF3qhl wZAhQh1X3TPS6X5wGQ1jwK7ux7Z+E6XASp1Ar5aSCLx3tebd3mPxG7K+/fzDRRB8lf0GJHscKXN IM+7qQ8H/KfdyuThKq06FYC0WXCwNH3uO/rHASOLrn2ZF5D/T+dgMHcDLutndlpZySTQkeeKn50 YR6QtRSZJkhqhiLuw+gEmNGvq3kmufjMNuRG1ZNT+HdqLMrSDPKxQ4rpxn9PQnRxUGVFGHhKHSs Iin3FGBAGqjxkkflY4mxL1OPXeAivOsk6//ZupWJZCic7ovYWySfDToVBJ5o4rzsgQnmE= X-Google-Smtp-Source: AGHT+IF4l9VDQFWfOr+mBze3yfuVfduxFrMWYn6L8B3OTbOjR+3ZxCeXpl4Vp6jcU131tmGq50Hq1A== X-Received: by 2002:a05:600c:3543:b0:46e:1a5e:211 with SMTP id 5b1f17b1804b1-477c1143046mr380000585e9.21.1764667665832; Tue, 02 Dec 2025 01:27:45 -0800 (PST) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Oleksii Kurochko , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Andrew Cooper , Anthony PERARD , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Timothy Pearson Subject: [PATCH v3] xen: move vcpu_kick() declaration to common header Date: Tue, 2 Dec 2025 10:27:34 +0100 Message-ID: <260f0884737c0d99afc392cf5b0eeb1ba7557437.1764586422.git.oleksii.kurochko@gmail.com> X-Mailer: git-send-email 2.52.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1764667688437019200 Content-Type: text/plain; charset="utf-8" The vcpu_kick() declaration is duplicated across multiple architecture-specific event.h headers (ARM, x86, PPC). Remove the redundant declarations and move vcpu_kick() into the common xen/include/xen/sched.h header. Drop the definition of vcpu_kick() from ppc/include/asm/event.h, as it is already provided in ppc/stubs.c. Signed-off-by: Oleksii Kurochko Acked-by: Jan Beulich Acked-by: Michal Orzel --- CI tests: https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/2188785661 --- Changes in v3: - Drop inclusion of from "x86/.../vmce.c" as it is already included in "mce.h" which is included in ".../vmce.c". - Drop inclusion of from "x86/pv/traps.c" as it is already included in xen/event.h, which is included in ".../traps.c". - Add Acked-by: Jan Beulich . --- Changes in v2: - Move vcpu_kick() declaration to xen/sched.h instead of xen/event.h - Revert changes connected to switching asm/event.h to xen/event.h as vcpu= _kick()=20 is now living in xen/sched.h. - Add inclusion of xen/sched.h because of moved vcpu_kick() declaration to xen/sched.h. - Update the commit message. --- xen/arch/arm/include/asm/event.h | 1 - xen/arch/ppc/include/asm/event.h | 1 - xen/arch/x86/include/asm/event.h | 1 - xen/include/xen/sched.h | 1 + 4 files changed, 1 insertion(+), 3 deletions(-) diff --git a/xen/arch/arm/include/asm/event.h b/xen/arch/arm/include/asm/ev= ent.h index 509157b2b3..e036ab7fb8 100644 --- a/xen/arch/arm/include/asm/event.h +++ b/xen/arch/arm/include/asm/event.h @@ -3,7 +3,6 @@ =20 #include =20 -void vcpu_kick(struct vcpu *v); void vcpu_mark_events_pending(struct vcpu *v); void vcpu_update_evtchn_irq(struct vcpu *v); void vcpu_block_unless_event_pending(struct vcpu *v); diff --git a/xen/arch/ppc/include/asm/event.h b/xen/arch/ppc/include/asm/ev= ent.h index 0f475c4b89..565eee1439 100644 --- a/xen/arch/ppc/include/asm/event.h +++ b/xen/arch/ppc/include/asm/event.h @@ -5,7 +5,6 @@ #include =20 /* TODO: implement */ -static inline void vcpu_kick(struct vcpu *v) { BUG_ON("unimplemented"); } static inline void vcpu_mark_events_pending(struct vcpu *v) { BUG_ON("unim= plemented"); } static inline void vcpu_update_evtchn_irq(struct vcpu *v) { BUG_ON("unimpl= emented"); } static inline void vcpu_block_unless_event_pending(struct vcpu *v) { BUG_O= N("unimplemented"); } diff --git a/xen/arch/x86/include/asm/event.h b/xen/arch/x86/include/asm/ev= ent.h index 434f65007e..d13ce28167 100644 --- a/xen/arch/x86/include/asm/event.h +++ b/xen/arch/x86/include/asm/event.h @@ -11,7 +11,6 @@ =20 #include =20 -void vcpu_kick(struct vcpu *v); void vcpu_mark_events_pending(struct vcpu *v); =20 static inline int vcpu_event_delivery_is_enabled(struct vcpu *v) diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 52090b4f70..1f77e0869b 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -877,6 +877,7 @@ void vcpu_wake(struct vcpu *v); long vcpu_yield(void); void vcpu_sleep_nosync(struct vcpu *v); void vcpu_sleep_sync(struct vcpu *v); +void vcpu_kick(struct vcpu *v); =20 /* * Force synchronisation of given VCPU's state. If it is currently desched= uled, --=20 2.52.0