From nobody Fri Dec 19 08:06:18 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=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1741801695; cv=none; d=zohomail.com; s=zohoarc; b=VqU7QHPQKNCMnnaYcioz23O0eWvHogmiqHhF2h8DvtrClJyx8CeP9C3FcLDNj1GKJ0zTMHL/bie9atd0jAZO3nLbePS2hrHhREualmhz1phiSfQ2f9yZD+1DSQor469O6K3y3QoK853iIVo4UmSJERxpEEGIwU5mtcqSBnxec+g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741801695; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=/ZxpY1j+tYKf6h6cwDyqwsZP3HXNRy5CWzq/bv6KU6I=; b=K6BmqPuoLkweJe7I/oYyJumDmzt6OsslIa5j2aHXr8QHbUcN0dXmOL7HI4APlmBCREYRvZpf6eAR2lJ+5xZjXGwbCzoggFmNmcaqi/IKZtgBpxGf2Pt8mK7xn5Kn5KVQywCMbeTNFWBn398/5PaAUptu0QLqXK6qljFhBG5Kg4c= 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=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1741801695839837.3807439821844; Wed, 12 Mar 2025 10:48:15 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.910634.1317346 (Exim 4.92) (envelope-from ) id 1tsQAv-0007pF-A7; Wed, 12 Mar 2025 17:47:25 +0000 Received: by outflank-mailman (output) from mailman id 910634.1317346; Wed, 12 Mar 2025 17:47:25 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tsQAv-0007nh-38; Wed, 12 Mar 2025 17:47:25 +0000 Received: by outflank-mailman (input) for mailman id 910634; Wed, 12 Mar 2025 17:47:23 +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 1tsQAt-0006eC-PX for xen-devel@lists.xenproject.org; Wed, 12 Mar 2025 17:47:23 +0000 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [2a00:1450:4864:20::32f]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 0d80f95d-ff6a-11ef-9ab9-95dc52dad729; Wed, 12 Mar 2025 18:47:23 +0100 (CET) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-43d0359b1fcso1246365e9.0 for ; Wed, 12 Mar 2025 10:47:23 -0700 (PDT) Received: from andrewcoop.eng.citrite.net (host-92-26-98-202.as13285.net. [92.26.98.202]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d0a8d0b79sm27333805e9.36.2025.03.12.10.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Mar 2025 10:47:21 -0700 (PDT) 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: 0d80f95d-ff6a-11ef-9ab9-95dc52dad729 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1741801642; x=1742406442; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/ZxpY1j+tYKf6h6cwDyqwsZP3HXNRy5CWzq/bv6KU6I=; b=kHq6kx/bMnSVc3AHtqOnznsh1Cm1uCwLN22KrucR9Y0CpTSkzf9xv3J13uo8EGFtxg vn4W7dMESG1Evrd4mKkYTBZKq1pnHhUNkXmAJ5bG/1ZVZLg6jesocSGU14or50DEw4B/ +NNEPV8wK6BhaAsJbPdikbNglMiQyxZozvBF4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741801642; x=1742406442; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/ZxpY1j+tYKf6h6cwDyqwsZP3HXNRy5CWzq/bv6KU6I=; b=Ux7FZ+/sCEKkgAAc6eJHZJAkHRgp7NKN+Ecv5vCbJzktgq35FdfZQUVFxER3riF7RQ o/XlcFpTfXM+OvpNaOgJ8PCyESbyylSChro/406SZQS3mXEGIhj0DoHL/mjdbD+M/C5Q JnQmyPfJND0kmltzmMbfb5VT7j7Y+PanoJmeYLsIWXUAFWnhl87URFSIw7GpNF2f1H7D ok+nbHLWnhOGE5r1TG6hBWG8ov+xcFQQfcBQo5kaKw6t6sb0kIzcj6S+IRnz79ipgKHI emTvHrsd4+R7/RxZYPRKVh4u3kja2mqwoq8Ou3eeOnWkRrzP91CZg08CFiet5v0GkQ03 MRrA== X-Gm-Message-State: AOJu0YyN7RCfk6hs8PJ2WgnGrNOEAdw3hHMRua7xugZSCb10engRV6vS arPs0lDTWzVUoUlpzycDXJFe9F43z8z+VmZE+zXcLqWSUH61zs2vHwbuWGkEW5eLh9jnAEYnPns w X-Gm-Gg: ASbGncteVHRcVWAGSnRZ7OcZsLGbPYaXkoK355jDgPKYkdEd+JhM+YvUMufDXfR5/q5 wzvvrFGHNxVmB2fBqOPYkD7yPDa3c3Ll1QKgJd4s6PnmO87xXqhpzsVYSJj26SmvaKhjALcrrHa ya1XBn92NEN59Fm8NNhM3CQo80nKFMQpMfsPs1qBHz4hMQdtsmM20sOCuZtOJns9oJZ8QoI0Tdf MPJ7BfsA42QW6AiDEva5EVOyNGZwLWKJmzfjzsUcqdLbEyfHShbBQrnoKQxyyMUttMHlX/ZpD3J GR1lxTZPWTTHPXC1aocDeh6n5E38lpo5RDUxYRn3iqE+UhPVPp1H9eVV8GLqxPjBUHqrHPC8nrW wm4Ig5jdpF6LTiCeXiEEJN034iYDz4SBUZ90= X-Google-Smtp-Source: AGHT+IFOZgz21JTkr53wf6nAyfUuR8xGMtR4kI57Y4nBotlAubxbKXRNoHNCn66WKMXoJaECwuxQTA== X-Received: by 2002:a05:600c:512a:b0:439:8878:5029 with SMTP id 5b1f17b1804b1-43d16192475mr4024405e9.2.1741801642295; Wed, 12 Mar 2025 10:47:22 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini , Volodymyr Babchuk , Bertrand Marquis , Oleksii Kurochko , Shawn Anastasio Subject: [PATCH 5/8] xen/arch: Strip out tlb-clock stubs for non-implementors Date: Wed, 12 Mar 2025 17:45:10 +0000 Message-Id: <20250312174513.4075066-7-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250312174513.4075066-1-andrew.cooper3@citrix.com> References: <20250312174513.4075066-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1741801697760019100 Now that there's a common stub implementation TLB clocks, there's no need f= or architectures to provide their own. Repeatedly zeroing page->tlbflush_timestamp is no use, so provide an even m= ore empty common stub for page_set_tlbflush_timestamp(). No practical change. Signed-off-by: Andrew Cooper --- CC: Anthony PERARD CC: Michal Orzel CC: Jan Beulich CC: Julien Grall CC: Roger Pau Monn=C3=A9 CC: Stefano Stabellini CC: Volodymyr Babchuk CC: Bertrand Marquis CC: Oleksii Kurochko CC: Shawn Anastasio --- xen/arch/arm/include/asm/flushtlb.h | 14 -------------- xen/arch/ppc/include/asm/flushtlb.h | 14 -------------- xen/arch/riscv/include/asm/flushtlb.h | 14 -------------- xen/include/xen/tlb-clock.h | 1 + 4 files changed, 1 insertion(+), 42 deletions(-) diff --git a/xen/arch/arm/include/asm/flushtlb.h b/xen/arch/arm/include/asm= /flushtlb.h index e45fb6d97b02..6f69a5bdc8c2 100644 --- a/xen/arch/arm/include/asm/flushtlb.h +++ b/xen/arch/arm/include/asm/flushtlb.h @@ -3,20 +3,6 @@ =20 #include =20 -/* - * Filter the given set of CPUs, removing those that definitely flushed th= eir - * TLB since @page_timestamp. - */ -/* XXX lazy implementation just doesn't clear anything.... */ -static inline void tlbflush_filter(cpumask_t *mask, uint32_t page_timestam= p) {} - -#define tlbflush_current_time() (0) - -static inline void page_set_tlbflush_timestamp(struct page_info *page) -{ - page->tlbflush_timestamp =3D tlbflush_current_time(); -} - #if defined(CONFIG_ARM_32) # include #elif defined(CONFIG_ARM_64) diff --git a/xen/arch/ppc/include/asm/flushtlb.h b/xen/arch/ppc/include/asm= /flushtlb.h index afcb74078368..f89037bd4543 100644 --- a/xen/arch/ppc/include/asm/flushtlb.h +++ b/xen/arch/ppc/include/asm/flushtlb.h @@ -4,20 +4,6 @@ =20 #include =20 -/* - * Filter the given set of CPUs, removing those that definitely flushed th= eir - * TLB since @page_timestamp. - */ -/* XXX lazy implementation just doesn't clear anything.... */ -static inline void tlbflush_filter(cpumask_t *mask, uint32_t page_timestam= p) {} - -#define tlbflush_current_time() (0) - -static inline void page_set_tlbflush_timestamp(struct page_info *page) -{ - page->tlbflush_timestamp =3D tlbflush_current_time(); -} - /* Flush specified CPUs' TLBs */ void arch_flush_tlb_mask(const cpumask_t *mask); =20 diff --git a/xen/arch/riscv/include/asm/flushtlb.h b/xen/arch/riscv/include= /asm/flushtlb.h index 51c8f753c51e..23739a22fb2a 100644 --- a/xen/arch/riscv/include/asm/flushtlb.h +++ b/xen/arch/riscv/include/asm/flushtlb.h @@ -20,20 +20,6 @@ static inline void flush_tlb_range_va(vaddr_t va, size_t= size) sbi_remote_sfence_vma(NULL, va, size); } =20 -/* - * Filter the given set of CPUs, removing those that definitely flushed th= eir - * TLB since @page_timestamp. - */ -/* XXX lazy implementation just doesn't clear anything.... */ -static inline void tlbflush_filter(cpumask_t *mask, uint32_t page_timestam= p) {} - -#define tlbflush_current_time() (0) - -static inline void page_set_tlbflush_timestamp(struct page_info *page) -{ - BUG_ON("unimplemented"); -} - /* Flush specified CPUs' TLBs */ void arch_flush_tlb_mask(const cpumask_t *mask); =20 diff --git a/xen/include/xen/tlb-clock.h b/xen/include/xen/tlb-clock.h index 796c0be7fbef..467f6d64a6ca 100644 --- a/xen/include/xen/tlb-clock.h +++ b/xen/include/xen/tlb-clock.h @@ -44,6 +44,7 @@ static inline void accumulate_tlbflush( bool *need_tlbflush, const struct page_info *page, uint32_t *tlbflush_timestamp) {} static inline void filtered_flush_tlb_mask(uint32_t tlbflush_timestamp) {} +static inline void page_set_tlbflush_timestamp(struct page_info *page) {} =20 #endif /* !CONFIG_HAS_TLB_CLOCK*/ #endif /* XEN_TLB_CLOCK_H */ --=20 2.39.5