linux/arch/powerpc/kvm
Hollis Blanchard 49dd2c4928 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 <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
2008-10-15 10:15:16 +02:00
..
44x_tlb.c KVM: powerpc: Map guest userspace with TID=0 mappings 2008-10-15 10:15:16 +02:00
44x_tlb.h KVM: ppc: PowerPC 440 KVM implementation 2008-04-27 18:21:39 +03:00
booke_guest.c KVM: powerpc: Map guest userspace with TID=0 mappings 2008-10-15 10:15:16 +02:00
booke_host.c KVM: ppc: PowerPC 440 KVM implementation 2008-04-27 18:21:39 +03:00
booke_interrupts.S KVM: powerpc: Map guest userspace with TID=0 mappings 2008-10-15 10:15:16 +02:00
emulate.c KVM: powerpc: Map guest userspace with TID=0 mappings 2008-10-15 10:15:16 +02:00
Kconfig KVM: ppc: enable KVM_TRACE building for powerpc 2008-10-15 10:15:15 +02:00
Makefile KVM: ppc: enable KVM_TRACE building for powerpc 2008-10-15 10:15:15 +02:00
powerpc.c KVM: ppc: Write only modified shadow entries into the TLB on exit 2008-10-15 10:15:16 +02:00