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

Re: [PATCH v7 02/12] xen/arm: add SVE vector length field to the domain


  • To: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Wed, 24 May 2023 09:23:40 +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=aWazh+9nbq7/LJc2LuqEiBu97kDOqNZYQHm76r3j/jU=; b=aokwgMI8Ob2s8u+x+4rV03j0G0RrtCG8h1/Vk9q7yTViG6yNNcpKdVYBo+0738Hee+4xxGQpSTet1/31DzLPsDWG+Iq73RqUcv5h8lsazmnVAOaRivDofS5KPuv35gfG/LbIPm+qHB41tCZFOc5sctFYfSy+cIWg6hBVf2lnzs0+vf2kFMfNZroiiTttMgqadyG0p9Y6Yhx3WJ2mFEwURaw7kTS9cXcD8drrVDk5sUOmDYpCduHPhyiKCLDaVsDuXAiHUJc6i1ypa2EZfPAbW6hkmDK4RmEXs67k6TfcRlNNZfzGNgcI7T8uOLujSUmdAZOgoIMLJNp0CjeTNmQqXA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ei82EH1GYOi+/D1e2B7UyLaTijBkH5U0Vx6mr/URZ1BTOgsQwc0BFaqf0vE+sHHG642fwOWwbymI/3XkEUcY6Dks0wTIOIu+CCKAw1v88f7mp5srWfAh2QaM8/oIWxi5AIrtXNDJlK0fT6VIXbywhzH8Cd1TevW7IGzjMHzrqboXtaUeWIPgAt9y5RRNNZZCCu4O5R90Vexx8hlN9zlnJN7vKn7Lt6cKIBPaJF/NimiMP3gwxjKM13c/G5JJVOhk5r/Qua7LmYJXwn/f++wexd+2znKz6WPvVukKkcSYLyWtRJy9wv2+4+c8DiJa/g3+E1O7aBqhWodZzYDM6RbO4w==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 24 May 2023 09:24:14 +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: AQHZjUpOjVckXKVhKUe5W06SOMG/nq9pKDiA
  • Thread-topic: [PATCH v7 02/12] xen/arm: add SVE vector length field to the domain

Hi Luca,

> On 23 May 2023, at 09:43, Luca Fancellu <Luca.Fancellu@xxxxxxx> wrote:
> 
> Add sve_vl field to arch_domain and xen_arch_domainconfig struct,
> to allow the domain to have an information about the SVE feature
> and the number of SVE register bits that are allowed for this
> domain.
> 
> sve_vl field is the vector length in bits divided by 128, this
> allows to use less space in the structures.
> 
> The field is used also to allow or forbid a domain to use SVE,
> because a value equal to zero means the guest is not allowed to
> use the feature.
> 
> Check that the requested vector length is lower or equal to the
> platform supported vector length, otherwise fail on domain
> creation.
> 
> Check that only 64 bit domains have SVE enabled, otherwise fail.
> 
> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>

Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>

Cheers
Bertrand




 


Rackspace

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