All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Smith <sos22-xen@srcf.ucam.org>
To: Markus Armbruster <armbru@redhat.com>
Cc: aliguori <aliguori@mail.utexas.edu>,
	Jeremy Katz <katzj@redhat.com>,
	xen-devel <xen-devel@lists.xensource.com>,
	sos22@srcf.ucam.org
Subject: Re: [PATCH] Paravirt framebuffer backend tools [2/5]
Date: Sat, 7 Oct 2006 10:42:56 +0100	[thread overview]
Message-ID: <20061007094256.GA2028@cam.ac.uk> (raw)
In-Reply-To: <87bqopwn5c.fsf@pike.pond.sub.org>


[-- Attachment #1.1: Type: text/plain, Size: 2861 bytes --]

> >> How to best map buttons from VNC and SDL to input beyond the first
> >> three?  If we can find a workable answer for that, providing for more
> >> buttons should be trivial.
> > *shrug* We might as well just send input layer codes across the ring
> > buffer and do the translation in the backend.  That makes the Linux
> > frontend easier and doesn't make other operating systems any harder.
> > If we later find that some other operating system supports buttons
> > which the input layer doesn't then we can figure out what to do with
> > them then; provided we make the frontend discard buttons it doesn't
> > understand it should be trivial to do this in a backwards compatible
> > way.
> The input layer treats mouse buttons just like keys.  If we use its
> button encoding, we can just as well use XENKBD_TYPE_KEY and drop
> XENKBD_TYPE_BUTTON.  Any objections?
Choosing the correct encoding for key events is (as we've so recently
demonstrated) non-trivial, so I think I'd like to avoid tying it too
closely to the encoding for mouse events, if it's all the same to you.

> >> >> +
> >> >> +	event.type = XENFB_TYPE_SET_EVENTS;
> >> >> +	event.set_events.flags = XENFB_FLAG_UPDATE;
> >> >> +	if (xenfb_fb_event(xenfb, &event))
> >> >> +		goto error;
> >> > Would it make sense to negotiate this via xenbus at connection setup
> >> > time?  It's not like it's likely to change during the life of the
> >> > buffer.
> >> Can you point to an example of such a negotiation between a frontend
> >> and a backend via xenbus?
> > The netif feature flags are probably the most obvious example.  For
> > instance, to turn on copy rx mode, you first have the backend put
> > feature-rx-copy=1 in its xenstore area, and then when the frontend
> > connects it notices this and puts request-rx-copy=1 in its area.  The
> > backend reads this out as part of connection setup, and rx copy mode
> > is turned on.
> >
> > The equivalent in this case would be for the backend to set
> > request-update=1 in its area when it starts, and then for the frontend
> > to set provides-update=1 if appropriate.
> I'll look into this when/if I find the time.
Thanks.

> > Of course, this sort of thing only works well for flags which don't
> > change while the buffer is live.  I'd certainly expect
> > XENFB_FLAG_UPDATE to fit into that category, but perhaps you have some
> > future plans which wouldn't work well with this?
> I can't guarantee we won't need a mechanism to switch things during
> operation at some time, but neither can I guarantee that
> XENFB_TYPE_SET_EVENTS as it is now will do for that then.
> 
> Instead of attempting to cover all possible future cases of option
> negotiation / mode switching, let's just provide for what we need now
> in a simple and reasonably general way.
Good plan.

Steven.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  reply	other threads:[~2006-10-07  9:42 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-02 19:58 [PATCH] Paravirt framebuffer backend tools [2/5] Jeremy Katz
2006-09-04  9:01 ` Steven Smith
2006-09-04 12:55   ` Laurent Vivier
2006-09-06  9:15     ` Steven Smith
2006-09-06 11:41       ` Laurent Vivier
2006-09-06 17:10         ` Steven Smith
2006-09-06 17:50           ` Gerd Hoffmann
2006-09-07  7:32             ` Laurent Vivier
2006-09-07  7:50             ` Steven Smith
2006-09-07  7:31           ` Laurent Vivier
2006-09-07  8:38             ` Steven Smith
2006-09-07  9:31               ` Laurent Vivier
2006-09-07  9:55                 ` Steven Smith
2006-09-07 12:03                   ` Laurent Vivier
2006-09-08 13:26               ` Anthony Liguori
2006-09-08 14:00                 ` Laurent Vivier
2006-09-08 14:12                 ` Steven Smith
2006-09-08 14:23                   ` Anthony Liguori
2006-10-07 16:48                     ` Markus Armbruster
2006-10-10 16:53                       ` Stephen C. Tweedie
2006-10-10 17:46                         ` Anthony Liguori
2006-10-10 17:46                         ` Anthony Liguori
2006-10-11 13:49                         ` Markus Armbruster
2006-10-11 15:18                           ` Gerd Hoffmann
2006-10-11 15:21                             ` Laurent Vivier
2006-10-10 18:48                       ` Steven Smith
2006-09-10 10:40                 ` Steven Smith
2006-09-10 13:05                   ` Anthony Liguori
2006-09-05 16:11   ` Jeremy Katz
2006-09-05 16:57     ` Anthony Liguori
2006-09-06  9:14       ` Steven Smith
2006-09-06  9:13     ` Steven Smith
2006-09-30  8:51   ` Markus Armbruster
2006-10-02  9:01     ` Steven Smith
2006-10-04 14:04       ` Markus Armbruster
2006-10-04 14:20         ` Daniel P. Berrange
2006-10-04 14:57         ` Anthony Liguori
2006-10-05 18:41           ` Steven Smith
2006-10-05 18:33         ` Steven Smith
2006-10-06 14:10           ` Markus Armbruster
2006-10-07  9:42             ` Steven Smith [this message]
2006-09-12 18:55 ` Daniel P. Berrange

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061007094256.GA2028@cam.ac.uk \
    --to=sos22-xen@srcf.ucam.org \
    --cc=aliguori@mail.utexas.edu \
    --cc=armbru@redhat.com \
    --cc=katzj@redhat.com \
    --cc=sos22@srcf.ucam.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.