From patchwork Fri May 18 09:59:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Andrushchenko X-Patchwork-Id: 10409353 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 A1EC4601F9 for ; Fri, 18 May 2018 09:59:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 914AE28867 for ; Fri, 18 May 2018 09:59:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 857B6288FE; Fri, 18 May 2018 09:59:49 +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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCB2228867 for ; Fri, 18 May 2018 09:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752386AbeERJ7r (ORCPT ); Fri, 18 May 2018 05:59:47 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:43425 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752370AbeERJ7q (ORCPT ); Fri, 18 May 2018 05:59:46 -0400 Received: by mail-lf0-f68.google.com with SMTP id n18-v6so13051690lfh.10; Fri, 18 May 2018 02:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=bQ2N2pt1PpVqRTTl6ELl7pnIDQxSRoI5l88PGAXCJAo=; b=GbvT8yf8WiW8Z53BV2KBaVKBrVrcnryY4ieJMHWeUnshOAwt7t6/STl/UX/aXsT7CY dOA5BwJc2UcIWiZPDuOFfTZ9Ome7JA3eTllvDNwwWIiZsmipheIwYFUtM5oflhw1JHMz 1pDucVINlrHCVwlsbgD7vFi+2gd16amr0xRF2N5pcQc63YFwwDaMZGjcbQxWtqeq3Gcv GJE3M5ge6U2AyEbps7u8YfrZzcLLZPn3g00HXGt3kd3lF81vAps7SU+nuoyY70Id1W4p So504uzI+oO/iNjjzImsMt6FQikAcfpKSRMKnt+WNSyWOBborlu7G3warfA1c9REG48t fdmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bQ2N2pt1PpVqRTTl6ELl7pnIDQxSRoI5l88PGAXCJAo=; b=MIQXZgck0sGjmcemQkYvy+TsYlRQA2mJ5t7fTG9sx2fgP//+Opm/74+DJeHBradBFJ WwdbwRMDpVIbeLp/CKXPx1H7jbelyA4ZNYK58GltANOqh8GO6lkhpYGuRiIg+dAqmcxf BgYHGYzGhutNbjvo36/EG7XWVGQHuDh0bMoK/LUk1ebV0oc2MYKWaVO9N4h/188AwsoY eLGExLNnsLiaLDsD7sPwoAebTYwsqPs08Ol3WiAa/RsHvyDwD65cPl05fGxhVz0Na6RK imHCGH/jHz2pU5yqwmkYWISHkrcEirmYF6KGRjoDuBoOT3kYv9JvaxD+D7QywkJVG3sq uM8A== X-Gm-Message-State: ALKqPwdaGFssuA0J41Wmt6wZ53aYCabOi8b3cT/k5r3lK6EChP98U+P+ eIFLFXiiJ8f8Q5OosjeHh1k= X-Google-Smtp-Source: AB8JxZp6ppdWf08e31EGYrcIyho/2hCmSIxmU+HIP2zolOzaYNBh0aWsY8F+LdKGJZqIWaXrT/WYoQ== X-Received: by 2002:a19:4310:: with SMTP id q16-v6mr4942880lfa.74.1526637584412; Fri, 18 May 2018 02:59:44 -0700 (PDT) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-52.209.223.85.sovam.net.ua. [85.223.209.52]) by smtp.gmail.com with ESMTPSA id c80-v6sm1774706lfb.28.2018.05.18.02.59.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 May 2018 02:59:43 -0700 (PDT) From: Oleksandr Andrushchenko To: xen-devel@lists.xenproject.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.torokhov@gmail.com, jgross@suse.com, lyan@suse.com, boris.ostrovsky@oracle.com Cc: konrad.wilk@oracle.com, andr2000@gmail.com, andrii_chepurnyi@epam.com, Oleksandr Andrushchenko Subject: [PATCH v4 1/2] xen/kbdif: Sync up with the canonical definition in Xen Date: Fri, 18 May 2018 12:59:34 +0300 Message-Id: <20180518095935.26740-1-andr2000@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Oleksandr Andrushchenko This is the sync up with the canonical definition of the keyboard protocol in Xen: 1. Add missing string constants for {feature|request}-raw-pointer to align with the rest of the interface file. 2. Add new XenStore feature fields, so it is possible to individually control set of exposed virtual devices for each guest OS: - set feature-disable-keyboard to 1 if no keyboard device needs to be created - set feature-disable-pointer to 1 if no pointer device needs to be created Signed-off-by: Oleksandr Andrushchenko Cc: Konrad Rzeszutek Wilk Reviewed-by: Juergen Gross --- include/xen/interface/io/kbdif.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/include/xen/interface/io/kbdif.h b/include/xen/interface/io/kbdif.h index 2a9510ade701..808ef7d02a65 100644 --- a/include/xen/interface/io/kbdif.h +++ b/include/xen/interface/io/kbdif.h @@ -51,6 +51,18 @@ * corresponding entries in XenStore and puts 1 as the value of the entry. * If a feature is not supported then 0 must be set or feature entry omitted. * + * feature-disable-keyboard + * Values: + * + * If there is no need to expose a virtual keyboard device by the + * frontend then this must be set to 1. + * + * feature-disable-pointer + * Values: + * + * If there is no need to expose a virtual pointer device by the + * frontend then this must be set to 1. + * * feature-abs-pointer * Values: * @@ -63,6 +75,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 +117,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 @@ -163,9 +189,13 @@ #define XENKBD_DRIVER_NAME "vkbd" +#define XENKBD_FIELD_FEAT_DSBL_KEYBRD "feature-disable-keyboard" +#define XENKBD_FIELD_FEAT_DSBL_POINTER "feature-disable-pointer" #define XENKBD_FIELD_FEAT_ABS_POINTER "feature-abs-pointer" +#define XENKBD_FIELD_FEAT_RAW_POINTER "feature-raw-pointer" #define XENKBD_FIELD_FEAT_MTOUCH "feature-multi-touch" #define XENKBD_FIELD_REQ_ABS_POINTER "request-abs-pointer" +#define XENKBD_FIELD_REQ_RAW_POINTER "request-raw-pointer" #define XENKBD_FIELD_REQ_MTOUCH "request-multi-touch" #define XENKBD_FIELD_RING_GREF "page-gref" #define XENKBD_FIELD_EVT_CHANNEL "event-channel"