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)
commitd69614a295aef72f8fb22da8e3ccf1a8f19a7ffc
treeb8ce894e8738e6711b5593a28a116db5567fe31f
parentc12fb43c2f6d6a57a4e21afe74ff56485d699ee7
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
This page took 0.026924 seconds and 5 git commands to generate.