[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] x86/pod: fix decrease_reservation() clearing of M2P entries


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Wed, 10 Dec 2025 11:10:57 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tSUECVfvtVyNBP2A3vSnhhxTwGW2iHN2kTtERrHQR4E=; b=x14ybD8C60MQW7w/yUNb2ig783hvu4hh+UtJ7POMayxFWXsNBtCqS/6bR36eOtfBO7kVyNpxWW8fVkMTDuAqFrGKyUH5a1rEoI05cOZNdX3Zo7+c9jop5Y3OSfSZbOROfOOSC/+UdsKlziCJ+/CrmpEoYO29RPXD81TH/jWG8a+LBRJrXHkSn7xSnViD2ZmVTp3aYbDlG04UyCMTXZGTJFOUAcnBOe3QZrDWk9bkZb7WqzosXs6h/zgHPlfZoHNTkgCcN+5rNuYHKlQygJw3BJ4a5qT3jsTiKR/F2XhIGVICuSqxa/KG8JqwdeZkWwKLhxaq1tBzCZmkHpOBONPRbA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=auDusr3UcY1a3Wdf/uVwcQlyCK49CZABKxBD0tUzokor/DC5oOrcDNeGVClOREJfP/hu3ErjyTaIMxX6f7fqCz4vG1OUdGng9zTAqNqA1Yrl7mi+AqFCRacOa591wL/PSy4mAVN/s9fQsF2STCfNh0O5vfRX0l+Tc24o42+gwQuNjyC578nTpixTYDbxLAIp/W9nPhWK/nMVVKSz25rea7A8KgQfsMX2+3xeKDcPpcbdrk9CswZTk/D3mdOF5PHQVUB0OQyLbmYCi6CD03u4PebixPKi4RFqcV+eq0LnkF9eh0/rmPbOMHkpDgwrwD2GFQJdtUb5ehRGD+RaxWfSeQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 10 Dec 2025 10:11:18 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed, Dec 10, 2025 at 11:07:00AM +0100, Jan Beulich wrote:
> On 10.12.2025 10:35, Roger Pau Monne wrote:
> > Add the missing index increase in the M2P clearing loop, otherwise the loop
> > keeps pointlessly setting the same MFN entry repeatedly.  This seems to be
> > an oversight from the change that introduced support to process high order
> > pages in one go.
> 
> Ouch.
> 
> > Fixes: 3c352011c0d3 ("x86/PoD: shorten certain operations on higher order 
> > ranges")
> > Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> 
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
> 
> I'd like to note that things were broken in the same way before that commit,
> too, simply because the order wasn't taken into account all. (This is not a
> request to change the Fixes: tag, though. It's just an observation.)

Are you sure?  Previous to that commit the order is not taken into
account, and each 4K page is processed independently: the `i` index is
strictly increased with +1 for each loop.

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.