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

Re: [PATCH v7 9/9] docs/doxygen: doxygen documentation for grant_table.h


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Luca Fancellu <luca.fancellu@xxxxxxx>
  • Date: Tue, 6 Jul 2021 09:38:46 +0100
  • 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=88e5uJnjocZiQ6y05001YrnecmL77XSZOL2kC/SajeQ=; b=aIqsbphX0oxzvJKJ4fGSYGCv19eumOLQUlrhpGC7z6n/Ue7FvWsxha2pV5+9zn9X+3AqdQH1NITsyzW8Wak/ky3VIGlL9x3AI/1Cwveb5Nv0ZWWrPDb4Z8o7AT1vSZkKXtpDkfAfs2MqPQFFyVhvzucKNN4RtSIRPU6G2ukfVnY86DLtHrXaibs6caEbyDxOPMTIWYsLT/yYga02aK1XOx5ZqWWoXwvzsWCgKByqE7wRe/MR2a2DgIZsR68Gmf1mOQIkBHNVAjz4PNijQ8c84gLw4awiOmN6CCznFY5sZ7ADc8h7WmWz6ksddLqkoRk/P5lp3q3YUe2ysaLKeyeXpg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pim82woxXXklO7SHjnPVDmcK0XLqU0PD2xY510IzNLWONBw71lzjZwxDR+ZpHhsQDP+2uxRA8QM9hmp28gb6KrgrzGKKN5k+3zyKksY13QX/E2I0aT6PybbnPBu4uw6fTVrRrCaTV4C7Mnr+3LJDKx7ur7GKFnTnTgZIESHnJHllz+19z5F7IkbfMakzxPHMtIOKwGH7628W+F8QIbQKMckr3iu8OUCUAxJr77VS2RT6jAl3MgZHEJsD3MJ0EYkBi1uqnUE78xozOkD+91MHhqoOLv9o93nfVpJWnTnZwvuCMuFBjrWBWRdIFNOsOTPWk4YbFgfMt656+Qg7gJXM4w==
  • Authentication-results-original: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
  • Cc: Bertrand Marquis <bertrand.marquis@xxxxxxx>, wei.chen@xxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 06 Jul 2021 08:39:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;


> On 5 Jul 2021, at 14:27, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 05.07.2021 15:23, Luca Fancellu wrote:
>> Hi Jan,
>> 
>>> On 5 Jul 2021, at 14:03, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>>> 
>>> On 05.07.2021 12:51, Luca Fancellu wrote:
>>>> Modification to include/public/grant_table.h:
>>>> 
>>>> 1) Add doxygen tags to:
>>>> - Create Grant tables section
>>>> - include variables in the generated documentation
>>>> - Used @keepindent/@endkeepindent to enclose comment
>>>>  section that are indented using spaces, to keep
>>>>  the indentation.
>>>> 2) Add .rst file for grant table
>>>> 
>>>> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>
>>>> ---
>>>> v7 changes:
>>>> - commit message changed
>>>> - Add comment about grant table queries and uses
>>>> to the documentation
>>>> v6 changes:
>>>> - Fix misaligned comment
>>>> - Moved comments to make them display in the docs
>>>> - Included more documentation in the docs
>>>> v5 changes:
>>>> - Move GNTCOPY_* define next to the flags field
>>>> v4 changes:
>>>> - Used @keepindent/@endkeepindent doxygen commands
>>>> to keep text with spaces indentation.
>>>> - drop changes to grant_entry_v1 comment, it will
>>>> be changed and included in the docs in a future patch
>>>> - Move docs .rst to "common" folder
>>>> v3 changes:
>>>> - removed tags to skip anonymous union/struct
>>>> - moved back comment pointed out by Jan
>>>> - moved down defines related to struct gnttab_copy
>>>> as pointed out by Jan
>>>> v2 changes:
>>>> - Revert back to anonymous union/struct
>>>> - add doxygen tags to skip anonymous union/struct
>>>> ---
>>>> docs/hypercall-interfaces/arm64.rst           |   1 +
>>>> .../common/grant_tables.rst                   |   9 +
>>> 
>>> In patch 8 you now add arm32.rst and x86.rst as well, so it's at
>>> least odd that here you alter only one of the three. However, ...
>>> 
>>>> --- a/docs/hypercall-interfaces/arm64.rst
>>>> +++ b/docs/hypercall-interfaces/arm64.rst
>>>> @@ -8,6 +8,7 @@ Starting points
>>>> .. toctree::
>>>>   :maxdepth: 2
>>>> 
>>>> +   common/grant_tables
>>> 
>>> ... to me this seems the wrong way round anyway: I'd rather see
>>> common stuff not be linked from per-arch locations, but per-arch
>>> docs to be down the hierarchy from common ones.
>> 
>> The things is that common stuff is not really common, if you go and solve 
>> every
>> define and so on, you end up with a different content for x86, aarch64, arm.
>> 
>> So you can’t have a common.rst containing the common things because 
>> depending on each
>> platform the content will change.
> 

Hi Jan,

> Wait - the documentation should be uniform for all architectures.
> If there are architecture specific aspects, then these should imo
> still be mentioned in the common section of the doc, just pointing
> out what those specifics are for which architectures. Architecture
> specific doc pieces ought to cover architecture specific hypercalls
> or sub-functions of common ones.
> 

Yes that could be a point, to be honest this patch was mainly used to collect 
as many feedbacks as possible
and it worked, maybe we can talk about that in the Xen call to see if we agree 
on a documentation structure.

For now this work was aimed to reproduce the actual documentation:

https://xenbits.xenproject.org/docs/unstable/hypercall/index.html

Cheers,

Luca

> Jan
> 




 


Rackspace

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