From patchwork Wed May 1 01:00:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Wood X-Patchwork-Id: 2507001 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 20899DFB75 for ; Wed, 1 May 2013 01:00:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933354Ab3EABAx (ORCPT ); Tue, 30 Apr 2013 21:00:53 -0400 Received: from am1ehsobe001.messaging.microsoft.com ([213.199.154.204]:49548 "EHLO am1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933439Ab3EABAw (ORCPT ); Tue, 30 Apr 2013 21:00:52 -0400 Received: from mail95-am1-R.bigfish.com (10.3.201.251) by AM1EHSOBE021.bigfish.com (10.3.207.143) with Microsoft SMTP Server id 14.1.225.23; Wed, 1 May 2013 01:00:50 +0000 Received: from mail95-am1 (localhost [127.0.0.1]) by mail95-am1-R.bigfish.com (Postfix) with ESMTP id AA9121C0233; Wed, 1 May 2013 01:00:50 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1f42h1fc6h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839h944hd25hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h14ddh1504h1537h153bh162dh1631h1758h18e1h1946h19b5h1ad9h1b0ah1d0ch1d2eh1155h) Received: from mail95-am1 (localhost.localdomain [127.0.0.1]) by mail95-am1 (MessageSwitch) id 1367370048826916_29002; Wed, 1 May 2013 01:00:48 +0000 (UTC) Received: from AM1EHSMHS002.bigfish.com (unknown [10.3.201.249]) by mail95-am1.bigfish.com (Postfix) with ESMTP id BDE34460049; Wed, 1 May 2013 01:00:48 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by AM1EHSMHS002.bigfish.com (10.3.207.102) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 1 May 2013 01:00:48 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server (TLS) id 14.2.328.11; Wed, 1 May 2013 01:00:46 +0000 Received: from home.buserror.net ([10.214.82.239]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id r4110jng007246; Tue, 30 Apr 2013 18:00:45 -0700 Date: Tue, 30 Apr 2013 20:00:45 -0500 From: Scott Wood To: Gleb Natapov , Marcelo Tosatti CC: , Subject: [PATCH] kvm: Add compat_ioctl for device control API Message-ID: <20130501010045.GA14416@home.buserror.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginatorOrg: freescale.com Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This API shouldn't have 32/64-bit issues, but VFS assumes it does unless told otherwise. Signed-off-by: Scott Wood --- 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, };