Skip to contentSkip to conversation

xenfb: Document public headers

PATCH In review Owen smith 4 participants 14 messages Sep 22, 2014 – Oct 8, 2014

lore
Share & tools
lore
author
#1 lore raw

PATCH 1/2 xenfb: Add comment documentation

In reply to Owen smith

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

---
 xen/include/public/io/kbdif.h | 74 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
xen/include/public/io/kbdif.h +74 -0
index 2d2aebd..b29bc12 100644
@@ -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) */
 
 /*
Signature · 1 line
2.1.0
author
#5 lore raw

PATCH 2/2 xenfb: Add comment documentation

In reply to Owen smith

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

---
 xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
xen/include/public/io/fbif.h +25 -0
index cc25aab..ba3f524 100644
@@ -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) */
 
 /*
Signature · 1 line
2.1.0
author
#2 lore raw

PATCH 1/2 xenfb: Add comment documentation

In reply to Owen smith

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

---
 xen/include/public/io/kbdif.h | 74 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
xen/include/public/io/kbdif.h +74 -0
index 2d2aebd..b29bc12 100644
@@ -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) */
 
 /*
Signature · 1 line
2.1.0

Owen smith

author
#0 lore raw

cover xenfb: Document public headers

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(+)
Signature · 1 line
2.1.0
author
#6 lore raw

PATCH 2/2 xenfb: Add comment documentation

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

---
 xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
xen/include/public/io/fbif.h +25 -0
index cc25aab..ba3f524 100644
@@ -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) */
 
 /*
Signature · 1 line
2.1.0
#7 lore raw

Re: [Qemu-devel] [Xen-devel] [PATCH 2/2] xenfb: Add comment documentation

Quoted 15 lines · Owen smith

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

---
 xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
xen/include/public/io/fbif.h +0 -0
index cc25aab..ba3f524 100644
@@ -26,6 +26,31 @@
 #ifndef __XEN_PUBLIC_IO_FBIF_H__
 #define __XEN_PUBLIC_IO_FBIF_H__
 

xen/include/public/io/fbif.h line 38

Quoted 10 lines
xen/include/public/io/fbif.h +10 -0
+/*
+ * 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.

xen/include/public/io/fbif.h line 45

Quoted 6 lines
xen/include/public/io/fbif.h +6 -0
+ * 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

author
#8 lore raw

Re: [PATCH 2/2] xenfb: Add comment documentation

Quoted 23 lines

-----Original Message-----
From: David Vrabel
Sent: 22 September 2014 11:16
To: Owen Smith; [email protected]
Cc: Stefano Stabellini; [email protected]; Ian Campbell
Subject: Re: [Xen-devel] [PATCH 2/2] xenfb: Add comment documentation

Quoted 15 lines · Owen smith

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

---
 xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
(quoted diff) +0 -0

b/xen/include/public/io/fbif.h index cc25aab..ba3f524 100644

xen/include/public/io/fbif.h +0 -0
@@ -26,6 +26,31 @@
 #ifndef __XEN_PUBLIC_IO_FBIF_H__
 #define __XEN_PUBLIC_IO_FBIF_H__
 
Quoted 12 lines

xen/include/public/io/fbif.h line 38

Quoted 10 lines
xen/include/public/io/fbif.h +10 -0
+/*
+ * 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.

Quoted 6 lines

xen/include/public/io/fbif.h

Quoted 6 lines
xen/include/public/io/fbif.h +5 -0
+ * 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
Quoted 8 lines

ring

xen/include/public/io/fbif.h line 45

Quoted 1 line
xen/include/public/io/fbif.h +1 -0
+ *   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)

Quoted 1 line

David

author
#9 lore raw

Re: [Qemu-devel] [Xen-devel] [PATCH 2/2] xenfb: Add comment documentation

In reply to David Vrabel
Quoted 23 lines

-----Original Message-----
From: David Vrabel
Sent: 22 September 2014 11:16
To: Owen Smith; [email protected]
Cc: Stefano Stabellini; [email protected]; Ian Campbell
Subject: Re: [Xen-devel] [PATCH 2/2] xenfb: Add comment documentation

Quoted 15 lines · Owen smith

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

---
 xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
(quoted diff) +0 -0

b/xen/include/public/io/fbif.h index cc25aab..ba3f524 100644

xen/include/public/io/fbif.h +0 -0
@@ -26,6 +26,31 @@
 #ifndef __XEN_PUBLIC_IO_FBIF_H__
 #define __XEN_PUBLIC_IO_FBIF_H__
 
Quoted 12 lines

xen/include/public/io/fbif.h line 38

Quoted 10 lines
xen/include/public/io/fbif.h +10 -0
+/*
+ * 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.

Quoted 6 lines

xen/include/public/io/fbif.h

Quoted 6 lines
xen/include/public/io/fbif.h +5 -0
+ * 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
Quoted 8 lines

ring

xen/include/public/io/fbif.h line 45

Quoted 1 line
xen/include/public/io/fbif.h +1 -0
+ *   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)

Quoted 1 line

David

#10 lore raw

Re: [PATCH 2/2] xenfb: Add comment documentation

Quoted 11 lines · Owen Smith
Quoted 11 lines
Quoted 5 lines

+ * 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

Quoted 1 line

+ * 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?

Quoted 6 lines
Quoted 2 lines

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.

#11 lore raw

Re: [Qemu-devel] [Xen-devel] [PATCH 2/2] xenfb: Add comment documentation

In reply to Owen Smith
Quoted 11 lines · Owen Smith
Quoted 11 lines
Quoted 5 lines

+ * 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

Quoted 1 line

+ * 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?

Quoted 6 lines
Quoted 2 lines

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.

#3 lore raw

Re: [PATCH 1/2] xenfb: Add comment documentation

In reply to Owen smith
Quoted 4 lines · Owen smith

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

I would suggest resending this patch series removing the new options you are introducing with [email protected].
This series should be a precursor and could go in the 4.5 release.

Quoted 91 lines
 xen/include/public/io/kbdif.h | 74 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
xen/include/public/io/kbdif.h +74 -0
index 2d2aebd..b29bc12 100644
@@ -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) */
 
 /*
Signature · 1 line
2.1.0
#12 lore raw

Re: [PATCH 2/2] xenfb: Add comment documentation

In reply to Owen smith
Quoted 3 lines · Owen smith

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

thanks for the patch

Quoted 25 lines
 xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
xen/include/public/io/fbif.h +14 -0
index cc25aab..ba3f524 100644
@@ -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.

xen/include/public/io/fbif.h line 52

Quoted 10 lines
xen/include/public/io/fbif.h +10 -0
+ *
+ *   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.

Quoted 6 lines
xen/include/public/io/fbif.h +0 -0
 /* Out events (frontend -> backend) */
 
 /*
Signature · 1 line
2.1.0
#13 lore raw

Re: [Qemu-devel] [PATCH 2/2] xenfb: Add comment documentation

In reply to Owen smith
Quoted 3 lines · Owen smith

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

thanks for the patch

Quoted 25 lines
 xen/include/public/io/fbif.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
xen/include/public/io/fbif.h +14 -0
index cc25aab..ba3f524 100644
@@ -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.

xen/include/public/io/fbif.h line 52

Quoted 10 lines
xen/include/public/io/fbif.h +10 -0
+ *
+ *   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.

Quoted 6 lines
xen/include/public/io/fbif.h +0 -0
 /* Out events (frontend -> backend) */
 
 /*
Signature · 1 line
2.1.0
#4 lore raw

Re: [Qemu-devel] [PATCH 1/2] xenfb: Add comment documentation

In reply to Owen smith
Quoted 4 lines · Owen smith

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

I would suggest resending this patch series removing the new options you are introducing with [email protected].
This series should be a precursor and could go in the 4.5 release.

Quoted 91 lines
 xen/include/public/io/kbdif.h | 74 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
xen/include/public/io/kbdif.h +74 -0
index 2d2aebd..b29bc12 100644
@@ -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) */
 
 /*
Signature · 1 line
2.1.0