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

Re: [PATCH v7 07/12] xen: enable Dom0 to use SVE feature


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Tue, 23 May 2023 10:21:38 +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=8NbhuJvCEb4CBeWUGnXX/Hb2tIitJI+3/qVN7WX+HUA=; b=iPoLw10OnhiZAOLy90q61uQ7aVy/knsbHCwje1gzgjIkE34c5K8x40wPv2PqiE+0QvkVOCfv4xBaopzHy9uMbxkwnl8nGeLQQDQ1JvwIhuEJk3QmWbMtMRc7+6AwKBdZqU18X0VLoPjLk11heK4ghwGM3OPV5HYFCkZFvuCWZ60zugOQTayrMTj6bFTLawegyB8KJ1ivd4mUXwzSohN+H49Jrn/A0jyzSsE5D4wcw946fE8sGI3NYs/TFtWmjVbtNuoXN2lX1nlK9jE84LycxTNnQQrLDQvj8icyJBRIVjHSwafBFTcKLML1HFt6C3B7Q5+Vh8fr7NPclFh9ez0+zg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ImkGYcI1p5giYYJ/az1+UMuXjNxAf6ltTUqJcs5yhXTnE3a9UhwHtF3ML6Kb0A9MeK5oASt8TLkc7gTZk4y4GfYox7Zl7r43tTJh2eQ/yjri7ijngUO754ygXD7/Ewql4Q21nXdvh4C2rl22IjP4oelVlC7eWxlAp0iuVl2McpHguJNBoH9I/CTDnl5gDrASkIsySvrZA4PswaWNxYIZZXT00Si1AVZkwuDgfmHMU9rwnEx1ru3iEg1Gk/XpZs0x9uyEQqIPPW/gWC0X78annVikPWu18fLQjllH048A8Zo+Cy6s/GfDDy1CmuRfBh3HvTiWQF3eYCF4gic9LfqQAQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 23 May 2023 10:22:07 +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: AQHZjUpfkyJmVIVJBUW8KdO0aW075a9noLWAgAAFYIA=
  • Thread-topic: [PATCH v7 07/12] xen: enable Dom0 to use SVE feature


> On 23 May 2023, at 11:02, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 23.05.2023 09:43, Luca Fancellu wrote:
>> Add a command line parameter to allow Dom0 the use of SVE resources,
>> the command line parameter sve=<integer>, sub argument of dom0=,
>> controls the feature on this domain and sets the maximum SVE vector
>> length for Dom0.
>> 
>> Add a new function, parse_signed_integer(), to parse an integer
>> command line argument.
>> 
>> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>
> 
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> # !arm
> 
>> --- a/docs/misc/xen-command-line.pandoc
>> +++ b/docs/misc/xen-command-line.pandoc
>> @@ -777,9 +777,9 @@ Specify the bit width of the DMA heap.
>> 
>> ### dom0
>>     = List of [ pv | pvh, shadow=<bool>, verbose=<bool>,
>> -                cpuid-faulting=<bool>, msr-relaxed=<bool> ]
>> +                cpuid-faulting=<bool>, msr-relaxed=<bool> ] (x86)
>> 
>> -    Applicability: x86
>> +    = List of [ sve=<integer> ] (Arm)
> 
> While in the text below you mention this is Arm64 only, I think the tag
> here would better express this as well.

Ok I can use Arm64 instead if there is no opposition from others

> 
>> @@ -838,6 +838,22 @@ Controls for how dom0 is constructed on x86 systems.
>> 
>>     If using this option is necessary to fix an issue, please report a bug.
>> 
>> +Enables features on dom0 on Arm systems.
>> +
>> +*   The `sve` integer parameter enables Arm SVE usage for Dom0 domain and 
>> sets
>> +    the maximum SVE vector length, the option is applicable only to AArch64
>> +    guests.
> 
> Why "guests"? Does the option affect more than Dom0?

I used “guests” because in my mind I was referring to all the aarch64 OS that 
can be used
as control domain, I can change it if it sounds bad.

> 
>> +    A value equal to 0 disables the feature, this is the default value.
>> +    Values below 0 means the feature uses the maximum SVE vector length
>> +    supported by hardware, if SVE is supported.
>> +    Values above 0 explicitly set the maximum SVE vector length for Dom0,
>> +    allowed values are from 128 to maximum 2048, being multiple of 128.
>> +    Please note that when the user explicitly specifies the value, if that 
>> value
>> +    is above the hardware supported maximum SVE vector length, the domain
>> +    creation will fail and the system will stop, the same will occur if the
>> +    option is provided with a non zero value, but the platform doesn't 
>> support
>> +    SVE.
> 
> Assuming this also covers the -1 case, I wonder if that isn't a little too
> strict. "Maximum supported" imo can very well be 0.

Maximum supported, when platforms uses SVE, can be at minimum 128 by arm specs.



> 
> Jan


 


Rackspace

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