mips/kvm: Use ENOIOCTLCMD to indicate unimplemented ioctls.
authorDavid Daney <david.daney@cavium.com>
Thu, 23 May 2013 16:49:10 +0000 (09:49 -0700)
committerGleb Natapov <gleb@redhat.com>
Mon, 3 Jun 2013 07:58:55 +0000 (10:58 +0300)
commited829857b36bc0155d85b661ab227df57ac898f3
tree836af30ab91dfaef5aa22c6ce4bdf0b8db5e9a17
parent4c73fb2b05192f2c817940b38015c36007379380
mips/kvm: Use ENOIOCTLCMD to indicate unimplemented ioctls.

The Linux Way is to return -ENOIOCTLCMD to the vfs when an
unimplemented ioctl is requested.  Do this in kvm_mips instead of a
random mixture of -ENOTSUPP and -EINVAL.

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