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

Re: [PATCH v6 5/6] arm/dom0less: assign dom0less guests to cpupools


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Mon, 11 Apr 2022 08:54:12 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=jnbKtJligJnRP+5Lj7UlTsJYXM05nvpkuqK7qPSGwYw=; b=E/FK8cvdnKedKxBb3lPLG3IdDEWvFXWbDf8fHrfE2bNrpIr1Udvjy18/UzwzbNze5ApOOe6TLFerT+wLoOCFn4nufjkadRp7/MKQbL1niJbTTYMNUw+qAN/Sj79d+XB29Vc6dgca9fnPeSOqzZTS9wKRf9n/2rFxwASGViZzK3spCnRUNHEfPq/M7fuVqKFjn6dLMPkYGjAm/COM9Ysp+wsczaQf9ewrnLX1QGeFrQvzqqzXDbiG3HejnGGQZQbhPgJH+5/kTH6cHbyDQ955ohXand9c3AJWwx1D3Tsf8M7ySqAiXGQZojfCnHFxButQxpDH2F4A7QujL3KWRI9TTA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dF5Cs08mAifiaX3XDxf7VAxLaXvkg6So9pcAZI+l0KEFuBk+1bFs4NuqCgTTNbeMgS9Gy8GiNlquKEgFTrKPoQrF2C/U4m/TmXnkg3EjiAUAoNzuYUPl3Bjmycm6XLrfBQbScDLHBCP0N+iBeaCbwZ5QZaHtCEAd5HrGiRiSMUiZT4yzlCpTIViwa7dVYiwNXaKA1jqBju1MJBtkzL/ibQiYrVB+OP5xJ+MGvAVz5iF+3CwMM7OME3F6GaK/JnehbxbqQZc7GVWoCdItQE+mUUwnAnpGlE/18wUAq9QaUQ7SfRG8bbufW8RRtUwPuKzKdakTwkkyAeaeMtGQTvipig==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Juergen Gross <jgross@xxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 11 Apr 2022 08:54:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYSyUS0CLVSvR2nk+ITbzc2Ry0wKzlusgAgAAH7oCAAAy5gIAADjGAgAAPS4CABIA3gA==
  • Thread-topic: [PATCH v6 5/6] arm/dom0less: assign dom0less guests to cpupools


> On 8 Apr 2022, at 13:10, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 08.04.2022 13:15, Luca Fancellu wrote:
>> 
>> 
>>> On 8 Apr 2022, at 11:24, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>>> 
>>> On 08.04.2022 11:39, Luca Fancellu wrote:
>>>> 
>>>> 
>>>>> On 8 Apr 2022, at 10:10, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>>>>> 
>>>>> On 08.04.2022 10:45, Luca Fancellu wrote:
>>>>>> @@ -106,6 +106,8 @@ struct xen_domctl_createdomain {
>>>>>> /* Per-vCPU buffer size in bytes. 0 to disable. */
>>>>>> uint32_t vmtrace_size;
>>>>>> 
>>>>>> + uint32_t cpupool_id;
>>>>> 
>>>>> This could do with a comment explaining default behavior. In particular
>>>>> I wonder what 0 means: Looking at cpupool_destroy() I can't see that it
>>>>> would be impossible to delete pool 0 (but there may of course be
>>>>> reasons elsewhere, e.g. preventing pool 0 to ever go empty) - Jürgen?
>>>>> Yet if pool 0 can be removed, zero being passed in here should imo not
>>>>> lead to failure of VM creation. Otoh I understand that this would
>>>>> already happen ahead of your change, preventing of which would
>>>>> apparently possible only via passing CPUPOOLID_NONE here.
>>>> 
>>>> Pool-0 can’t be emptied because Dom0 is sitting there (the patch is 
>>>> modifying
>>>> cpupool_id only for DomUs).
>>> 
>>> But we're talking about dom0less as per the subject of the patch here.
>> 
>> Domains started using dom0less feature are not privileged and can’t do any 
>> operation
>> on cpu pools, that’s why I thought about Dom0.
> 
> It's all a matter of XSM policy what a domain may or may not be able
> to carry out.

Yes you are right, however I didn’t see so far this use case with a domU and 
the tool stack,
probably because it would need also xenstore etc… I’m aware that there is some 
work going
on to enable it also for dom0less domUs, so my question is:

Do you see this as a blocker for this patch? Are you ok if I send this patch 
with just the comment
below or in your opinion this patch requires some other work?

> 
>>>> I thought the name was self explanatory, but if I have to put a comment, 
>>>> would
>>>> It work something like that:
>>>> 
>>>> /* Cpupool id where the domain will be assigned on creation */
>>> 
>>> I don't view this kind of comment as necessary. I was really after
>>> calling out default behavior, along the lines of "0 to disable" that
>>> you can see in patch context.
>> 
>> Ok, could this work?
>> 
>> /* Domain cpupool id on creation. Default 0 as Pool-0 is always present. */
> 
> Hmm, I may have misguided you by talking about "default". There's no
> default here, as it's the caller's responsibility to set the field,
> and what's there will be used. Maybe "CPU pool to use; specify 0
> unless a specific existing pool is to be used".

Thank you, I will use it and update the patch.

> 
> Jan


 


Rackspace

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