Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 17EC6C54E67 for ; Tue, 26 Mar 2024 21:55:24 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.698233.1089746 (Exim 4.92) (envelope-from ) id 1rpElB-00041t-71; Tue, 26 Mar 2024 21:55:09 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 698233.1089746; Tue, 26 Mar 2024 21:55:09 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rpElB-00041m-4A; Tue, 26 Mar 2024 21:55:09 +0000 Received: by outflank-mailman (input) for mailman id 698233; Tue, 26 Mar 2024 21:55:08 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rpElA-00041g-6H for xen-devel@lists.xenproject.org; Tue, 26 Mar 2024 21:55:08 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rpEl7-0006OF-6q; Tue, 26 Mar 2024 21:55:05 +0000 Received: from gw1.octic.net ([88.97.20.152] helo=[10.0.1.244]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rpEl7-0003WD-0G; Tue, 26 Mar 2024 21:55:05 +0000 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" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=a2I+LiowI5Pxt3N7weEJEMDDFjutY0zx6MhCw1LuKew=; b=IltuEQaz0IJHZpi5DUvwh3SVw3 2B7vrn8jq9k1tIxx0PKDp12l8j8pQk5v1sgrTU5hoDhFnsB7m2h1OepOAYGKyFS+a66/LrWoLDe6o eWwHpvT9DF2lOCsu2f+IIR18zj7i/31OwRB2f8jSKg6yqf3rVDheSYV5k+qxOJleJujc=; Message-ID: Date: Tue, 26 Mar 2024 21:55:03 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 08/14] xen/page_alloc: introduce preserved page flags macro To: Jan Beulich , Carlo Nonato Cc: Andrew Cooper , George Dunlap , Stefano Stabellini , Wei Liu , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , xen-devel@lists.xenproject.org References: <20240315105902.160047-1-carlo.nonato@minervasys.tech> <20240315105902.160047-9-carlo.nonato@minervasys.tech> <3f615066-a792-493f-ba33-7667a6557c23@xen.org> <9e0f7ff3-5457-41e4-a1e4-bf75804fb900@xen.org> <255be735-f9fe-4e39-a24e-2f6aff91acc5@suse.com> <3427132d-9458-4447-b667-d2ef3c1f0569@suse.com> Content-Language: en-GB From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Carlo & Jan, On 26/03/2024 17:04, Jan Beulich wrote: >>> No, we need to get to the root of the issue. Since osstest has hit it quite >>> easily as it seems, I'm somewhat surprised you didn't hit it in your testing. >>> In any event, as per my earlier reply, my present guess is that your change >>> has merely uncovered a previously latent issue elsewhere. >> >> Ok, what about removing PGC_extra in free_heap_pages() before the >> mark_page_free() call? > > Question is: How would you justify such a change? IOW I'm not convinced > (yet) this wants doing there. Looking at the code, the flag is originally set in alloc_domheap_pages(). So I guess it would make sense to do it in free_domheap_pages(). For PGC_static, I don't think we can reach free_domheap_pages() with the flag set (the pages should live in a separate pool). So I believe there is nothing to do for them. Cheers, -- Julien Grall