]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28684cdc827c21a9a01e429e4b38a17af977812f
tree11c612dc66c96e619c141f8f82f41a0b3e637eac
parent753a34756cde3d52a5f3403e7fd8b0d68e1664ff
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