]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1bb342db3273e96d3a8d35f0e67c9bc05b60dec8
treeb8ce894e8738e6711b5593a28a116db5567fe31f
parent57c9f542b138b0af56c246ea9a561da10140944b
KVM: PPC: Separate loadstore emulation from priv emulation

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