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

Re: [PATCH 5/5] x86/PV32: avoid TLB flushing after mod_l3_entry()


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Mon, 11 Jan 2021 16:57:32 +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=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r3CIQ5B6ky7mC/spBld3HayakLYgVAImwOq6sXPdr4Q=; b=DVkD3r2ngslYkAnXz4ppp5niip+QjV6WlwCXldv8tLHGyKyF9aB86GIxapIbWoM9O2V71T19thO4/oC+hWpfk1Uh/BbEZGtOtB5+zePkZc5ZhJFN8D2QRlKfr22u/76JQl/Hb55Eb74DAZD3VhiJE4N1n/umQEu2KOSjdjGp5Hg+AGBGkKiJ5TMwC6Irb7iA+wHw+nAVn8Hi8hatGUHgoSfCQdIMNBzuMdSdG8iFfNGOuOkmdptOkCg3vCuGHpN5+6E+UjYR+pR6V4YV1pg0xfPou+kk2Kvo+107bujZhdgGQJU82zbs9MTlm+JSMRQGmY2fQJSULYEweANksEW41w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iwFStR5+LrnH4oXc0vyDuRUOL7hU3htWYRwIyqbOGXM2Spv1++YfQ20FO1HKaoPy1qTJJ7D/pXhkVeAvUHiUR6kE0W6SXUi1Hkr79rYYr0bJw/fYv/IIUofq+JuYk56Kqp/Kes2jHZcyc+2jny5eCnXKyGVOQAe/khRmB+3xVbaC4rf9uqM01FtaudhBtDwvbPtSgK4MMV+APufw0ENhYeWJDiK3Cvir1V6kaIPipNOfb00MK/Af6hJFBy1izWT09MM1oKzCTZ2i8qlImRyXSoXGvAmsdlfewN4qEDXIFDZlPJqZNEapSddkvokTQ7vW77PC6f4Xdlj+XoyYhiJ1gQ==
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>
  • Delivery-date: Mon, 11 Jan 2021 15:57:56 +0000
  • Ironport-sdr: wgJv8C+MkuOjoY9GywNZlspuUK0PPtUFuqRYe3hE+XpbtJWIEukNR4fGCF21KuLNXS197Rp7Qf G09Ev23CG3ZewQaqh1Feye70cTJwA8Zscdaw+IvvZ2AvkaKo7OGAEt4qtlZBhr//NVqsEJaRji GbCQnzmQaePkKDZbXxAAN66ZbFwDVmNCJ5Xg1Ovs/eggbPgSTysBBtPMgQpLDHAIyDX2m28tnE Lu68JmF+tScFi7nXtsZA5e024ih4gh0V2fxrHHoSC1BmHo9+bpBXwAJn/Pu0JvQOze0pfaJKlx zTE=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Jan 11, 2021 at 03:28:23PM +0100, Jan Beulich wrote:
> On 11.01.2021 15:23, Roger Pau Monné wrote:
> > On Tue, Nov 03, 2020 at 11:58:16AM +0100, Jan Beulich wrote:
> >> 32-bit guests may not depend upon the side effect of using ordinary
> >> 4-level paging when running on a 64-bit hypervisor. For L3 entry updates
> >> to take effect, they have to use a CR3 reload. Therefore there's no need
> >> to issue a paging structure invalidating TLB flush in this case.
> > 
> > I assume it's fine for the Xen linear page tables to be lkely out of
> > sync during the windows between the entry update and the CR3 reload?
> 
> Yes, because ...
> 
> > I wonder, won't something similar also apply to 64bit and L4 entries?
> 
> ... unlike 64-bit paging, PAE paging special cases the treatment
> of the 4 top level table entries. On bare metal they get loaded
> by the CPU upon CR3 load, not when walking page tables.

I wouldn't mind having this added to the commit message. In any case:

Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Thanks, Roger.



 


Rackspace

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