mips/kvm: Use ARRAY_SIZE() instead of hardcoded constants in kvm_arch_vcpu_ioctl_...
authorDavid Daney <david.daney@cavium.com>
Thu, 23 May 2013 16:49:08 +0000 (09:49 -0700)
committerGleb Natapov <gleb@redhat.com>
Mon, 3 Jun 2013 07:58:53 +0000 (10:58 +0300)
commit8d17dd041a548b016ff401d36be6b2563c940ed5
tree11c612dc66c96e619c141f8f82f41a0b3e637eac
parentbf32ebf66d74e8a196256d7ac2a4f3c6938c614a
mips/kvm: Use ARRAY_SIZE() instead of hardcoded constants in kvm_arch_vcpu_ioctl_{s,g}et_regs

Also we cannot set special zero register, so force it to zero.

Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Sanjay Lal <sanjayl@kymasys.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/kvm_mips.c