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

Re: [PATCH v3 06/10] xen/arm: enable Dom0 to use SVE feature


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Wed, 22 Mar 2023 07:32:06 +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=BX+PvCazbLN/TI5Yy64YzdGS0oCBehY3gXHK0MtU8wc=; b=GXnAg5/iVNYk/IYttoAkj9b32Jmbj6uMeeapsTJ31vLQRTxOGsPLMpurujDYFbaNSPIFKE64t1WGQ1YRYurKcAcoKTGckPtx7T+wNqpZM6ae/OITDszKZdhNOoZqHmf5qE2QEv2E++90rhywyH5wu7qvNT69GjoeYzPguNLGqLbnqFxahi2XyAVSqGmN//1tDb+XuGWfVTwY8vohWAMevvoXqXI09FjnObxQm2N0y+udKyaXYnSki0cWHbujTZTOyrx+ljnyJJrOSz5X+OeZ0ov1FPt0116Pjj7fx7lVIjY4HPsNO77xXdoc/JOdzLhPGGgrrSGc87C/Np22MjQjNw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IoQG2Vzr+B1XBvDzK3lKgQLY8lrrFt15hr+xlmn+KGrvlsB8KlP6ybwY33leNmB4YzeiistMA/wjiv9Kng88wSYK8mRSJd0odX1vUJ/v9ssNoBrncIXcy33o+ZPetSGpq+qlt22nKeS25mJns5Ed953T90A5rYJr5ZEhImZv5Tg9JMfr2HcqmRrhlK7iqNtJHk0+N7m+o/IYUAsGVrqgkc42/Y9lMzwbZ2+6g1MMfrm0+CBS10l9tzBJayx8uqmH2/XbuL3jlDDC/d/S8vF8dHn617DpcdNDrAt/B++e8bGLfXfuetk9M39dXxPy5LMWHhRbNQ7R0o4Pei7RSKP7dA==
  • 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: Wed, 22 Mar 2023 07:32:35 +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: AQHZWNM/SE3smSw/xUO8BxhNV6gL4K8DZsqAgAMIUQA=
  • Thread-topic: [PATCH v3 06/10] xen/arm: enable Dom0 to use SVE feature


> On 20 Mar 2023, at 09:13, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 17.03.2023 14:19, Luca Fancellu wrote:
>> --- a/docs/misc/xen-command-line.pandoc
>> +++ b/docs/misc/xen-command-line.pandoc
>> @@ -1005,6 +1005,19 @@ restrictions set up here. Note that the values to be 
>> specified here are
>> ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU
>> affinities to prefer but be not limited to the specified node(s).
>> 
>> +### dom0_sve (arm)
>> +> `= <integer>`
>> +
>> +> Default: `0`
>> +
>> +Enable arm SVE usage for Dom0 domain and sets the maximum SVE vector length.
>> +Values above 0 means feature is enabled for Dom0, otherwise feature is 
>> disabled.
>> +Possible values are from 0 to maximum 2048, being multiple of 128, that 
>> will be
>> +the maximum vector length.
>> +Please note that the platform can supports a lower value, if the requested 
>> value
>> +is above the supported one, the domain creation will fail and the system 
>> will
>> +stop.
>> +
>> ### dom0_vcpus_pin
>>> `= <boolean>`
> 
> I'd like to raise the question of proliferation of top-level command
> line options controlling Dom0. In x86 we've specifically started to use
> "dom0=" as the one top-level option where almost all new controls should
> be added as sub-options.
> 
> _If_ a top-level option is indeed preferred, then please avoid the use
> of an underscore in its name, when a dash does fine.

Yes, maybe something like dom0=sve=<VL>,[...] is nice for new possible incoming 
features,
While I was browsing the code, I spotted a possible bug in x86/dom0_build.c, in
parse_dom0_param(...) if an option is not recognised we set rc = -EINVAL, but 
we don’t
stop the loop and we continue to parse.
Is it the intended behaviour?

> 
> Jan


 


Rackspace

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