]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: PPC: Use PACA backed shadow vcpu
authorAlexander Graf <agraf@suse.de>
Fri, 8 Jan 2010 01:58:03 +0000 (02:58 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 11 Jan 2010 09:14:10 +0000 (11:14 +0200)
commit7d01b4c3ed2bb33ceaf2d270cb4831a67a76b51b
tree17b6b240bb17b77e1fc45893af2aa522824683fd
parentad4420c0d21a1261cc02e9627f77bcde7f025de5
KVM: PPC: Use PACA backed shadow vcpu

We're being horribly racy right now. All the entry and exit code hijacks
random fields from the PACA that could easily be used by different code in
case we get interrupted, for example by a #MC or even page fault.

After discussing this with Ben, we figured it's best to reserve some more
space in the PACA and just shove off some vcpu state to there.

That way we can drastically improve the readability of the code, make it
less racy and less complex.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/include/asm/kvm_book3s_64_asm.h
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/include/asm/paca.h
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_64_interrupts.S
arch/powerpc/kvm/book3s_64_rmhandlers.S
arch/powerpc/kvm/book3s_64_slb.S