KVM: PPC: Remove mmio_vsx_tx_sx_enabled in KVM MMIO emulation
authorSimon Guo <wei.guo.simon@gmail.com>
Mon, 28 May 2018 01:48:26 +0000 (09:48 +0800)
committerPaul Mackerras <paulus@ozlabs.org>
Wed, 18 Jul 2018 05:14:45 +0000 (15:14 +1000)
commit4eeb85568e5653c71d901f7593d3f3e7e2a5414f
tree5af1dc881d288592a9f2e3811cc2eae0fc1c87e6
parent6f0d349d922ba44e4348a17a78ea51b7135965b1
KVM: PPC: Remove mmio_vsx_tx_sx_enabled in KVM MMIO emulation

Originally PPC KVM MMIO emulation uses only 0~31#(5 bits) for VSR
reg number, and use mmio_vsx_tx_sx_enabled field together for
0~63# VSR regs.

Currently PPC KVM MMIO emulation is reimplemented with analyse_instr()
assistance.  analyse_instr() returns 0~63 for VSR register number, so
it is not necessary to use additional mmio_vsx_tx_sx_enabled field
any more.

This patch extends related reg bits (expand io_gpr to u16 from u8
and use 6 bits for VSR reg#), so that mmio_vsx_tx_sx_enabled can
be removed.

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