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

Re: [PATCH 3/3] x86/xen: allow nesting of same lazy mode


  • To: Juergen Gross <jgross@xxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx
  • From: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
  • Date: Fri, 15 Sep 2023 17:50:11 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=H74T6+1OtkwapfOHFrqHqwD8gPpXo2sFqK1QM65WfBM=; b=PsqX3+vWjd2vIBcD/gjhAZ/BzHW+mv4+L6xyI54718h5UiyoA516o4RwFWF1Bcw/8jlclAhyIsbfaPSVXstIsDVYipce+AN0190uRX7kOLwMrhD7BJfUfjDVNoLIllAQtGmntr2iI8zNa2zOBAJHJvVPKEQrh6FxqmyIj8eXyTMBJKr4HaYmzm3dU6zO2lKKAgq1fNg2rAPwoS3zoEx8MPHviJiG0ln1J0eIkOfMRsDMi2td1BaFKuf+EHeuZBbrUVXeEwAYzv+XnGmC7ssujXv0YabIgstxlauDSAR4hjUIzgXbcuteXAiGeV5wRYvXdiYaMOS4F/kRu/2YtaeY0g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gbkv3D/qmdhLqZFkaPgcIQwzV2HplCBQU+oYlmxnOPvGEMUeTHGgKpnWaEi7gDdomQAd+2pi6Vy0A0aqgx14Rl9n6gZohiljDq34VkRMN7sijJqWeZ8vF8MqdIN0fwi6/ykwtfpUjzVjKowkYPj0hka8cTg84ufHa1zhYyJAAwe6sEgSNmGAvOKmBQlOFLFCeuip3vUWFBWZNMZEqO14XQ2//gsolU7zRPhvv81eeeGa7zZRX7UdNRpQgsiNq8m665sZGbwvpAkCMaeAUuMOBqWcjLztZGveGmLzAqrOCzPaD3Lyt1c6LfsgC3uCV8EJlZSczqfTvPuGQ3Jy5txLwQ==
  • Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 15 Sep 2023 21:50:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>



On 9/13/23 7:38 AM, Juergen Gross wrote:
When running as a paravirtualized guest under Xen, Linux is using
"lazy mode" for issuing hypercalls which don't need to take immediate
effect in order to improve performance (examples are e.g. multiple
PTE changes).

There are two different lazy modes defined: MMU and CPU lazy mode.
Today it is not possible to nest multiple lazy mode sections, even if
they are of the same kind. A recent change in memory management added
nesting of MMU lazy mode sections, resulting in a regression when
running as Xen PV guest.

Technically there is no reason why nesting of multiple sections of the
same kind of lazy mode shouldn't be allowed. So add support for that
for fixing the regression.

Fixes: bcc6cc832573 ("mm: add default definition of set_ptes()")
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

For patches 2 and 3

Reviewed-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>



 


Rackspace

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