powerpc/kvm: Sync guest visible MMU state
authorAlexander Graf <agraf@suse.de>
Mon, 30 Nov 2009 03:02:02 +0000 (03:02 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 Dec 2009 05:02:50 +0000 (16:02 +1100)
commite15a113700324f7fdcee95589875daed2b98a2fe
treef2a528fb83219a748c86d0c03efd54c6980165ab
parentc0cefebc0b6ae1bc4c92672223a54e1ee96ea7f0
powerpc/kvm: Sync guest visible MMU state

Currently userspace has no chance to find out which virtual address space we're
in and resolve addresses. While that is a big problem for migration, it's also
unpleasent when debugging, as gdb and the monitor don't work on virtual
addresses.

This patch exports enough of the MMU segment state to userspace to make
debugging work and thus also includes the groundwork for migration.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/kvm.h
arch/powerpc/include/asm/kvm_asm.h
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_64_emulate.c
arch/powerpc/kvm/book3s_64_mmu.c
arch/powerpc/kvm/powerpc.c
include/linux/kvm.h