Re: [Xen-devel] [PATCH] Add optional ACPI device for Windows Continuum

2016-07-14 Thread Owen Smith
> -Original Message- > From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: 14 July 2016 14:21 > To: Owen Smith; xen-de...@lists.xenproject.org > Subject: Re: [Xen-devel] [PATCH] Add optional ACPI device for Windows > Continuum > > On 13/07/16

[Xen-devel] [PATCH] Add optional ACPI device for Windows Continuum

2016-07-13 Thread Owen Smith
ull screen and additional touch screen elements are added, such as touch keyboard, larger icons and menus, and touch gestures for ease of use. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- tools/firmware/hvmloader/acpi/Makefile | 4 ++-- tools/firmware/hvmloader/acpi/build.c | 11 +

[Xen-devel] [PATCH 2/2 v3] xenfb: Add [feature|request]-raw-pointer

2017-07-26 Thread Owen Smith
uot; is only valid if "request-abs-pointer" is also set. Raw unscaled pointer values are in the range [0, 0x7fff] "feature-raw-pointer" and "request-raw-pointer" added to Xen header in commit 7868654ff7fe5e4a2eeae2b277644fa884a5031e Signed-off-by: Owe

[Xen-devel] [PATCH 1/2 v3] xenfb: Use Input Handlers directly

2017-07-26 Thread Owen Smith
mapping, and supporting documention. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- hw/display/xenfb.c | 401 + 1 file changed, 247 insertions(+), 154 deletions(-) diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index df8b78f..e

[Xen-devel] [PATCH 0/2 v3] xenfb: rework xen vkbd backend

2017-07-26 Thread Owen Smith
or report constant dimmensions. (1) git://xenbits.xen.org/pvdrivers/win/xenvkbd.git Fixes since v2: Rebased to master Reworked the input handler callbacks, simplifying the state tracking and input event mapping. Owen Smith (2): xenfb: Use Input Handlers directly xenfb: Add [feature

[Xen-devel] [PATCH] kbdif: Define "feature-raw-pointer" and "request-raw-pointer"

2017-07-03 Thread Owen Smith
nates to screen size, and the coordinates remain in the range [0, 0x7fff]. This request is only applicable if "request-abs-pointer" is also set. Frontends should set this value before setting Connected. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- Adding this feature will help de

[Xen-devel] [PATCH 1/2 v2] xenfb: Use qemu_input_handler_* calls directly

2017-07-03 Thread Owen Smith
into the XenInput struct. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- hw/display/xenfb.c | 121 + 1 file changed, 113 insertions(+), 8 deletions(-) diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index e76c0d8..88815df

[Xen-devel] [PATCH 2/2 v2] xenfb: Allow vkbd to connect without a DisplayState

2017-07-03 Thread Owen Smith
o indicate that the backend supports reporting absolute position without rescaling. The frontend uses "request-raw-pointer" to request raw unscaled pointer values. If there is no DisplayState, the absolute values are always raw unscaled values. Signed-off-by: Owen Smith <owen.sm...@citr

[Xen-devel] [PATCH 0/2 v2] xenfb: Fix protocol for HVM guests

2017-07-03 Thread Owen Smith
name better reflects the intended use-case (raw pointer vs backend requires vfb device) Owen Smith (2): xenfb: Use qemu_input_handler_* calls directly xenfb: Allow vkbd to connect without a DisplayState hw/display/xenfb.c | 157 +++-- 1 file cha

Re: [Xen-devel] [PATCH 1/2 v3] xenfb: Use Input Handlers directly

2017-08-23 Thread Owen Smith
> -Original Message- > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > Sent: 22 August 2017 00:12 > To: Owen Smith <owen.sm...@citrix.com> > Cc: qemu-de...@nongnu.org; xen-de...@lists.xenproject.org; > sstabell...@kernel.org; Anthony Perard <anthony.p

[Xen-devel] [PATCH 0/4] xenfb: Add vkbd-only option

2017-06-08 Thread Owen Smith
e a leak in the vkbd device model. Owen Smith (4): xenfb: Add feature-vkbd-standalone xenfb: Activate mouse handler ui/input: Add activate/remove for keyboard handlers xenfb: Fix leak by adding/removing keyboard handler hw/display/xenfb.c | 44

[Xen-devel] [PATCH 3/4] ui/input: Add activate/remove for keyboard handlers

2017-06-08 Thread Owen Smith
Adds missing functions to activate and remove keyboard handlers * qemu_activate_kbd_event_handler * qemu_remove_kbd_event_handler Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- include/ui/console.h | 2 ++ ui/input-legacy.c| 12 2 files changed, 14 insertions(+)

[Xen-devel] [PATCH 2/4] xenfb: Activate mouse handler

2017-06-08 Thread Owen Smith
Mouse events are only delivered to the first handler in the chain. Activating the xenfb mouse event handler so that mouse events can be passed over the shared ring protocol. Note: The keyboard handler is activated internally by the add call. Signed-off-by: Owen Smith <owen.sm...@citrix.

[Xen-devel] [PATCH 4/4] xenfb: Fix leak by adding/removing keyboard handler

2017-06-08 Thread Owen Smith
Calls qemu_remove_kbd_event_handler that frees its memory, instead of adding (and allocating some memory) a new NULL handler. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- hw/display/xenfb.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/hw/d

[Xen-devel] [PATCH 1/4] xenfb: Add feature-vkbd-standalone

2017-06-08 Thread Owen Smith
e coordinates cannot be scaled to the non-existent QemuConsole's sizes, and remain unscaled, in the range [0, 0x7FFF]. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- hw/display/xenfb.c | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/hw/di

[Xen-devel] [PATCH] kbdif.h: Introduce feature-vkbd-standalone

2017-06-08 Thread Owen Smith
ds that are standalone (i.e. do not have an associated PV framebuffer) do not rescale absolute mouse or touch coordinates to a the size of the (non-existant) PV framebuffer, and use the range of [0, 0x7fff] for absolute values. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- xen/inc

Re: [Xen-devel] [PATCH] kbdif.h: Introduce feature-vkbd-standalone

2017-06-13 Thread Owen Smith
and avoid a VM hang. (frontend WIP: http://xenbits.xen.org/gitweb/?p=pvdrivers/win/xenvkbd.git;a=tree) Owen From: Oleksandr Andrushchenko<mailto:andr2...@gmail.com> Sent: 12 June 2017 08:07 To: Owen Smith<mailto:owen.sm...@citrix.com>; xen-de...@lists.xenproject.org&l

Re: [Xen-devel] [PATCH 3/4] ui/input: Add activate/remove for keyboard handlers

2017-06-13 Thread Owen Smith
Noted, I have had a look at porting the xenfb input handlers to the qemu_input_handler_*() functions, and will post an update that combines patch 3 and 4 of this series. From: Gerd Hoffmann<mailto:kra...@redhat.com> Sent: 08 June 2017 14:39 To: Owen Smith<mailto:owen.sm...@citrix.co

[Xen-devel] [PATCH 3/3 v4] xenfb: Add [feature|request]-raw-pointer

2017-09-26 Thread Owen Smith
uot; is only valid if "request-abs-pointer" is also set. Raw unscaled pointer values are in the range [0, 0x7fff] Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- hw/display/xenfb.c | 37 - 1 file changed, 24 insertions(+), 13 deletions(-)

[Xen-devel] [PATCH 2/3 v4] xenfb: Use Input Handlers directly

2017-09-26 Thread Owen Smith
, and supporting documention. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- hw/display/xenfb.c | 289 - 1 file changed, 133 insertions(+), 156 deletions(-) diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index df8b78f..33361b4 100644 --

[Xen-devel] [PATCH 1/3 v4] ui/input: add qemu_input_qcode_to_linux

2017-09-26 Thread Owen Smith
Build a reverse mapping on first call that converts qcodes to linux KEY_* identifiers. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- include/ui/input.h | 1 + ui/input-keymap.c | 16 2 files changed, 17 insertions(+) diff --git a/include/ui/input.h b/incl

[Xen-devel] [PATCH 0/3 v4] xenfb: Enablement for Windows PV HID frontend

2017-09-26 Thread Owen Smith
reported. Owen Smith (3): ui/input: add qemu_input_qcode_to_linux xenfb: Use Input Handlers directly xenfb: Add [feature|request]-raw-pointer hw/display/xenfb.c | 300 + include/ui/input.h | 1 + ui/input-keymap.c | 16 +++ 3 files

Re: [Xen-devel] [PATCH 3/3 v4] xenfb: Add [feature|request]-raw-pointer

2017-10-19 Thread Owen Smith
ny Perard <anthony.per...@citrix.com>; > qemu-de...@nongnu.org; xen-de...@lists.xenproject.org; Owen Smith > <owen.sm...@citrix.com> > Subject: RE: [Xen-devel] [PATCH 3/3 v4] xenfb: Add [feature|request]-raw- > pointer > > On Thu, 12 Oct 2017, Paul Durrant wrote: >

[Xen-devel] [PATCH v5 1/4] ui: generate qcode to linux mappings

2017-11-03 Thread Owen Smith
Use keycodedb to generate a qcode to linux mapping Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- Makefile | 1 + include/ui/input.h | 3 +++ ui/input-keymap.c | 1 + 3 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index ec73acfa9a..42a9030734

[Xen-devel] [PATCH v5 0/4] xenfb: Enablement for Windows PV HID frontend

2017-11-03 Thread Owen Smith
for raw_pointer devices Owen Smith (3): ui: generate qcode to linux mappings xenfb: Use Input Handlers directly xenfb: Add [feature|request]-raw-pointer xenfb: activate input handlers for raw pointer devices Makefile | 1 + hw/display/xenfb.c | 294

[Xen-devel] [PATCH v5 2/4] xenfb: Use Input Handlers directly

2017-11-03 Thread Owen Smith
, and supporting documention. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- hw/display/xenfb.c | 274 ++--- 1 file changed, 137 insertions(+), 137 deletions(-) diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index 8e2547ac05..0cf8b3aff7

[Xen-devel] [PATCH v5 3/4] xenfb: Add [feature|request]-raw-pointer

2017-11-03 Thread Owen Smith
uot; is only valid if "request-abs-pointer" is also set. Raw unscaled pointer values are in the range [0, 0x7fff] "feature-raw-pointer" and "request-raw-pointer" added to Xen header in commit 7868654ff7fe5e4a2eeae2b277644fa884a5031e Signed-off-by: Owe

[Xen-devel] [PATCH v5 4/4] xenfb: activate input handlers for raw pointer devices

2017-11-03 Thread Owen Smith
can incorrectly scale absolute coordinates when the display resolution is not 800x600. Signed-off-by: Owen Smith <owen.sm...@citrix.com> --- hw/display/xenfb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index 3cbc248c34..c070c84f5b

Re: [Xen-devel] [PATCH v5 0/4] xenfb: Enablement for Windows PV HID frontend

2017-11-08 Thread Owen Smith
I'd imagine this would be merged via the Xen queue, as it primarily deals with the xen backend Owen > -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: 08 November 2017 10:21 > To: Owen Smith <owen.sm...@citrix.com> > Cc: sstabell...@kerne