public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: Add compat_ioctl for device control API
@ 2013-05-01  1:00 Scott Wood
  2013-05-05  9:16 ` Gleb Natapov
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Wood @ 2013-05-01  1:00 UTC (permalink / raw)
  To: Gleb Natapov, Marcelo Tosatti; +Cc: kvm, agraf

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>
---
 virt/kvm/kvm_main.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 54a14fa..ee0adad 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,
 };
 
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kvm: Add compat_ioctl for device control API
  2013-05-01  1:00 [PATCH] kvm: Add compat_ioctl for device control API Scott Wood
@ 2013-05-05  9:16 ` Gleb Natapov
  0 siblings, 0 replies; 2+ messages in thread
From: Gleb Natapov @ 2013-05-05  9:16 UTC (permalink / raw)
  To: Scott Wood; +Cc: Marcelo Tosatti, kvm, agraf

On Tue, Apr 30, 2013 at 08:00:45PM -0500, Scott Wood wrote:
> 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>
Applied, thanks.

> ---
>  virt/kvm/kvm_main.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
> index 54a14fa..ee0adad 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,
>  };
>  
> -- 
> 1.7.10.4

--
			Gleb.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-05  9:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-01  1:00 [PATCH] kvm: Add compat_ioctl for device control API Scott Wood
2013-05-05  9:16 ` Gleb Natapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox