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 B1B633368B1; Mon, 13 Jul 2026 23:07:16 +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=1783984038; cv=none; b=VIkhtjZb4nBinYuphqgoBy6cAl5shpNoU3dNP3wag9XgKR6ngVw0+3PSOwtGbdFJx6VfYTyzbpHiohRbH4D8FpOSOsyLvLGZ7hj4E6n9keqArZ6eARsdwBI3/mAqZz+SNFLTkjDIRPrsBGRQaZQuwr2nbTCFRhAPM0Ovx4YfwyI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783984038; c=relaxed/simple; bh=x8QZB0ShRwjS64obHvSiPDSJaA7Xek3LB0MwhaSJg/g=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=OzFC0pmv9R+cT0Odo5wuKhxgpPZfnXpfsDSrjWtt/pFtC+KrGnlSWwgrJzLBY2Xi8OamGu/QOEs3oslBoLcAHH1ie7psRHHkgybSmAIie4zqk3OK3A9IaoIZ0l330/jLKpACQZz2yVmowBwtAsc6q/dGMW3tPO1bORZSHxFriOc= 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=jXtEJlUX; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=148yfM1N; 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="jXtEJlUX"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="148yfM1N" Date: Mon, 13 Jul 2026 23:07:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783984033; 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=LptI9zhmhxw0MM8W+Z4lbvayQ1A2zM53FtC3TVSCnyg=; b=jXtEJlUX1wwkVDlZrKOFpgs0gIeSXthCgx3KSJOLtH+BNVQjrskmGWaURBBVEHVxTA82Ed PMG9P7JXUpwFE2d+QqmHVCfshPFmRwkA8LYt4iSqfjhHxM5UGgLDn3m1NCDM2NIjY7va6X G/AdRmtZci4z/avlQvQHIfBx3fvgk9wkFzuP7KZTeuhG+FrLOU5Xa9X2/HYrl2ZejWCAvq htnNiiP/7z2C44WBb/YnSMfrDpkz1Ay8X2gDrjR36LMT+A96n6Vrw2iNJX4tkvnyfUAO4T IyX571wl6qRUgxPWjyerN1SX3kTEoghGw3bUZh+cbQoJDPYH2KHO7hTzuA7qUg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783984033; 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=LptI9zhmhxw0MM8W+Z4lbvayQ1A2zM53FtC3TVSCnyg=; b=148yfM1NmV3fnOLvRsdQn+iAP9Qwz3ChthiAze93Y3IXyLhHrwdTjJP/LWaIWnQwTLmd6s 27F5dZ4AZQxKICCQ== 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_unpin_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-10-vishal.moola@gmail.com> References: <20260629185742.126987-10-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: <178398403151.1844600.14825348325381247386.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: defbd61c2ab01654b37750ed1515864523280cc4 Gitweb: https://git.kernel.org/tip/defbd61c2ab01654b37750ed151586452= 3280cc4 Author: Vishal Moola AuthorDate: Mon, 29 Jun 2026 11:57:42 -07:00 Committer: Dave Hansen CommitterDate: Mon, 13 Jul 2026 15:55:10 -07:00 x86/xen: Convert xen_mm_unpin_all() to ptdescs Convert xen_mm_unpin_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 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-10-vishal.moola@gmail.= com --- arch/x86/xen/mmu_pv.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/xen/mmu_pv.c b/arch/x86/xen/mmu_pv.c index d2b3bbd..377c3c0 100644 --- a/arch/x86/xen/mmu_pv.c +++ b/arch/x86/xen/mmu_pv.c @@ -947,16 +947,16 @@ static void xen_pgd_unpin(struct mm_struct *mm) */ void xen_mm_unpin_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 (PageSavePinned(page)) { - BUG_ON(!PagePinned(page)); - __xen_pgd_unpin(&init_mm, (pgd_t *)page_address(page)); - ClearPageSavePinned(page); + list_for_each_entry(ptdesc, &pgd_list, pt_list) { + if (PageSavePinned(ptdesc_page(ptdesc))) { + BUG_ON(!PagePinned(ptdesc_page(ptdesc))); + __xen_pgd_unpin(&init_mm, (pgd_t *)ptdesc_address(ptdesc)); + ClearPageSavePinned(ptdesc_page(ptdesc)); } } =20