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

Re: [PATCH v2] xen/arm: Use register_t type of cpuinfo entries


  • To: Julien Grall <julien@xxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Tue, 16 Mar 2021 14:46:45 +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-SenderADCheck; bh=502hhquAsz4C6PePJ+D/1WquiqQ1u/qvKv1jDcf709k=; b=MYkbMM7P/KBCkR6x0K31PRGDTNF78ft9x6SaCqHlPlv6kWSFuNwYoJvsK9dMMH7tAzYOFOZ1E2JNGCzJBzf/0/BrF6g0a2r9vuIz4qasqZCt388FM7ADY+lxMojZhdLHPz7Fwkke9vG2GQKTc7aZCtg6iod5YDtIhMS7b/rGg7EhBX2Z7FBtML++n3kRbwGmnnyp2+KMowxEvat87iZFmI9YQtLRNAWMKNyKgv1OIT98Qk4lEu8laC1G4utXR0ieAzgqtjepXy+iWxB+PftZ58c0H7bDm2hpJhXuc/cFivNvlb3GJrz/MvSx3/Xe5yP4sppJ7hn0SRSX3OdnWR1xdg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dCux68JHLE9/txYFI8wl6rnyMh2VoWR1+TyNvlGyxRhxVadh3x0Ga1ERdmdSQpjH/LTpox+Y6kcXveG3YW7pNuh+yddrG7C7jCLPoXhNLi5gooxUt8P/l7dmVNG8Nob4Ceag5dKaLfD61jQCRdjsRTKIYXYAfWm+jViBJKCofydpvcp4EAMnPTNcmjxam/apEYCGpkT903A2a4oN5VAV1dkj1g38RDW4ZhxmsokDvLS9WcJRnOr7qIi8rD6k/lczGP3IhVjjLncPI04lUEbELj/dG3PSx8aJhKlTBd3ipis6V2syDOjolb76dmG5yQYUfjOPSdBqAQteyKOPDRSEMw==
  • Authentication-results-original: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 16 Mar 2021 14:47:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHXGYdqjLxhKB84IUOgt1y/chNQHKqGsYUAgAAAfACAAAFPgA==
  • Thread-topic: [PATCH v2] xen/arm: Use register_t type of cpuinfo entries

Hi Julien,

> On 16 Mar 2021, at 14:42, Julien Grall <julien@xxxxxxx> wrote:
> 
> 
> 
> On 16/03/2021 14:40, Julien Grall wrote:
>> Hi Bertrand,
>> On 15/03/2021 10:38, Bertrand Marquis wrote:
>>> All cpu identification registers that we store in the cpuinfo structure
>>> are 64bit on arm64 and 32bit on arm32 so storing the values in 32bit on
>>> arm64 is removing the higher bits which might contain information in the
>>> future.
>>> 
>>> This patch is changing the types in cpuinfo to register_t (which is
>>> 32bit on arm32 and 64bit on arm64) and adding the necessary paddings
>>> inside the unions.
>>> For consistency uint64_t entries are also changed to register_t on 64bit
>>> systems.
>>> 
>>> It is also fixing all prints using directly the bits values from cpuinfo
>>> to use PRIregister and adapt the printed value to print all bits
>>> available on the architecture.
>>> 
>>> Signed-off-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
>> Acked-by: Julien Grall <jgrall@xxxxxxxxxx>
> 
> I have committed it to my for-next/4.16 branch.

Thanks

Cheers
Bertrand

> 
> Cheers,
> 
> -- 
> Julien Grall




 


Rackspace

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