]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40942ad988ff0ac40f45193828b921f93496c41b
treef2a528fb83219a748c86d0c03efd54c6980165ab
parenta4456f557b164a306be1e6e4926ce8820b090950
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