From patchwork Mon Jul 3 12:57:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Owen Smith X-Patchwork-Id: 9822673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 79B4F60237 for ; Mon, 3 Jul 2017 13:01:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B11E203B9 for ; Mon, 3 Jul 2017 13:01:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D8F527813; Mon, 3 Jul 2017 13:01:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F1302203B9 for ; Mon, 3 Jul 2017 13:01:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dS0wL-0007dc-TB; Mon, 03 Jul 2017 12:58:57 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dS0wK-0007dU-M4 for xen-devel@lists.xen.org; Mon, 03 Jul 2017 12:58:56 +0000 Received: from [85.158.137.68] by server-14.bemta-3.messagelabs.com id 94/68-01862-F8F3A595; Mon, 03 Jul 2017 12:58:55 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJLMWRWlGSWpSXmKPExsXitHRDpG6/fVS kwe5n0hZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8a5SSfYCyYKVNw7/YW1gbGft4uRk0NCwF9i xbkZjCA2m4CGxIzOxSwgtoiArMTqrjnsIDazQKHE86nzwOLCAn4SH5rms4HYLAIqEisufGQCs XkFXCTuT73ECjFTTuL88Z/MILaQgJLEt8UvmCFqBCVOznzCAjFTQuLgixfMExi5ZyFJzUKSWs DItIpRozi1qCy1SNfITC+pKDM9oyQ3MTNH19DAWC83tbg4MT01JzGpWC85P3cTIzAY6hkYGHc wNuz1O8QoycGkJMrrejMyUogvKT+lMiOxOCO+qDQntfgQowwHh5IEb5xdVKSQYFFqempFWmYO MCxh0hIcPEoivFsMgdK8xQWJucWZ6RCpU4y6HK8m/P/GJMSSl5+XKiXOKwoyQwCkKKM0D24EL EYuMcpKCfMyMjAwCPEUpBblZpagyr9iFOdgVBLmbQKZwpOZVwK36RXQEUxARzT0RIAcUZKIkJ JqYGydwzfntFDvofNmld+3bOg1MFqu1xPTd5b//LE8jxuexk1z/81mnq36KObEq/9vu1evOKH 6hl+6hf13WdCFu497btWf0Tx15MexuYZK85+YqOTvc5j6k49nC8+Lvlhb8ZgE05W28pz5Lq/+ /7p5Ora8p+NA0EKeo794l98okhXvqJ8o9KzUIl+JpTgj0VCLuag4EQBbI0TvjAIAAA== X-Env-Sender: prvs=35088db86=owen.smith@citrix.com X-Msg-Ref: server-6.tower-31.messagelabs.com!1499086733!65141565!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 7431 invoked from network); 3 Jul 2017 12:58:55 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 3 Jul 2017 12:58:55 -0000 X-IronPort-AV: E=Sophos;i="5.40,303,1496102400"; d="scan'208";a="430199798" From: Owen Smith To: Date: Mon, 3 Jul 2017 12:57:53 +0000 Message-ID: <1499086673-1877-1-git-send-email-owen.smith@citrix.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Cc: andr2000@gmail.com, sstabellini@kernel.org, Owen Smith Subject: [Xen-devel] [PATCH] kbdif: Define "feature-raw-pointer" and "request-raw-pointer" X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Backends set "feature-raw-pointer" if its capable of reporting absolute positions without scaling the coordinates to screen size. This should be set during the backend init. Frontends set "request-raw-pointer" to request that backends do not rescale absolute coordinates 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 Reviewed-by: Paul Durrant Reviewed-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk --- Adding this feature will help determine the difference between older backends and newer backends. In the case I'm interested in, the difference between old QEMU vkbd backend which blocks waiting for the vfb device, which is not present on HVM guests, and a newer QEMU backend that does not rely on display information to rescale axis values. xen/include/public/io/kbdif.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/xen/include/public/io/kbdif.h b/xen/include/public/io/kbdif.h index dcbd71a..3ce54e9 100644 --- a/xen/include/public/io/kbdif.h +++ b/xen/include/public/io/kbdif.h @@ -63,6 +63,13 @@ * Backends, which support reporting of multi-touch events * should set this to 1. * + * feature-raw-pointer + * Values: + * + * Backends, which support reporting raw (unscaled) absolute coordinates + * for pointer devices should set this to 1. Raw (unscaled) values have + * a range of [0, 0x7fff]. + * *------------------------- Pointer Device Parameters ------------------------ * * width @@ -98,6 +105,13 @@ * * Request backend to report multi-touch events. * + * request-raw-pointer + * Values: + * + * Request backend to report raw unscaled absolute pointer coordinates. + * This option is only valid if request-abs-pointer is also set. + * Raw unscaled coordinates have the range [0, 0x7fff] + * *----------------------- Request Transport Parameters ----------------------- * * event-channel