KVM: PPC: Expand mmio_vsx_copy_type to cover VMX load/store element types
authorSimon Guo <wei.guo.simon@gmail.com>
Mon, 21 May 2018 05:24:25 +0000 (13:24 +0800)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 22 May 2018 09:52:55 +0000 (19:52 +1000)
commitda2a32b876e979d74f84746ae8d066e1d54b568f
tree19256f755e168942427f17e4bfb5e632822947d9
parentb01c78c297da45500c18adb99bcc1e08d96768d5
KVM: PPC: Expand mmio_vsx_copy_type to cover VMX load/store element types

VSX MMIO emulation uses mmio_vsx_copy_type to represent VSX emulated
element size/type, such as KVMPPC_VSX_COPY_DWORD_LOAD, etc. This
patch expands mmio_vsx_copy_type to cover VMX copy type, such as
KVMPPC_VMX_COPY_BYTE(stvebx/lvebx), etc. As a result,
mmio_vsx_copy_type is also renamed to mmio_copy_type.

It is a preparation for reimplementing VMX MMIO emulation.

Signed-off-by: Simon Guo <wei.guo.simon@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/emulate_loadstore.c
arch/powerpc/kvm/powerpc.c