linux/arch/powerpc/kvm
Hollis Blanchard fe4e771d5c KVM: ppc: fix userspace mapping invalidation on context switch
We used to defer invalidating userspace TLB entries until jumping out of the
kernel. This was causing MMU weirdness most easily triggered by using a pipe in
the guest, e.g. "dmesg | tail". I believe the problem was that after the guest
kernel changed the PID (part of context switch), the old process's mappings
were still present, and so copy_to_user() on the "return to new process" path
ended up using stale mappings.

Testing with large pages (64K) exposed the problem, probably because with 4K
pages, pressure on the TLB faulted all process A's mappings out before the
guest kernel could insert any for process B.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
2008-12-31 16:52:26 +02:00
..
44x.c KVM: ppc: create struct kvm_vcpu_44x and introduce container_of() accessor 2008-12-31 16:52:22 +02:00
44x_emulate.c KVM: ppc: fix userspace mapping invalidation on context switch 2008-12-31 16:52:26 +02:00
44x_tlb.c KVM: ppc: fix userspace mapping invalidation on context switch 2008-12-31 16:52:26 +02:00
44x_tlb.h KVM: ppc: refactor instruction emulation into generic and core-specific pieces 2008-12-31 16:52:21 +02:00
Kconfig KVM: ppc: fix Kconfig constraints 2008-12-31 16:52:25 +02:00
Makefile KVM: ppc: refactor instruction emulation into generic and core-specific pieces 2008-12-31 16:52:21 +02:00
booke.c KVM: ppc: optimize irq delivery path 2008-12-31 16:52:23 +02:00
booke.h KVM: ppc: optimize irq delivery path 2008-12-31 16:52:23 +02:00
booke_interrupts.S KVM: ppc: create struct kvm_vcpu_44x and introduce container_of() accessor 2008-12-31 16:52:22 +02:00
emulate.c KVM: ppc: improve trap emulation 2008-12-31 16:52:24 +02:00
powerpc.c KVM: ppc: adjust vcpu types to support 64-bit cores 2008-12-31 16:52:22 +02:00