Skip to content

Conversation

@sharady
Copy link

@sharady sharady commented Feb 15, 2017

No description provided.

Xenopsd is responsible for sorting out the defaults and there's a good
reason to leave it empty as it enables QEMU's ExtendedKeyEvent
extension (see xenopsd#272).

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Until now we have been defaulting the keymap to `en-us` but this
prevents VNC clients from using the QEMU ExtendedKeyEvent extension for
passing raw scan codes.

If a keymap is not passed to QEMU, it will default to using `en-us`
anyway but will enable the ExtendedKeyEvent extension.

This does not change the behaviour for when a keymap has actually been
specified. In this case, it is still honoured and passed to QEMU with
the `-k` option.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
@sharady
Copy link
Author

sharady commented Feb 15, 2017

Needs review, Commit xapi-project/xenopsd@97f3c6d as part of xapi-project/xenopsd#272 not needed on cream.

Copy link

@lindig lindig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a comment about naming. If this is a backport, don't bother changing it. If this is new code, please consider changing the names.

(maybe_with_default [] (fun i -> ["-dom0-input"; string_of_int i]) x)
(maybe_with_default [] (fun i -> ["-dom0-input"; string_of_int i]) x)
in
let vnc_opts_of ip_addr_opt auto port keymap =
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming of values is a bit inconsistent: the IP address and the keymap are both optional values but one has opt in its name and the other doesn't.

Independent of that I've tried to come up with more regular code but haven't found something that is vastly better.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a backport, lets keep the commits and commit history intact as we have in trunk.

@robhoes
Copy link

robhoes commented Feb 17, 2017

@lindig When you reviewed this, did you check that the code was backported correctly?

@lindig
Copy link

lindig commented Feb 17, 2017

I did not since I assumed these are cherry-picks. Will take a closer look.

@robhoes
Copy link

robhoes commented Feb 17, 2017

@lindig Thanks. Backports from post-Cream are slightly complicated cherry-picks, because repos and paths are changed. So it's good to verify this.

@lindig
Copy link

lindig commented Feb 17, 2017

Surprisingly, the original fix was in xenopds whereas these commits are in xapi. I believe the backport is faithful to the original.

@lindig lindig merged commit ea21ece into xenserver:cream-bugfix Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants