summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2013-05-01 01:00:45 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-05-20 15:19:51 (GMT)
commit84df6e416de47ccca8845e584ef3683ad068b790 (patch)
tree45493db7d53613499dc80bdceb538a81c73f8f2c /virt
parentf24fff6a6f14a9938a200170bd9a0f40c238d58c (diff)
downloadlinux-fsl-qoriq-84df6e416de47ccca8845e584ef3683ad068b790.tar.xz
kvm: Add compat_ioctl for device control API
This API shouldn't have 32/64-bit issues, but VFS assumes it does unless told otherwise. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Gleb Natapov <gleb@redhat.com> Change-Id: Id9f68edb3e7974e2123fe747671602cffc7200cb Reviewed-on: http://git.am.freescale.net:8181/2582 Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 854c0e1..c8ed42b 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2195,6 +2195,9 @@ static int kvm_device_release(struct inode *inode, struct file *filp)
static const struct file_operations kvm_device_fops = {
.unlocked_ioctl = kvm_device_ioctl,
+#ifdef CONFIG_COMPAT
+ .compat_ioctl = kvm_device_ioctl,
+#endif
.release = kvm_device_release,
};