qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] xenfb: Document public headers
@ 2014-09-22  9:04 Owen smith
  2014-09-22  9:04 ` [Qemu-devel] [PATCH 1/2] xenfb: Add comment documentation Owen smith
  2014-09-22  9:04 ` [Qemu-devel] [PATCH 2/2] " Owen smith
  0 siblings, 2 replies; 8+ messages in thread
From: Owen smith @ 2014-09-22  9:04 UTC (permalink / raw)
  To: xen-devel; +Cc: stefano.stabellini, qemu-devel, Owen smith, ian.campbell

Add comments documenting the xenstore nodes used by the vfb and vkbd devices.
Documents changes in qemu patch series posted here
http://lists.gnu.org/archive/html/qemu-devel/2014-09/msg03472.html

Owen smith (2):
  xenfb: Add comment documentation
  xenfb: Add comment documentation

 xen/include/public/io/fbif.h  | 25 +++++++++++++++
 xen/include/public/io/kbdif.h | 74 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 99 insertions(+)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH 1/2] xenfb: Add comment documentation
  2014-09-22  9:04 [Qemu-devel] [PATCH 0/2] xenfb: Document public headers Owen smith
@ 2014-09-22  9:04 ` Owen smith
  2014-10-08 13:28   ` Stefano Stabellini
  2014-09-22  9:04 ` [Qemu-devel] [PATCH 2/2] " Owen smith
  1 sibling, 1 reply; 8+ messages in thread
From: Owen smith @ 2014-09-22  9:04 UTC (permalink / raw)
  To: xen-devel; +Cc: stefano.stabellini, qemu-devel, Owen smith, ian.campbell

Add documentation for feature-abs-pointer, feature-no-abs-rescale,
feature-no-console, page-ref, page-gref and event-channel

Signed-off-by: Owen smith <owen.smith@citrix.com>
---
 xen/include/public/io/kbdif.h | 74 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)

diff --git a/xen/include/public/io/kbdif.h b/xen/include/public/io/kbdif.h
index 2d2aebd..b29bc12 100644
--- a/xen/include/public/io/kbdif.h
+++ b/xen/include/public/io/kbdif.h
@@ -26,6 +26,80 @@
 #ifndef __XEN_PUBLIC_IO_KBDIF_H__
 #define __XEN_PUBLIC_IO_KBDIF_H__
 
+/*
+ * Backend Xenstore Nodes
+ * ----------------------
+ *
+ * feature-abs-pointer
+ *   Values: 0/1 (boolean)
+ *   Default: 0
+ *
+ *   When set to "1", backend supports supplying absolute coordinates via
+ *   XENKBD_TYPE_POS messages. When set to "0", backend can only supply
+ *   relative movements via XENKBD_TYPE_MOTION messages.
+ *
+ * feature-no-abs-rescale
+ *   Values: 0/1 (boolean)
+ *   Default: 0
+ *
+ *   When set to "1", backend supports unscaled absolute coordinates. Unscaled
+ *   coordinates are in the range [0, 0x7fff]. When set to "0", backend can
+ *   only supply scaled coordinates. Scaled coordinates are scaled to the
+ *   'screen size' of the console. If "feature-abs-pointer" is "0", this value
+ *   has no effect.
+ *
+ * feature-no-console
+ *   Values: 0/1 (boolean)
+ *   Default: 0
+ *
+ *   When set to "1", backend supports connection without a console. When
+ *   running without a console, scaled values maximum is undefined. When
+ *   set to "0", backend will wait for a console before connecting.
+ *
+ * Frontend XenStore Nodes
+ * -----------------------
+ *
+ * request-abs-pointer
+ *   Values: 0/1 (boolean)
+ *   Default: 0
+ *
+ *   When set to "1", frontend wants absolute coordinates delivered with the
+ *   XENKBD_TYPE_POS message.
+ *
+ * request-no-abs-rescale
+ *   Values: 0/1 (boolean)
+ *   Default: 0
+ *
+ *   When set to "1", frontend wants unscaled absolute coordinates. If
+ *   "request-abs-pointer" is "0", this value has no effect.
+ *
+ * request-no-console
+ *   Values: 0/1 (boolean)
+ *   Default: 0
+ *
+ *   When set to "1", frontend does not require a console for connection.
+ *
+ * page-ref
+ *   Values: <uint64_t>
+ *   Optional, "page-gref" is used if "page-ref" is not set.
+ *
+ *   The MFN of a page of memory for the shared ring structures. If not
+ *   present, "page-gref" must be set. "page-ref" overrides "page-gref".
+ *
+ * page-gref
+ *   Values: <uint32_t>
+ *   Only required if "page-ref" is NOT set.
+ *
+ *   A grant reference to the memory page to be mapped for the shared ring
+ *   structures. Must be present if "page-ref" is not present.
+ *
+ * event-channel
+ *   Values: <uint32_t>
+ *
+ *   An event channel identifier, which is triggered when the shared page
+ *   is updated.
+ */
+
 /* In events (backend -> frontend) */
 
 /*
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH 2/2] xenfb: Add comment documentation
  2014-09-22  9:04 [Qemu-devel] [PATCH 0/2] xenfb: Document public headers Owen smith
  2014-09-22  9:04 ` [Qemu-devel] [PATCH 1/2] xenfb: Add comment documentation Owen smith
@ 2014-09-22  9:04 ` Owen smith
  2014-09-22 10:16   ` [Qemu-devel] [Xen-devel] " David Vrabel
  2014-10-08 13:29   ` [Qemu-devel] " Stefano Stabellini
  1 sibling, 2 replies; 8+ messages in thread
From: Owen smith @ 2014-09-22  9:04 UTC (permalink / raw)
  To: xen-devel; +Cc: stefano.stabellini, qemu-devel, Owen smith, ian.campbell

Add documentation for page-ref, page-gref and event-channel.

Signed-off-by: Owen smith <owen.smith@citrix.com>
---
 xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/xen/include/public/io/fbif.h b/xen/include/public/io/fbif.h
index cc25aab..ba3f524 100644
--- a/xen/include/public/io/fbif.h
+++ b/xen/include/public/io/fbif.h
@@ -26,6 +26,31 @@
 #ifndef __XEN_PUBLIC_IO_FBIF_H__
 #define __XEN_PUBLIC_IO_FBIF_H__
 
+/*
+ * Frontend XenStore Nodes
+ * -----------------------
+ *
+ * page-ref
+ *   Values: <uint64_t>
+ *   Optional, "page-gref" is used if "page-ref" is not set.
+ *
+ *   The MFN of a page of memory for the shared ring structures. If not
+ *   present, "page-gref" must be set.page-ref" overrides "page-gref".
+ *
+ * page-gref
+ *   Values: <uint32_t>
+ *   Only required if "page-ref" is NOT set.
+ *
+ *   A grant reference to the memory page to be mapped for the shared ring
+ *   structures. Must be present if "page-ref" is not present.
+ *
+ * event-channel
+ *   Values: <uint32_t>
+ *
+ *   An event channel identifier, which is triggered when the shared page
+ *   is updated.
+ */
+
 /* Out events (frontend -> backend) */
 
 /*
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [Xen-devel] [PATCH 2/2] xenfb: Add comment documentation
  2014-09-22  9:04 ` [Qemu-devel] [PATCH 2/2] " Owen smith
@ 2014-09-22 10:16   ` David Vrabel
  2014-09-26 10:20     ` Owen Smith
  2014-10-08 13:29   ` [Qemu-devel] " Stefano Stabellini
  1 sibling, 1 reply; 8+ messages in thread
From: David Vrabel @ 2014-09-22 10:16 UTC (permalink / raw)
  To: Owen smith, xen-devel; +Cc: ian.campbell, qemu-devel, stefano.stabellini

On 22/09/14 10:04, Owen smith wrote:
> Add documentation for page-ref, page-gref and event-channel.
> 
> Signed-off-by: Owen smith <owen.smith@citrix.com>
> ---
>  xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/xen/include/public/io/fbif.h b/xen/include/public/io/fbif.h
> index cc25aab..ba3f524 100644
> --- a/xen/include/public/io/fbif.h
> +++ b/xen/include/public/io/fbif.h
> @@ -26,6 +26,31 @@
>  #ifndef __XEN_PUBLIC_IO_FBIF_H__
>  #define __XEN_PUBLIC_IO_FBIF_H__
>  
> +/*
> + * Frontend XenStore Nodes
> + * -----------------------
> + *
> + * page-ref
> + *   Values: <uint64_t>
> + *   Optional, "page-gref" is used if "page-ref" is not set.
> + *
> + *   The MFN of a page of memory for the shared ring structures. If not
> + *   present, "page-gref" must be set.page-ref" overrides "page-gref".

I think you mean GFN here, not MFN.

> + * page-gref
> + *   Values: <uint32_t>
> + *   Only required if "page-ref" is NOT set.
> + *
> + *   A grant reference to the memory page to be mapped for the shared ring
> + *   structures. Must be present if "page-ref" is not present.

Should there be some negotiation for which of page-ref or page-gref is
required/preferred by the backend?

The same applies to kbdif as well.

David

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [Xen-devel] [PATCH 2/2] xenfb: Add comment documentation
  2014-09-22 10:16   ` [Qemu-devel] [Xen-devel] " David Vrabel
@ 2014-09-26 10:20     ` Owen Smith
  2014-10-03  9:06       ` Ian Campbell
  0 siblings, 1 reply; 8+ messages in thread
From: Owen Smith @ 2014-09-26 10:20 UTC (permalink / raw)
  To: David Vrabel, xen-devel@lists.xen.org
  Cc: Stefano Stabellini, qemu-devel@nongnu.org, Ian Campbell

> -----Original Message-----
> From: David Vrabel
> Sent: 22 September 2014 11:16
> To: Owen Smith; xen-devel@lists.xen.org
> Cc: Stefano Stabellini; qemu-devel@nongnu.org; Ian Campbell
> Subject: Re: [Xen-devel] [PATCH 2/2] xenfb: Add comment documentation
> 
> On 22/09/14 10:04, Owen smith wrote:
> > Add documentation for page-ref, page-gref and event-channel.
> >
> > Signed-off-by: Owen smith <owen.smith@citrix.com>
> > ---
> >  xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
> >  1 file changed, 25 insertions(+)
> >
> > diff --git a/xen/include/public/io/fbif.h
> > b/xen/include/public/io/fbif.h index cc25aab..ba3f524 100644
> > --- a/xen/include/public/io/fbif.h
> > +++ b/xen/include/public/io/fbif.h
> > @@ -26,6 +26,31 @@
> >  #ifndef __XEN_PUBLIC_IO_FBIF_H__
> >  #define __XEN_PUBLIC_IO_FBIF_H__
> >
> > +/*
> > + * Frontend XenStore Nodes
> > + * -----------------------
> > + *
> > + * page-ref
> > + *   Values: <uint64_t>
> > + *   Optional, "page-gref" is used if "page-ref" is not set.
> > + *
> > + *   The MFN of a page of memory for the shared ring structures. If not
> > + *   present, "page-gref" must be set.page-ref" overrides "page-gref".
> 
> I think you mean GFN here, not MFN.

GFN would be more correct.

> 
> > + * page-gref
> > + *   Values: <uint32_t>
> > + *   Only required if "page-ref" is NOT set.
> > + *
> > + *   A grant reference to the memory page to be mapped for the shared
> ring
> > + *   structures. Must be present if "page-ref" is not present.
> 
> Should there be some negotiation for which of page-ref or page-gref is
> required/preferred by the backend?
> 
> The same applies to kbdif as well.
> 

I've not added negotiation, as I wanted minimum changes when "page-ref" is specified.
With the kbdif device only, not investigated the vfb, a backend only supporting "page-gref" 
will break a lot of frontends (I saw breaks in Ubuntu, which advertises both if I forced page-gref)

> David

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [Xen-devel] [PATCH 2/2] xenfb: Add comment documentation
  2014-09-26 10:20     ` Owen Smith
@ 2014-10-03  9:06       ` Ian Campbell
  0 siblings, 0 replies; 8+ messages in thread
From: Ian Campbell @ 2014-10-03  9:06 UTC (permalink / raw)
  To: Owen Smith
  Cc: qemu-devel@nongnu.org, Stefano Stabellini, David Vrabel,
	xen-devel@lists.xen.org

On Fri, 2014-09-26 at 11:20 +0100, Owen Smith wrote:
> > > + * page-gref
> > > + *   Values: <uint32_t>
> > > + *   Only required if "page-ref" is NOT set.
> > > + *
> > > + *   A grant reference to the memory page to be mapped for the shared
> > ring
> > > + *   structures. Must be present if "page-ref" is not present.
> > 
> > Should there be some negotiation for which of page-ref or page-gref is
> > required/preferred by the backend?
> > 
> > The same applies to kbdif as well.
> > 
> 
> I've not added negotiation, as I wanted minimum changes when "page-ref" is specified.
> With the kbdif device only, not investigated the vfb, a backend only supporting "page-gref" 
> will break a lot of frontends (I saw breaks in Ubuntu, which advertises both if I forced page-gref)

Is this patch/series documenting existing behaviour or the new behaviour
which you are currently implementing? Both patches have the same title
and essentially the same commit message (list of fields), so I can't
tell.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH 1/2] xenfb: Add comment documentation
  2014-09-22  9:04 ` [Qemu-devel] [PATCH 1/2] xenfb: Add comment documentation Owen smith
@ 2014-10-08 13:28   ` Stefano Stabellini
  0 siblings, 0 replies; 8+ messages in thread
From: Stefano Stabellini @ 2014-10-08 13:28 UTC (permalink / raw)
  To: Owen smith; +Cc: ian.campbell, stefano.stabellini, qemu-devel, xen-devel

On Mon, 22 Sep 2014, Owen smith wrote:
> Add documentation for feature-abs-pointer, feature-no-abs-rescale,
> feature-no-console, page-ref, page-gref and event-channel
> 
> Signed-off-by: Owen smith <owen.smith@citrix.com>

I would suggest resending this patch series removing the new options you
are introducing with
1410964242-3341-1-git-send-email-owen.smith@citrix.com.
This series should be a precursor and could go in the 4.5 release.


>  xen/include/public/io/kbdif.h | 74 +++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 74 insertions(+)
> 
> diff --git a/xen/include/public/io/kbdif.h b/xen/include/public/io/kbdif.h
> index 2d2aebd..b29bc12 100644
> --- a/xen/include/public/io/kbdif.h
> +++ b/xen/include/public/io/kbdif.h
> @@ -26,6 +26,80 @@
>  #ifndef __XEN_PUBLIC_IO_KBDIF_H__
>  #define __XEN_PUBLIC_IO_KBDIF_H__
>  
> +/*
> + * Backend Xenstore Nodes
> + * ----------------------
> + *
> + * feature-abs-pointer
> + *   Values: 0/1 (boolean)
> + *   Default: 0
> + *
> + *   When set to "1", backend supports supplying absolute coordinates via
> + *   XENKBD_TYPE_POS messages. When set to "0", backend can only supply
> + *   relative movements via XENKBD_TYPE_MOTION messages.
> + *
> + * feature-no-abs-rescale
> + *   Values: 0/1 (boolean)
> + *   Default: 0
> + *
> + *   When set to "1", backend supports unscaled absolute coordinates. Unscaled
> + *   coordinates are in the range [0, 0x7fff]. When set to "0", backend can
> + *   only supply scaled coordinates. Scaled coordinates are scaled to the
> + *   'screen size' of the console. If "feature-abs-pointer" is "0", this value
> + *   has no effect.
> + *
> + * feature-no-console
> + *   Values: 0/1 (boolean)
> + *   Default: 0
> + *
> + *   When set to "1", backend supports connection without a console. When
> + *   running without a console, scaled values maximum is undefined. When
> + *   set to "0", backend will wait for a console before connecting.
> + *
> + * Frontend XenStore Nodes
> + * -----------------------
> + *
> + * request-abs-pointer
> + *   Values: 0/1 (boolean)
> + *   Default: 0
> + *
> + *   When set to "1", frontend wants absolute coordinates delivered with the
> + *   XENKBD_TYPE_POS message.
> + *
> + * request-no-abs-rescale
> + *   Values: 0/1 (boolean)
> + *   Default: 0
> + *
> + *   When set to "1", frontend wants unscaled absolute coordinates. If
> + *   "request-abs-pointer" is "0", this value has no effect.
> + *
> + * request-no-console
> + *   Values: 0/1 (boolean)
> + *   Default: 0
> + *
> + *   When set to "1", frontend does not require a console for connection.
> + *
> + * page-ref
> + *   Values: <uint64_t>
> + *   Optional, "page-gref" is used if "page-ref" is not set.
> + *
> + *   The MFN of a page of memory for the shared ring structures. If not
> + *   present, "page-gref" must be set. "page-ref" overrides "page-gref".
> + *
> + * page-gref
> + *   Values: <uint32_t>
> + *   Only required if "page-ref" is NOT set.
> + *
> + *   A grant reference to the memory page to be mapped for the shared ring
> + *   structures. Must be present if "page-ref" is not present.
> + *
> + * event-channel
> + *   Values: <uint32_t>
> + *
> + *   An event channel identifier, which is triggered when the shared page
> + *   is updated.
> + */
> +
>  /* In events (backend -> frontend) */
>  
>  /*
> -- 
> 2.1.0
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH 2/2] xenfb: Add comment documentation
  2014-09-22  9:04 ` [Qemu-devel] [PATCH 2/2] " Owen smith
  2014-09-22 10:16   ` [Qemu-devel] [Xen-devel] " David Vrabel
@ 2014-10-08 13:29   ` Stefano Stabellini
  1 sibling, 0 replies; 8+ messages in thread
From: Stefano Stabellini @ 2014-10-08 13:29 UTC (permalink / raw)
  To: Owen smith; +Cc: ian.campbell, stefano.stabellini, qemu-devel, xen-devel

On Mon, 22 Sep 2014, Owen smith wrote:
> Add documentation for page-ref, page-gref and event-channel.
> 
> Signed-off-by: Owen smith <owen.smith@citrix.com>

thanks for the patch


>  xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/xen/include/public/io/fbif.h b/xen/include/public/io/fbif.h
> index cc25aab..ba3f524 100644
> --- a/xen/include/public/io/fbif.h
> +++ b/xen/include/public/io/fbif.h
> @@ -26,6 +26,31 @@
>  #ifndef __XEN_PUBLIC_IO_FBIF_H__
>  #define __XEN_PUBLIC_IO_FBIF_H__
>  
> +/*
> + * Frontend XenStore Nodes
> + * -----------------------
> + *
> + * page-ref
> + *   Values: <uint64_t>
> + *   Optional, "page-gref" is used if "page-ref" is not set.
> + *
> + *   The MFN of a page of memory for the shared ring structures. If not
> + *   present, "page-gref" must be set.page-ref" overrides "page-gref".
> + *
> + * page-gref
> + *   Values: <uint32_t>
> + *   Only required if "page-ref" is NOT set.
> + *
> + *   A grant reference to the memory page to be mapped for the shared ring
> + *   structures. Must be present if "page-ref" is not present.
> + *
> + * event-channel
> + *   Values: <uint32_t>
> + *
> + *   An event channel identifier, which is triggered when the shared page
> + *   is updated.
> + */

You are missing videoram, feature-update, feature-resize and
request-update.


>  /* Out events (frontend -> backend) */
>  
>  /*
> -- 
> 2.1.0
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-10-08 13:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-22  9:04 [Qemu-devel] [PATCH 0/2] xenfb: Document public headers Owen smith
2014-09-22  9:04 ` [Qemu-devel] [PATCH 1/2] xenfb: Add comment documentation Owen smith
2014-10-08 13:28   ` Stefano Stabellini
2014-09-22  9:04 ` [Qemu-devel] [PATCH 2/2] " Owen smith
2014-09-22 10:16   ` [Qemu-devel] [Xen-devel] " David Vrabel
2014-09-26 10:20     ` Owen Smith
2014-10-03  9:06       ` Ian Campbell
2014-10-08 13:29   ` [Qemu-devel] " Stefano Stabellini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).