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 2/6] xen-gntdev: Change page limit to be global i

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2/6] xen-gntdev: Change page limit to be global instead of per-open
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Wed, 15 Dec 2010 16:27:48 -0800
Cc: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 15 Dec 2010 16:28:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1292406632.32368.2625.camel@xxxxxxxxxxxxxxxxxxxxxx>
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: <1292338553-20575-1-git-send-email-dgdegra@xxxxxxxxxxxxx> <1292338553-20575-3-git-send-email-dgdegra@xxxxxxxxxxxxx> <4D07DDB3.1070304@xxxxxxxx> <4D07E4B8.7010406@xxxxxxxxxxxxx> <1292406632.32368.2625.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.7
On 12/15/2010 01:50 AM, Ian Campbell wrote:
> On Tue, 2010-12-14 at 21:42 +0000, Daniel De Graaf wrote:
>> On 12/14/2010 04:12 PM, Jeremy Fitzhardinge wrote:
>>> On 12/14/2010 06:55 AM, Daniel De Graaf wrote:
>>>> Because there is no limitation on how many times a user can open a
>>>> given device file, an per-file-description limit on the number of
>>>> pages granted offers little to no benefit. Change to a global limit
>>>> and remove the ioctl() as the parameter can now be changed via sysfs.
>>> Does anyone use this ioctl?  Wouldn't it be safer to replace it with a
>>> no-op version?
>>>
>>>     J
>>>
>> I do not know of any users. If it's preferred to replace with a noop ioctl
>> instead of the current -ENOSYS return, that's easy to do.
> It's called by xc_gnttab_set_max_grants in libxc, although I don't see
> any callers of that function.
>
> We should probably also remove the library function.

Seems like the right thing to do.  If its original semantics were iffy
and nobody is using it, then there's no point keeping vestigial code around.

    J

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

<Prev in Thread] Current Thread [Next in Thread>