WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH, RFC 1/4] linux: add new (replacement) mmap-batch

To: "Ian Campbell" <Ian.Campbell@xxxxxxxxxxxxx>, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH, RFC 1/4] linux: add new (replacement) mmap-batch ioctl
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 12 Jan 2010 07:45:36 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 11 Jan 2010 23:46:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C7712B7B.606B%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4B4B54DC02000078000291A2@xxxxxxxxxxxxxxxxxx> <C7712B7B.606B%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Keir Fraser <keir.fraser@xxxxxxxxxxxxx> 11.01.10 20:24 >>>
>On 11/01/2010 15:42, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:
>
>>>>  #define IOCTL_PRIVCMD_MMAPBATCH                                        \
>>>>         _IOC(_IOC_NONE, 'P', 3, sizeof(privcmd_mmapbatch_t))
>>>> +#define IOCTL_PRIVCMD_MMAP_BATCH                               \
>>>> +       _IOC(_IOC_NONE, 'P', 4, sizeof(privcmd_mmap_batch_t))
>>> 
>>> Distinguishing the old vs new ioctl by only a _ in the middle seems a
>>> bit horrid. MMAPBATCH2 would at least be less prone to confusion...
>> 
>> Otoh it clearly tells that the two are very similar...
>
>As does MMAPBATCH2. I actually strongly suggest IOCTL_PRIVCMD_MMAPBATCH_V2,
>which makes the situation even more crystal clear. Distinguishing based on a
>single underscore, to make the new name 'nice', is misplaced aestheticism.
>In particular, the tools end up referencing both names (for compatibility)
>and a clearer name makes the code more intelligible.

Okay, I'll change the name then. Before re-spinning the set, are there
any other items that need fixing? Comments on the questions raised?

And are there chances this will still make 4.0? If not, can we at least
add the interface definitions as place holders (similar to e.g. tmem
before 3.4), allowing consuming code to be prepared for the addition?

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel