diff options
author | Scott Wood <scottwood@freescale.com> | 2013-05-01 05:00:45 +0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-05-05 13:14:15 +0400 |
commit | db6ae6158186a17165ef990bda2895ae7594b039 (patch) | |
tree | 931624cd249f50b15ffcb62ed88245d72cc605ff /virt | |
parent | dfd2bb8426e203a7a97cd9b2d494d43d8df2cf8a (diff) | |
download | linux-db6ae6158186a17165ef990bda2895ae7594b039.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>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index e6e7abe16d05..8fd325a0a1b1 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -2221,6 +2221,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, }; |