From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: ioctl number overlapped? Date: Wed, 29 Jul 2009 15:11:27 +0300 Message-ID: <4A703C6F.7040209@redhat.com> References: <200907211446.44873.sheng.yang@intel.com> <20090721065146.GW5638@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Yang, Sheng" , kvm@vger.kernel.org, Marcelo Tosatti To: Gleb Natapov Return-path: Received: from mx2.redhat.com ([66.187.237.31]:33324 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754415AbZG2MGo (ORCPT ); Wed, 29 Jul 2009 08:06:44 -0400 In-Reply-To: <20090721065146.GW5638@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 07/21/2009 09:51 AM, Gleb Natapov wrote: > On Tue, Jul 21, 2009 at 02:46:44PM +0800, Yang, Sheng wrote: > >> Happen to see this: >> >> include/linux.kvm.h >> >> 503 #define KVM_IRQ_LINE_STATUS _IOWR(KVMIO, 0x67, struct kvm_irq_level) >> 504 #define KVM_REGISTER_COALESCED_MMIO \ >> 505 _IOW(KVMIO, 0x67, struct kvm_coalesced_mmio_zone) >> >> Both ioctl use 0x67, and the code has released to v2.6.30... >> >> > I don't think they are really overlapping. One of them is RW another W > (haven't checked if the structure sizeof is different). > > Nevertheless we shouldn't do this. -- error compiling committee.c: too many arguments to function