Re: [Qemu-devel] [PATCH v4 7/7] mips/kvm: Support MSA in MIPS KVM guests

2016-02-02 Thread Leon Alrae
On 02/02/16 12:39, James Hogan wrote: > I can use restore_msa_fp_status(env); here, and actually the FP one > above (in previous patch) can change to restore_fp_status(env); too, > since it does the same thing. This sounds good. > I've rebased and resolved the uint64 thing too, would you like a r

Re: [Qemu-devel] [PATCH v4 7/7] mips/kvm: Support MSA in MIPS KVM guests

2016-02-02 Thread James Hogan
Hi Leon, On Tue, Feb 02, 2016 at 09:58:46AM +, Leon Alrae wrote: > Hi James, > > On 18/12/15 10:46, James Hogan wrote: > > @@ -611,17 +664,51 @@ static int kvm_mips_get_fpu_registers(CPUState *cs) > > restore_flush_mode(env); > > } > > > > -/* Floating point re

Re: [Qemu-devel] [PATCH v4 7/7] mips/kvm: Support MSA in MIPS KVM guests

2016-02-02 Thread Leon Alrae
Hi James, On 18/12/15 10:46, James Hogan wrote: > @@ -611,17 +664,51 @@ static int kvm_mips_get_fpu_registers(CPUState *cs) > restore_flush_mode(env); > } > > -/* Floating point registers */ > -for (i = 0; i < 32; ++i) { > -if (env->CP0_Status &

[Qemu-devel] [PATCH v4 7/7] mips/kvm: Support MSA in MIPS KVM guests

2015-12-18 Thread James Hogan
Support the new KVM_CAP_MIPS_MSA capability, which allows MIPS SIMD Architecture (MSA) to be exposed to the KVM guest. The capability is enabled if the guest core has MSA according to its Config3 register. Various config bits are now writeable so that KVM is aware of the configuration (Config3.MSA