lkml.org 
[lkml]   [2015]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: NUMA_BALANCING and Xen PV guest regression in 3.20-rc0
From
On Thu, Feb 19, 2015 at 5:05 PM, Kirill A. Shutemov
<kirill@shutemov.name> wrote:
>
> I'm feeling I miss very basic background on how Xen works, but why does it
> set _PAGE_GLOBAL on userspace entries? It sounds strange to me.

It is definitely strange. I'm guessing that it's some ancient Xen hack
for the early Intel virtualization that used to have absolutely
horrendous vmenter/exit costs, including very much the TLB overhead. \

These days, Intel has address space identifiers, and doesn't flush the
whole TLB on VM entry/exit, so it's probably pointless to play games
with the global bit.

I get the feeling that a lot of Xen stuff is that kind of "legacy
hacks" that should just be cleaned up, but nobody has the energy or
the interest. There was the whole odd crazy SHARED_KERNEL_PMD hackery
too.

Linus


\
 
 \ /
  Last update: 2015-02-20 03:01    [W:0.097 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site