[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/8] xen/evtchn: modify evtchn_alloc_unbound to allocate specified port


  • To: Julien Grall <julien@xxxxxxx>, Rahul Singh <Rahul.Singh@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 20 Jul 2022 15:34:00 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=t5lc6f/KKPjMnE4ho6v1CXA8VObImOpiOEO4gX459nY=; b=Bb4c0YUbijF5ePm54/D+H7GEBEAmuoKq3kVi+TW98Sn8haYjwbluxtYr8nxqW1kwLzq4JeJo4AVpbpV6wy2KvlDddMFjs20ZbBXhQ4rfOT2UarURQGYga9Uwy+gBqmHzQv2e3x5vP3m1lvX4jeARyqI4zatb71nIDCItB+TqbcP7/3S4COZT93J1GPRcl+2ZNds1uQEE9AoLlMfuhsPkRks7wxzG2n5zQav+k9ukgzPq/HCHn7S+Jupnbcmr/EhfOJO84eKVuxINwmOA6EddpssmiaEednU/y1TQHCIX1ErBAtI1KPNKhvB9pKeNFXx0uR48hHlmOSqoWH7oXTTCmA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LqNYXbnbWwWaI6Qkngvd+NDonx6ne6OlbELaJ67cpXVbS6fHB8GGfjkLvx9Ov0XVXABGYK2OT5/RspZJ2jSEuI3PWS0uLnGfb9U8RN2jCAXcb/T9CjvrYPkduXx0qWXQ7P/8ccuqA3uv7fEpwYNbLo7pC3eYUFbsd22IgoeUdWO+9ZoL/Szbndqns4bWjOBuk9LhLvFe7QmW4XTJcuxc5jF5gRTGTDevkAG2ex4gXpYW2M3xWdYqq9QMAbjXBKD/S3I3wMLG+eziG0zrfk2uNT1+Beo+ufSONy86NmJfaZjA56Q5AGcQ/wiShvwWzxiLjxzR6Z4EOvmcgfJ2ckh8yg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 20 Jul 2022 13:34:07 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20.07.2022 13:16, Julien Grall wrote:
> On 20/07/2022 10:59, Rahul Singh wrote:
>>> On 13 Jul 2022, at 1:29 pm, Julien Grall <julien@xxxxxxx> wrote:
>>> On 13/07/2022 13:12, Bertrand Marquis wrote:
>>>>> On 13 Jul 2022, at 12:31, Julien Grall <julien@xxxxxxx> wrote:
>>>>>> I can't
>>>>>> see why it would be wrong to have a more tight limit on static ports
>>>>>> than on traditional ("dynamic") ones. Even if only to make sure so
>>>>>> many dynamic ones are left.
>>>>>
>>>>> This is similar to Xen forbidding to close a static port: it is not the 
>>>>> hypervisor business to check that there are enough event channel ports 
>>>>> freed for dynamic allocation.
>>>> On other side we need to be cautious not to add too much complexity in the 
>>>> code by trying to make things always magically work.
>>>> If you want Xen to be accessible to non expert by magically working all 
>>>> the time, there would be a lot of work to do.
>>>
>>> It is not clear to me whether you are referring to a developper or admin 
>>> here.
>>>
>>> On the admin side, we need to make sure they have an easy way to configure 
>>> event channels. One knob is always going to easier than two knobs.
>>>
>>> On the developper side, this could be resolved by better documentation in 
>>> the code/interface.
>>>
>>> Cheers,
>>
>> To conclude the discussion, If everyone agree I will add the below patch or 
>> similar in the next version to restrict the
>> max number of evtchn supported as suggested.
> 
> I am fine if the limit for domU is fixed by Xen for now. However, for 
> dom0, 4096 is potentially too low if you have many PV drivers (each 
> backend will need a few event channels). So I don't think this wants to 
> be fixed by Xen.
> 
> I am not entirely sure we want to limit the number of event channels for 
> dom0. But if you want to, then this will have to be done via a command 
> line option (or device-tree property).

Imo there would need to be a very good reason to limit Dom0's port range.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.