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

Re: [PATCH 4/5] x86/PV: restrict TLB flushing after mod_l[234]_entry()


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Tue, 3 Nov 2020 11:14:34 +0000
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>
  • Delivery-date: Tue, 03 Nov 2020 11:14:49 +0000
  • Ironport-sdr: /gGnsiUzLgUOel4dU4OjzAt6FnV5GIz5kF9b5Vfhn+w8i0TykcZzyzeHJ4Xy8vAln4HPjhlDVU ozGiE8qRKe3fHYWLhncQNoOGdo6y9Ki0cLm2tQxb0ajUdbnhcjZEDUBQhcnwF6vgaPv2HW7YFi OWcuHhjmhva+V7TE9vVi2AtnFo9fzGkUp8uK4447RpPURQ80nc3y2Xgl9KUeE5E43RvI0VyXTS eDqxX6FI01pPW/cEA8ckHfmeZLgMXITZGu3RkAL8DSc5Q6bsWSYdI5aifo8xvwoVLHqdW6WeDL dTY=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 03/11/2020 10:57, Jan Beulich wrote:
> Just like we avoid to invoke remote root pt flushes when all uses of an
> L4 table can be accounted for locally, the same can be done for all of
> L[234] for the linear pt flush when the table is a "free floating" one,
> i.e. it is pinned but not hooked up anywhere. While this situation
> doesn't occur very often, it can be observed.
>
> Since this breaks one of the implications of the XSA-286 fix, drop the
> flush_root_pt_local variable again and set ->root_pgt_changed directly,
> just like it was before that change.
>
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> ---
> While adjusting the big comment that was added for XSA-286 I wondered
> why it talks about the "construction of 32bit PV guests". How are 64-bit
> PV guests different in this regard?

Because the sole caller is move_l3_below_4G() for 32bit PV guests which
don't support folded CR3's.

It's not impossible that future changes to PV construction might change
this, but it is highly unlikely in practice.

~Andrew



 


Rackspace

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