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

Re: [Xen-devel] [PATCH v2 3/4] xen/public: Document HYPERCALL_console_io()


  • To: Julien Grall <julien.grall@xxxxxxx>
  • From: Jan Beulich <JBeulich@xxxxxxxx>
  • Date: Thu, 8 Aug 2019 14:03:48 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.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=q2EW2uIVXjRhCo8bGk5DZ7EKvChmBWK3b7O+xJzyhNo=; b=QiIfOlrObhEkoGSp2nO4tEQU/wnNc0F7HPdP38wtOpz2Jy92cD2pQl3GJON1WKZrxPNHD4SRFWUiMr9VjCD7GwIHtFWJY00iwl2Cv0bTqTYyMi17OsXioQDcPh15kTd4wp/DUSFzvJ7Cv49TOAc3TA3+ZzbSOw+2d9Bzjbk3W+GSb0Fi4eTCpAL+ES6LrY0IOpXClmMdhDc2qOrd8aw2j5silM1s+p3XxM5DfUMJGhaipv/KBf0l6YSbkjj+gbjPFPIsIFGogbIbiC3gNYUe1gH7UCS3FYsE1wfYvd46tAoHakeTjtpfoICph91K+yuV9Kp9HgP5qhXkbaZSpfHwrA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XM9JC486FtpSZ3CKTU987GjBYU51901ZWzZvdzofeY7CKjDXL9HwJsDj5ohsCkGnQFaBhJOaO8Hg/stk68p6WQlonlBB1+0EbWorjNVNEAb+YIde5daSYOxjWvDSMrhzagDsl4NxMjpQktm0fVMkjYxMflT2a+RvgiksCr0vCyJXrJms710Lr0XeRfbRBQcG4SSxRAZCTcmxCSWER0hqQonks/pt6ybow0o+ot7U2Q/9P4pDLm+4ywRGScUXs7je7+j97dnBbyowqgC3qDDwm8vagBI6z5FY+xbrcJpyGY8F7bbotEyM9aR+sS1d4FKGEuklRA4B9WjV3B8sY4ot9g==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 08 Aug 2019 14:14:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVS5H3rF8fjtFYWUKTMuHKikJ936bxTQiA
  • Thread-topic: [PATCH v2 3/4] xen/public: Document HYPERCALL_console_io()

On 05.08.2019 15:29, Julien Grall wrote:
> Currently, OS developpers will have to look at Xen code in order to know
> the parameters of an hypercall and how it is meant to work.
> 
> This is not a trivial task as you may need to have a deep understanding
> of Xen internal.
> 
> This patch attempts to document the behavior of HYPERCALL_console_io() to
> help OS developer.
> 
> Signed-off-by: Julien Grall <julien.grall@xxxxxxx>

Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
with a couple of nits:

> --- a/xen/include/public/xen.h
> +++ b/xen/include/public/xen.h
> @@ -486,7 +486,29 @@ DEFINE_XEN_GUEST_HANDLE(mmuext_op_t);
>   /* ` } */
>   
>   /*
> - * Commands to HYPERVISOR_console_io().
> + * ` int
> + * ` HYPERVISOR_console_io(unsigned int cmd,
> + * `                       unsigned int count,
> + * `                       char buffer[]);
> + *
> + * @cmd: Command (see below)
> + * @count: Size of the buffer to read/write
> + * @buffer: Pointer in the guest memory
> + *
> + * List of commands:
> + *
> + *  * CONSOLEIO_write: Write the buffer on Xen console.

s/ on / to / ?

> + *      For the hardware domain, all the characters in the buffer will
> + *      be written. Characters will be printed to directly to the

The first "to" looks to be unwanted.

> + *      console.
> + *      For all the other domains, only the printable characters will be
> + *      written. Characters may be buffered until a newline (i.e '\n') is
> + *      found.
> + *      @return 0 on success, otherwise return an error code.
> + *  * CONSOLEIO_read: Attempts to read up @count characters from Xen console.

"... up to @count ..."

> + *      The maximum buffer size (i.e @count) supported is 2GB.

"i.e." or "ie" are the two common forms I'm aware of.

> + *      @return the number of character read on success, otherwise return

"characters"

Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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