From: Hollis Blanchard Date: Fri, 25 Jul 2008 18:54:53 +0000 (-0500) Subject: KVM: powerpc: Map guest userspace with TID=0 mappings X-Git-Tag: v2.6.28-rc1~269^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49dd2c492895828a90ecdf889e7fe9cfb40a82a7;p=pandora-kernel.git KVM: powerpc: Map guest userspace with TID=0 mappings When we use TID=N userspace mappings, we must ensure that kernel mappings have been destroyed when entering userspace. Using TID=1/TID=0 for kernel/user mappings and running userspace with PID=0 means that userspace can't access the kernel mappings, but the kernel can directly access userspace. The net is that we don't need to flush the TLB on privilege switches, but we do on guest context switches (which are far more infrequent). Guest boot time performance improvement: about 30%. Signed-off-by: Hollis Blanchard Signed-off-by: Avi Kivity --- Reading git-diff-tree failed