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

RE: [PATCH v5 1/8] xen/arm: introduce static shared memory


  • To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Penny Zheng <Penny.Zheng@xxxxxxx>
  • Date: Wed, 29 Jun 2022 08:40:01 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • 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=2; 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=BxhQYcrZizVHH6I3rhCROrcdC4H2VRPMprJbwCxCTC4=; b=QItI+iiBTqspEj710fjo8/YInw2jFGTZI67vz21+y9K+U4/w5RtbUDyk67eG206QJrdkakW7HDAcy20E452cUz79QIUVw9rEiKgFpGYMc51bIOGTHRyZKAzN6nEEn0qrKjQpMlxyrfPHf1o5pYN6CMb7l+TMUb1QI3puMkUU3kxunQS6fHKnMQOd9dW6+4XB6NFtGpp2HSoHUQBvVRbBBibXEY01QfY2tsb2flyQSWUcagJQr9TqWPgmsIrwLTNXYor7mqp6j9aLz4dp3JBE3ctIGX4inOFqhmcdjxNoR7z3/Pizba4lm8Ga+JR3Bk1J16cDabs+coLawlIWv3YzNQ==
  • 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=BxhQYcrZizVHH6I3rhCROrcdC4H2VRPMprJbwCxCTC4=; b=Uaz2dFiqxen0dFT6gLK/O/eGRVPUusCabhLzAVblXhHZHYBWfYYflgj7+6TV6bdVmJs2c62fnCFcT1hJmgfkco/Ic+MmRypc8WqL1BDyBiNjLG30P6jJD4m+pAu8BgzDzvZIrLaukcitOafbDIhI1CFeuPtVaIvj61s7CxbMBWXic+vyF0icszy0/baGxttUU6KkAnJPE+PUwV/xHAy000qZTGIjLDRd7D9pF6O/aAROP7Olh2DcFSWDjq2zSAmZntiVLFsnuG5oVvE/u44ZnPFH79/y2UOhK+MHAZaH3cRU55Oiyn9GUWwHkrowe8cqGeyf9RyXe8L+BfRcmR3EKQ==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Pz9QoPfoyV4CCZXSI0BQcuFEvKfJyWvzNbTqPJB/agWHkDXSWMZ7FgbPLfKKDhmCusZCY24mMIdJa8zm9mEfWR6Cw2fdEDv5kKUEK31KeNegZA0PmFPQMCWOksx148yKOqerUR7BLoxO7CtyKdoEe9GE9fxAQDqWTDgpWQO9Jz0rAPFIZRGvF3A2lmYBmOZ3GNQYMgLIy0lfT8welUGQqxq52mSKoGsvJfr/uth7QrtstEOzneFWy1KqxVHEP92aO8utlnzHUUs6tWMao+iq6nEsfBzRj8fqIMdtjb2Oc/xwvx6LPHSFhcDa5S+WGKP1dgaLO6P+VelPvTtSWWbcAQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kGyAw55OPgQOTnwmvupatIy0KqB9hVUX9WODrQT059YnKNIXnF4Yzg/zhspaFYsfOivts6XGNLn+mLSfP0E0Bccd7kIUfjeoZh/m/oaDEC1RqLc6fnzD3A2Vp7ymzpxdlE1bk9zKbdK/vTGnFVUT+hX4wFM9gNfmdBFkTf54hNHtpakaAdnyt0Gu42tzk5qliQh5/poE2S+EiqJPPTWwKLa+FTKOwHoZaGw6tLueOULp5F4CqGiAbyOzm/5Rvrcv31wKqz60dh1wSd3zPimdSDB4LIjgUsuc6sURxGU3bo7tRIjABWZEJzzci27ezlPvR9ldZvTY0XGYVQAz5qJhYw==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Wei Chen <Wei.Chen@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 29 Jun 2022 08:40:17 +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: AQHYhGRAIMWAAZoglEyYz3pT8Ubq/a1e94+AgAcdS3A=
  • Thread-topic: [PATCH v5 1/8] xen/arm: introduce static shared memory

Hi Julien

> -----Original Message-----
> From: Julien Grall <julien@xxxxxxx>
> Sent: Saturday, June 25, 2022 3:26 AM
> To: Penny Zheng <Penny.Zheng@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx
> Cc: Wei Chen <Wei.Chen@xxxxxxx>; Stefano Stabellini
> <sstabellini@xxxxxxxxxx>; Bertrand Marquis <Bertrand.Marquis@xxxxxxx>;
> Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
> Subject: Re: [PATCH v5 1/8] xen/arm: introduce static shared memory
> 
> Hi Penny,
> 
> I have looked at the code and I have further questions about the binding.
> 
> On 20/06/2022 06:11, Penny Zheng wrote:
> > ---
> >   docs/misc/arm/device-tree/booting.txt | 120
> ++++++++++++++++++++++++++
> >   xen/arch/arm/Kconfig                  |   6 ++
> >   xen/arch/arm/bootfdt.c                |  68 +++++++++++++++
> >   xen/arch/arm/include/asm/setup.h      |   3 +
> >   4 files changed, 197 insertions(+)
> >
> > diff --git a/docs/misc/arm/device-tree/booting.txt
> > b/docs/misc/arm/device-tree/booting.txt
> > index 98253414b8..6467bc5a28 100644
> > --- a/docs/misc/arm/device-tree/booting.txt
> > +++ b/docs/misc/arm/device-tree/booting.txt
> > @@ -378,3 +378,123 @@ device-tree:
> >
> >   This will reserve a 512MB region starting at the host physical address
> >   0x30000000 to be exclusively used by DomU1.
> > +
> > +Static Shared Memory
> > +====================
> > +
> > +The static shared memory device tree nodes allow users to statically
> > +set up shared memory on dom0less system, enabling domains to do
> > +shm-based communication.
> > +
> > +- compatible
> > +
> > +    "xen,domain-shared-memory-v1"
> > +
> > +- xen,shm-id
> > +
> > +    An 8-bit integer that represents the unique identifier of the shared
> memory
> > +    region. The maximum identifier shall be "xen,shm-id = <0xff>".
> 
> There is nothing in Xen that will ensure that xen,shm-id will match for all 
> the
> nodes using the same region.
> 

True, we actually do not use this field, adding it here to just be aligned with 
Linux.
I could add a check in the very beginning when we parse the device tree.
I'll give more details to explain in which code locates.

> I see you write it to the guest device-tree. However there is a mismatch of 
> the
> type: here you use an integer whereas the guest binding is using a string.
> 
> Cheers,
> 
> --
> Julien Grall

 


Rackspace

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