Re: [Xen-devel] [PATCH 1/2] x86/tlbflush: do not toggle the PGE CR4 bit unless necessary

2019-11-29 Thread Jan Beulich
On 25.11.2019 18:22, Roger Pau Monne wrote: > When PCID is not available Xen does a full tlbflush by toggling the > PGE bit in CR4. This is not necessary if PGE is not enabled, since a > flush can be performed by writing to CR3 in that case. > > Change the code in do_tlb_flush to only toggle the P

[Xen-devel] [PATCH 1/2] x86/tlbflush: do not toggle the PGE CR4 bit unless necessary

2019-11-25 Thread Roger Pau Monne
When PCID is not available Xen does a full tlbflush by toggling the PGE bit in CR4. This is not necessary if PGE is not enabled, since a flush can be performed by writing to CR3 in that case. Change the code in do_tlb_flush to only toggle the PGE bit in CR4 if it's already enabled, otherwise do th