From nobody Sat Jul 25 20:47:09 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9CE2635E1A3; Mon, 13 Jul 2026 23:07:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783984039; cv=none; b=fxu8JStNR0qtVaNvooKaurK7O5efO82EmEWMgO6ffp3K2jKgGT9smhWZy6If1dCUkPuA+h4BRPzRu8QWlF+jiS8eq/YuF8rcVK9Gl81BgOYWd5DGom3lMYpi1po1UjzA4s3Mz+yQm3Eotn7UhUjbsBHsvnc9wp5bvJclUtF2TAU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783984039; c=relaxed/simple; bh=QC7MHXEc0ax1KFizCkJQfiHULAK8Xx4seOzhWRyhIYc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=DgzwuPW0jVkolpdDOvyYixD4lFy730dibUqZqtTi6Af0odeyFKJQFNqdwD8cofHeQAtpnA9zZI7ob0jtZq2jki3OLMBLIp/WIbk2h9+bPTfj63BRi7/6Ng+IlyV+8I6e3bYYFxhWZXrvECuU8qnavOjQ9o4DxS9ER1sHIyfR18U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=naFSoNRo; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=3yIMT+G1; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="naFSoNRo"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="3yIMT+G1" Date: Mon, 13 Jul 2026 23:07:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783984034; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cTDMpNKFyM43qVWM3hV4tPKNbdMlIOdbMECiB8aXlFk=; b=naFSoNRouXhEmUF+O+KsfUvn8vrBDdS87awt65+vOoR/CVh4Qra0NoxN3jjuRNkA+HffrI shVOsVSwaKwbAPoQhh66jXlpmhMy9Im2SpsB6kONZ4GUpm2ZFsXnI9KZqEt4rS62rGEsdm 4UgcNhyxQOe2DEC4eM5rThOuDxCTFS2GW/pKCwyQM+Knu+B8jrH6UxQb4Dcg+aFkpP/H4J h9I50GVxRVqC/KltRn+kN5rvGh3Wswt4dxBcsFBdFYI9P86qKhOpmZJm4EH7BlIsXY4J+x bbSCo9adU9OG+W1tpg2YYUjIPHfOz6J8puwuXDrWsIhjmkDCgkN1kX8L/7lAUA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783984034; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cTDMpNKFyM43qVWM3hV4tPKNbdMlIOdbMECiB8aXlFk=; b=3yIMT+G1/zdKA9yXjsGyeSWWtviDeed9Py97KjAGbUUpBgqL1ro1noq5poZG12j/3Q/Z2m Cm6ufirQ8gBMWSBg== From: "tip-bot2 for Vishal Moola" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] x86/xen: Convert xen_mm_pin_all() to ptdescs Cc: Vishal Moola , Dave Hansen , William Kucharski , Juergen Gross , "Mike Rapoport (Microsoft)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260629185742.126987-9-vishal.moola@gmail.com> References: <20260629185742.126987-9-vishal.moola@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178398403302.1844600.18077321834245705326.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/mm branch of tip: Commit-ID: 278ddbd27427e4f51e6fdc0e1f11930b22b2f5a9 Gitweb: https://git.kernel.org/tip/278ddbd27427e4f51e6fdc0e1f11930b2= 2b2f5a9 Author: Vishal Moola AuthorDate: Mon, 29 Jun 2026 11:57:41 -07:00 Committer: Dave Hansen CommitterDate: Mon, 13 Jul 2026 15:55:10 -07:00 x86/xen: Convert xen_mm_pin_all() to ptdescs Convert xen_mm_pin_all() to ptdescs in preparation for the eventual splitting of ptdescs from struct page. Continue checking PagePinned through the underlying page as we do not have a per-memdesc api for page flags yet. Signed-off-by: Vishal Moola Signed-off-by: Dave Hansen Reviewed-by: William Kucharski Reviewed-by: Juergen Gross Acked-by: Mike Rapoport (Microsoft) Link: https://patch.msgid.link/20260629185742.126987-9-vishal.moola@gmail.c= om --- arch/x86/xen/mmu_pv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/xen/mmu_pv.c b/arch/x86/xen/mmu_pv.c index 820af6f..d2b3bbd 100644 --- a/arch/x86/xen/mmu_pv.c +++ b/arch/x86/xen/mmu_pv.c @@ -836,15 +836,15 @@ static void xen_pgd_pin(struct mm_struct *mm) */ void xen_mm_pin_all(void) { - struct page *page; + struct ptdesc *ptdesc; =20 spin_lock(&init_mm.page_table_lock); spin_lock(&pgd_lock); =20 - list_for_each_entry(page, &pgd_list, lru) { - if (!PagePinned(page)) { - __xen_pgd_pin(&init_mm, (pgd_t *)page_address(page)); - SetPageSavePinned(page); + list_for_each_entry(ptdesc, &pgd_list, pt_list) { + if (!PagePinned(ptdesc_page(ptdesc))) { + __xen_pgd_pin(&init_mm, (pgd_t *)ptdesc_address(ptdesc)); + SetPageSavePinned(ptdesc_page(ptdesc)); } } =20