]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Split out code from book3s.c into book3s_pr.c
authorPaul Mackerras <paulus@samba.org>
Wed, 29 Jun 2011 00:17:58 +0000 (00:17 +0000)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:47 +0000 (13:16 +0300)
commit52eca6b17b1cdd4a47829a21ea64e8ae4000bef4
tree1e31d94a782229cf363779645247de49b0d7a76d
parent6e7888179145c1c701183c4e6334d2b87910a3d5
KVM: PPC: Split out code from book3s.c into book3s_pr.c

In preparation for adding code to enable KVM to use hypervisor mode
on 64-bit Book 3S processors, this splits book3s.c into two files,
book3s.c and book3s_pr.c, where book3s_pr.c contains the code that is
specific to running the guest in problem state (user mode) and book3s.c
contains code which should apply to all Book 3S processors.

In doing this, we abstract some details, namely the interrupt offset,
updating the interrupt pending flag, and detecting if the guest is
in a critical section.  These are all things that will be different
when we use hypervisor mode.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/Makefile
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_pr.c [new file with mode: 0644]