Re: [Xen-devel] [PATCH] x86: slightly reduce Meltdown band-aid overhead

2018-01-29 Thread Jan Beulich
>>> On 29.01.18 at 19:55, wrote: > On 18/01/18 15:39, Jan Beulich wrote: >> I'm not sure why I didn't do this right away: By avoiding to make any >> of the cloned directmap PTEs global, there's no need to fiddle with > > "avoiding to make" is a very odd way of phrasing this. Something like > "By

Re: [Xen-devel] [PATCH] x86: slightly reduce Meltdown band-aid overhead

2018-01-29 Thread Andrew Cooper
On 29/01/18 18:55, Andrew Cooper wrote: > On 18/01/18 15:39, Jan Beulich wrote: >> Along those lines the "sync" IPI after L4 entry updates now needs to become a >> real (and global) flush IPI, so that inside Xen we'll also pick up such >> changes. > The entry paths don't tick the TLB clock, so we a

Re: [Xen-devel] [PATCH] x86: slightly reduce Meltdown band-aid overhead

2018-01-29 Thread Andrew Cooper
On 18/01/18 15:39, Jan Beulich wrote: > I'm not sure why I didn't do this right away: By avoiding to make any > of the cloned directmap PTEs global, there's no need to fiddle with "avoiding to make" is a very odd way of phrasing this.  Something like "By avoiding the use of global PTEs in the clon

Re: [Xen-devel] [PATCH] x86: slightly reduce Meltdown band-aid overhead

2018-01-23 Thread George Dunlap
On 01/18/2018 03:39 PM, Jan Beulich wrote: > I'm not sure why I didn't do this right away: By avoiding to make any > of the cloned directmap PTEs global, there's no need to fiddle with > CR4.PGE on any of the entry paths. Only the exit paths need to flush > global mappings. > > The reduced flushin

[Xen-devel] [PATCH] x86: slightly reduce Meltdown band-aid overhead

2018-01-18 Thread Jan Beulich
I'm not sure why I didn't do this right away: By avoiding to make any of the cloned directmap PTEs global, there's no need to fiddle with CR4.PGE on any of the entry paths. Only the exit paths need to flush global mappings. The reduced flushing, however, implies that we now need to have interrupts