KVM: PPC: Separate loadstore emulation from priv emulation
authorAlexander Graf <agraf@suse.de>
Wed, 18 Jun 2014 12:53:49 +0000 (14:53 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 28 Jul 2014 16:30:10 +0000 (18:30 +0200)
Today the instruction emulator can get called via 2 separate code paths. It
can either be called by MMIO emulation detection code or by privileged
instruction traps.

This is bad, as both code paths prepare the environment differently. For MMIO
emulation we already know the virtual address we faulted on, so instructions
there don't have to actually fetch that information.

Split out the two separate use cases into separate files.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/Makefile
arch/powerpc/kvm/emulate.c
arch/powerpc/kvm/emulate_loadstore.c [new file with mode: 0644]
arch/powerpc/kvm/powerpc.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge