From patchwork Wed Feb 18 14:26:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 7766 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n1IEQsYn030632 for ; Wed, 18 Feb 2009 14:26:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752344AbZBRO0x (ORCPT ); Wed, 18 Feb 2009 09:26:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752556AbZBRO0x (ORCPT ); Wed, 18 Feb 2009 09:26:53 -0500 Received: from mga02.intel.com ([134.134.136.20]:37813 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752354AbZBRO0w (ORCPT ); Wed, 18 Feb 2009 09:26:52 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 18 Feb 2009 06:21:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.38,229,1233561600"; d="scan'208";a="491001687" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.13.48]) by orsmga001.jf.intel.com with ESMTP; 18 Feb 2009 06:26:30 -0800 Received: from yasker by syang10-desktop with local (Exim 4.69) (envelope-from ) id 1LZnNr-0001Zf-3u; Wed, 18 Feb 2009 22:26:43 +0800 From: Sheng Yang To: Avi Kivity Cc: Marcelo Tosatti , kvm@vger.kernel.org, Sheng Yang Subject: [PATCH 1/4] KVM: Fix wrong usage of _IOR in assigned device interface Date: Wed, 18 Feb 2009 22:26:40 +0800 Message-Id: <1234967203-6031-2-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.5.6.3 In-Reply-To: <1234967203-6031-1-git-send-email-sheng@linux.intel.com> References: <1234967203-6031-1-git-send-email-sheng@linux.intel.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org _IOR for copy_to_user and _IOW for copy_from_user... Noticed by Avi. Signed-off-by: Sheng Yang --- include/linux/kvm.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 2163b3d..d742cbf 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h @@ -469,10 +469,10 @@ struct kvm_irq_routing { _IOW(KVMIO, 0x67, struct kvm_coalesced_mmio_zone) #define KVM_UNREGISTER_COALESCED_MMIO \ _IOW(KVMIO, 0x68, struct kvm_coalesced_mmio_zone) -#define KVM_ASSIGN_PCI_DEVICE _IOR(KVMIO, 0x69, \ +#define KVM_ASSIGN_PCI_DEVICE _IOW(KVMIO, 0x69, \ struct kvm_assigned_pci_dev) #define KVM_SET_GSI_ROUTING _IOW(KVMIO, 0x6a, struct kvm_irq_routing) -#define KVM_ASSIGN_IRQ _IOR(KVMIO, 0x70, \ +#define KVM_ASSIGN_IRQ _IOW(KVMIO, 0x70, \ struct kvm_assigned_irq) #define KVM_REINJECT_CONTROL _IO(KVMIO, 0x71)