From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793311516; b=xqM8tE4lW60hSxiCz9bG1w8mVq9VGm51lMuCU6XPF+ODq3e/oGBI30aDZZDu0vRykZVo aokGeo+3KKUYCZrq7CklmhjIrK4DyhTfNoFp65ZvJ0d6Xgs6NiCjDhCWCA+2E4PAy9zsu oOdNeyXZSjC5seGgRIQtdzwtzZcxnq3m2seFMOM5wX42Lr8jg/Jn6sq8SZICIAjRvKWyY AEmUwnie5KCyEdRPmZJ54iBUK9sJ5Vkj1I5P8Wa9JJSnEWYzz5nRrs75gp8rUw7GTCw6H h+DMtzUZRNzVP2Lgsr81Cb/frcBPL5BfvyfGNO9toQlOnKKe4SnLPM9UH7LXQMfNehQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793311516; h=DMARC-Filter:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=BOIOVIeuoZTPYLCw9qgl59aa+oUmsxHGBfBI4tPDjNk=; b=adub0duwMAxwLuM7GzcPPFyCruhfZO+zjSt8cxYq3kqBmg2j1gHnc/wENVVQlrY97/Sa 6wiMR8IdqyY78GcRSTSN6gX30y5gBLvhJxYRAM917k0Npz+d5IZC2+Tj3yu2Rd8jhRN93 4c640fuuI7TKqeCNcZhfNP1XKyRwgqSW17WdED8gokH8tQQ1W7mvLTWaWyi4pzSHQ6gpf AkNPSEqhyaeK+/vT75s7lHPEOC8t3aqduq30FwDJstW/Hw1w9czuo/pIcUMXqD7tYCbYd bMnbIe/Ewj78Qf/9BaobBzBl1cWz6yugWq7g/Duw8450PgZyU8yEV97wsrhQnS7qtJw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=Q1HLeuNJ; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76A0E606A31C for ; Thu, 29 Oct 2026 22:05:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 76A0E606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=Q1HLeuNJ Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BDA4815A1; Thu, 29 Oct 2026 15:05:12 -0700 (PDT) Received: from arm.com (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CE5AD3F673; Thu, 29 Oct 2026 15:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1793311515; bh=Ijs585yEk7skk5Tt9uzpTzRD8zZrNST3f/danWDydDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q1HLeuNJ6kUbLgKJbyCy8NiFp2jr5MnpfDLave9KjaLtv7f17AEgdwnAF7e5lb6Ro tVVtAHTLlFvSsEdFncJ6eGP961Hg7yMz4IR1dHygDt/zYxGNOmAmFdq9mHa/82Rt1J eh9vd1QlT9ochELhnF9vdn4cxoch5nBM4dVrR9B0= Date: Thu, 29 Oct 2026 22:05:11 +0000 From: Catalin Marinas To: Fuad Tabba Cc: Marc Zyngier , Oliver Upton , kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Joey Gouly , Suzuki K Poulose , Zenghui Yu , Steffen Eiden , Will Deacon , Mark Rutland , Steven Price , Yang Shi , David Hildenbrand , Lorenzo Stoakes , Fuad Tabba , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/4] arm64: mte: Add mte_clear_folio_tags() Message-ID: References: <20261021110700.493315-1-fuad.tabba@linux.dev> <20261021110700.493315-5-fuad.tabba@linux.dev> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261021110700.493315-5-fuad.tabba@linux.dev> On Wed, Oct 21, 2026 at 12:07:00PM +0100, Fuad Tabba wrote: > mte_sync_tags(), sanitise_mte_tags() and kvm_vm_ioctl_mte_copy_tags() > each open-code the loop that clears the tags of every page in a hugetlb > folio. Add mte_clear_folio_tags() and use it in all three. > kvm_vm_ioctl_mte_copy_tags() then tests for hugetlb first, as it does > where it sets the tagged flag below. > > No functional change intended. > > Suggested-by: Lorenzo Stoakes (ARM) > Signed-off-by: Fuad Tabba Reviewed-by: Catalin Marinas