Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4446194imm; Mon, 14 May 2018 07:41:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrzjCeEuJUlOkmTA5Epo2rPX+YEETeVIgcFUVk9Nkb9Db89I0Dly1Is1fO5gzrp2Qu5G620 X-Received: by 2002:a62:c413:: with SMTP id y19-v6mr10829144pff.97.1526308899578; Mon, 14 May 2018 07:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526308899; cv=none; d=google.com; s=arc-20160816; b=YtTm5UScWjNeSOh3TigTcAmdx3ExGOPBJgtnZ51vV8DWf5ymnCLph3g271c+nrA2v2 nqTca3J8PSlRjBI1k/ynKr3Uc8NFUnAiqZhJsQyDfND2juqPTen9CtTz6/WYuwWm0b8q Ul33AxODtlJgg+FZi3fYGNQBmUwwkBxtrVUmlr7gqCotnxOedgUUZEqgxqNQfxCRJAeh hbznsEUBDtcTNGx+GWyziHVKxJBP3cyHm7c4JqZoW2D4SmR//fG74cvL8di37CXvGdPD eGo7IdP8ELCy2zK6zO70Am+tdYHxulnEctBW62qSAKt29L1hzybSPKuAu3USVRy7Ks8D EI2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=bQ2N2pt1PpVqRTTl6ELl7pnIDQxSRoI5l88PGAXCJAo=; b=b4NZM8hfddd2cnzaWB+IcBIiXj6vHcVtqaaFVA/6JSWUV08JIX8o5ycsE/GbMrWG3o JHsSm9j0TAeiN4yRVtpffclpP/Da65ZJ3mdLEqxUFrfr27AkGdGN1+a1DbVkojMCZsuh 6cbn/DtMX6MM/mIjUBw6r05Db/8wrFpudA4YOmBj7bdR6+gGtRvNb7nLd8Y5zcaE/nbO 3LbW9MW/FNUdxmqb99WbWZfwaKPOvG9hFVCdDrdTIJ/wF8LA5XJKWBnpcgM77gN1RH8H soUsYjkLwhxCiDB+HxpN1V70tnhYAwS44qm8QD52bRX8Wl8Ccx/6r35w/cAmO6mF/589 AIgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kN21T9yB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9-v6si10293776plk.94.2018.05.14.07.41.12; Mon, 14 May 2018 07:41:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kN21T9yB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753872AbeENOkm (ORCPT + 99 others); Mon, 14 May 2018 10:40:42 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35111 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753769AbeENOkj (ORCPT ); Mon, 14 May 2018 10:40:39 -0400 Received: by mail-lf0-f66.google.com with SMTP id y72-v6so18380506lfd.2; Mon, 14 May 2018 07:40:38 -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=kN21T9yB1ybMIjJ1j7H+eqs2OinDuwSdKodS/uy9YZH23iVrSHknGsB5TGpp0ERJPG TE0p7dOSXY3HWZLuP9bSK481zav68X96QA2KzZS6YQ2RWvngngsTMiYp+I8kqfH9X4W6 Un7ehVZOs/NgWBn0OGBuA+OUF9gDsebXp7kmxSic2lPw90wYjrQcfE6iFVPr6SHMU4Uv QzbcPmbqJ00+wwzYqLyNHBHFXBGqI8ArNJkgC7W2oZxD6lKiQq4t0wOP1m8oakn4RNTe 04+xzQou5zrY1774JBpx3aH2xXjdvpzhsrDPR+TSl4QeXYj2zRnw+bgxVjI98WNK83xN SJSQ== 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=WuDD5JyP/nAxcVO8Df64lsiuP53GmJJ/UM0apIcj571bSQcaEB9r/M3ge2mJMQi3qu QqNowl83yP9T2pvd2TTxMAhJMR+0rNp2f2/j42gQPJm1inq87E1u1gSd4sDZ+bIIeb7d obE61saucDIc/4nMVUL3vGh0CojvZzW0YziVNNHSUF3lzv7oL7PuAMbBR/JqY567ogYT nMeyFWXVjUV+fkMZc8cHIOXHF7Vl1/D2SGq1LbgwJar7a7dX2I+ah29+1WOpC8/CjFIy j5ICZ0M5KAMaAlLNMY2S1ccaHoQZN4zdVwkIdIZTtIGPbGu9vdFhNexYku0KLrm/w7Ly 2FRQ== X-Gm-Message-State: ALKqPwcttTHo5aLM/E74jxBY1gMpfgoEzcGAdyjMDt1Aa89eqAjqEn73 4PctcvIHwGMPpcvNHjDjI/M= X-Received: by 2002:a19:c212:: with SMTP id l18-v6mr8152699lfc.55.1526308837350; Mon, 14 May 2018 07:40:37 -0700 (PDT) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-54.209.223.85.sovam.net.ua. [85.223.209.54]) by smtp.gmail.com with ESMTPSA id d73-v6sm2424425lfd.50.2018.05.14.07.40.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 May 2018 07:40:36 -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 v3 1/2] xen/kbdif: Sync up with the canonical definition in Xen Date: Mon, 14 May 2018 17:40:28 +0300 Message-Id: <20180514144029.16019-1-andr2000@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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" -- 2.17.0