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

RE: [PATCH v2 04/40] xen/arm: add an option to define Xen start address for Armv8-R


  • To: Julien Grall <julien@xxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Wed, 18 Jan 2023 11:27:51 +0000
  • Accept-language: 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=QArN9qPQXn/8MkrJvwK66iPWzdS7b226kdQrT4vmHig=; b=NZEOCK4sZtyJlVJkuGLSYl5YMsbIvv+/4KXgwJqH7IJQvtVNOaWd1GohiBHahR/hCQE3itMJxVgFwb0lRJMQJYFXGPgzFGaDTVZONxFXIi+LGBwFJC4N+RpkeBeLDK9eirODnuRMam2Ygwa34Q9g0xVZfl1ip+DM8AFMQd0IcNQQ1wVkjp3Su2bWF3I5SMjWHuo8hZeSrjQSjtWNBZTnV33OPU2ThieGlOhqxsXZvVX9RqxC9JVNfcScx+9kM08pdtcCNRFJdBqTCINk/TfLF7ReX9Ye6/+cnqBO3sM5wjuUTcqnTn7rP05RyF5+aUenfkzjixmLKfWHfgXwp4SUEg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VH8oLqORIAYnFdOC/pv15Z91FYIKfYRZqM2zKgTOmmfbd5tRtEcc7SeglXO6RH8YxNpHlq3Co5Gf6V1/G0seq2jl197JrPVtFwC4ieeePkD5vN7UWD1oeD/9rkToy/Lyuu9YVn5GGIfwWJY4re5CQAqdTUyic2OYcA9JUqWCDFGR8y3HKDNmq81nElE1dhcKOf+mmUSAKP+bnOEESwnM/AhH+cLZQJJK+JhHp30n9SKhTd7wCAMeQRnYOD9TpaSICtcNnQTzJNLhHZdumPr5CNzX5StX8nmLc3S3/Vi4dMg8VqCWUf1xWm6Ga+rR/U0jEOscGwZ5Z7k+GjFN/leBFg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Jiamei Xie <Jiamei.Xie@xxxxxxx>
  • Delivery-date: Wed, 18 Jan 2023 11:28:12 +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: AQHZJxAXLGszZRVrMECopJok59rQha6jR3wAgAA4E5CAAHUeAIAABBnwgAARHYCAAAZzkA==
  • Thread-topic: [PATCH v2 04/40] xen/arm: add an option to define Xen start address for Armv8-R

Hi Julien,

> -----Original Message-----
> From: Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of
> Julien Grall
> Sent: 2023年1月18日 19:00
> To: Wei Chen <Wei.Chen@xxxxxxx>; Penny Zheng <Penny.Zheng@xxxxxxx>; xen-
> devel@xxxxxxxxxxxxxxxxxxxx
> Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>; Bertrand Marquis
> <Bertrand.Marquis@xxxxxxx>; Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>;
> Jiamei Xie <Jiamei.Xie@xxxxxxx>
> Subject: Re: [PATCH v2 04/40] xen/arm: add an option to define Xen start
> address for Armv8-R
> 
> Hi,
> 
> On 18/01/2023 10:22, Wei Chen wrote:
> >>> Although it is unlikely that vendors using the Armv8-R IP will do so,
> it
> >>> is indeed an option. In the ID register, there are also related bits
> in
> >>> ID_AA64MMFR0_EL1 (MSA_frac) to indicate this.
> >>>
> >>>>> ---
> >>>>>     xen/arch/arm/Kconfig           |  8 ++++++++
> >>>>>     xen/arch/arm/platforms/Kconfig | 16 +++++++++++++---
> >>>>>     2 files changed, 21 insertions(+), 3 deletions(-)
> >>>>>
> >>>>> diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
> >>>>> index ace7178c9a..c6b6b612d1 100644
> >>>>> --- a/xen/arch/arm/Kconfig
> >>>>> +++ b/xen/arch/arm/Kconfig
> >>>>> @@ -145,6 +145,14 @@ config TEE
> >>>>>           This option enables generic TEE mediators support. It allows
> >>>> guests
> >>>>>           to access real TEE via one of TEE mediators implemented in
> >> XEN.
> >>>>>
> >>>>> +config XEN_START_ADDRESS
> >>>>> +       hex "Xen start address: keep default to use platform defined
> >>>> address"
> >>>>> +       default 0
> >>>>> +       depends on ARM_V8R
> >>>>
> >>>> It is still pretty unclear to me what would be the difference between
> >>>> HAS_MPU and ARM_V8R.
> >>>>
> >>>
> >>> If we don't want to support non-MPU supported Armv8-R, I think they
> are
> >> the
> >>> same. IMO, non-MPU supported Armv8-R is meaningless to Xen.
> >> OOI, why do you think this is meaningless?
> >
> > If there is Armv8-R board without EL2 MPU, how can we protect Xen?
> 
> So what you call EL2 MPU is an MPU that is following the Arm
> specification. In theory, you could have a proprietary mechanism for that.
> 
> So the question is whether a system not following the Arm specification
> is allowed.
> 

I think no, the PMSA is an architectural feature, the spec contains CPU and MPU
interfaces. Vendors can have their own hardware implementation, but need follow
the Arm spec.

But I agree that, here we could change to "depends on HAS_MPU" which will make
It easier to used by other Arm Architecture or other architecture in the future.

Cheers,
Wei Chen

> Cheers,
> 
> --
> Julien Grall


 


Rackspace

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