Received: by 10.192.165.148 with SMTP id m20csp2514590imm; Thu, 26 Apr 2018 12:17:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Gwo6DgK1prK02jRqu2YEMj2lgokwzJQAhWTf/dhu38h3WbLxA1tBs1rzg9YD0EDz8TLDK X-Received: by 2002:a17:902:822:: with SMTP id 31-v6mr27625795plk.172.1524770278625; Thu, 26 Apr 2018 12:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524770278; cv=none; d=google.com; s=arc-20160816; b=hRM/Iwl0Syqz7Nuf0sYiHxpHaG1jxWbjcru7tyQ7RmXXiqCsapL++dv/nLUt6VcJOc xgWT7jkJCA4N1d4SzR7Ti+1AJ3d8K02wAonEOsbA7GfA3EuAOY8LdxW0VBPdgLbumaI7 6/X92WohAI608u0Me+RljtHqziu4qC8CH/g7oYjY+oQFmUBj3LQZjeHy0/7D56rzDELw OCfdXb5fXxYGK49xt7qSVx+mtqvPz12VTYAwSaD2rSKLQMAfF9qpV/iA4BPW8WJSKdll hhjAOt/fv8V8QEoy6RFB8kFPywu3+HNog9dQg1O0eJhAxW0c5BsS7m5axbm0bbZe7y7z jSUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Ndh5zhm2nKm90zWJIDzjH769jpFao1TwHZVy6YYnguA=; b=b4cWUwkBDeCcg0z/ASvJxCObH0yExUUrTAcILD3GKqglZDQyDenfp18RAFOntW24I+ pBp0CUXABbAeaopNuqQ0CYyRQBbgJf/af06+6U42kGrZouj9IoJNgsIrxROR8kJVcwv0 x/uzxjcvwGPlKxWyEIDXs8jI16G+9Rw2yf1JtXlMd5zOyjOlCulfwbBunfBLKsQ6/XGZ +B2fzxxviCpkdR4GvevT1poZACdjyU408w78ZoA9A0Y84Z7kSgk04A9sNKPKr5sB4sen OaVKymbwuG5ZiWToYiT9yq/lkMGzmjo/5UhoOdkhjXd4lvPbpWUK3UiXEUlLSOoBJvKY oPHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GNADGLgL; 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 s13si19169912pfs.91.2018.04.26.12.17.43; Thu, 26 Apr 2018 12:17:58 -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=GNADGLgL; 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 S1753384AbeDZTQa (ORCPT + 99 others); Thu, 26 Apr 2018 15:16:30 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:43386 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751481AbeDZTQ2 (ORCPT ); Thu, 26 Apr 2018 15:16:28 -0400 Received: by mail-pg0-f68.google.com with SMTP id f132so16639512pgc.10; Thu, 26 Apr 2018 12:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Ndh5zhm2nKm90zWJIDzjH769jpFao1TwHZVy6YYnguA=; b=GNADGLgLB2KLGOgEGwXp9FDqX91jpY/WqbmfDIM60NweY5ofIk9ITi+Ekjtk/c+k9T y/63rAjljQ1jNTbU/WeTZRsxO5f1/dymTgg722WDnOU3/by/+/i5SGEZk9W0bIvWGSmF WPoEoQp2mvku30VGouWrauSuaAlkIDyUWFvaguSkOX4C04r15KwSc7o71rKWkpA8+Rig 3ROWxEq3WT3O6eloLXP7pKqRaTTxQNvbF2tdqG8RnpgRmGYeMgjRTWM1QkhDG9c73OwW 55N4oVVVugddxnjxM5vLdqQtbaDDW5KTYPIFt5Y5d1b4UKz6QJiLnajXORE0uf8ZmHO8 0VlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Ndh5zhm2nKm90zWJIDzjH769jpFao1TwHZVy6YYnguA=; b=LuamGEMhkyR+9IfT7rfehR5nmySh1HNENLbZMuuXRXdEwG9OLYiTaoPhXfylsFT4yX B0jfBue/914xNDkCiUu+AXj4zRqWhBw0U0dOLV5F0T3jAAaMKLCVOOibCQGYWCB2H21C 1ja4rUBO8EuqFqLYkpRFiO9BB8519Sdcj+I3ZLf9zrL3uE7R0K19Vcu9K7X2KbzmNg1u J+e5MY/A/cUlui99t6dHI+UF8IpWoZFNAVjnneLgId2PGzJwh0bSIczt7JTPj/uZCBfJ fuOIn70f6I+XWXfKqH07FhLDxmlscXiREwrfssxE2XOz1A5jZK5ShrEo05UcNbg0eA3S sl6A== X-Gm-Message-State: ALQs6tC+LOUlSnTrv2QRu3nS4UWfyuuoTJS0rTu7Bf8bY1TaX7Bsnd2n aNcWmg7Xt12WaJ9iA0hKEYw= X-Received: by 10.98.10.72 with SMTP id s69mr33300061pfi.134.1524770187132; Thu, 26 Apr 2018 12:16:27 -0700 (PDT) Received: from dtor-ws ([2620:0:1000:1511:8de6:27a8:ed13:2ef5]) by smtp.gmail.com with ESMTPSA id l192sm33283055pga.1.2018.04.26.12.16.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Apr 2018 12:16:26 -0700 (PDT) Date: Thu, 26 Apr 2018 12:16:24 -0700 From: Dmitry Torokhov To: Oleksandr Andrushchenko Cc: Juergen Gross , xen-devel@lists.xenproject.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, lyan@suse.com, boris.ostrovsky@oracle.com, andrii_chepurnyi@epam.com, Oleksandr Andrushchenko Subject: Re: [PATCH] Input: xen-kbdfront - allow better run-time configuration Message-ID: <20180426191624.GB162443@dtor-ws> References: <20180418150445.9805-1-andr2000@gmail.com> <2bff035e-303e-d644-5f51-5e64150c097c@gmail.com> <20180423185325.GB66646@dtor-ws> <8ef84389-4659-d4bb-271f-53155062b7b6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8ef84389-4659-d4bb-271f-53155062b7b6@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 08:55:19AM +0300, Oleksandr Andrushchenko wrote: > On 04/23/2018 09:53 PM, Dmitry Torokhov wrote: > > On Thu, Apr 19, 2018 at 02:44:19PM +0300, Oleksandr Andrushchenko wrote: > > > On 04/19/2018 02:25 PM, Juergen Gross wrote: > > > > On 18/04/18 17:04, Oleksandr Andrushchenko wrote: > > > > > From: Oleksandr Andrushchenko > > > > > > > > > > It is now only possible to control if multi-touch virtual device > > > > > is created or not (via the corresponding XenStore entries), > > > > > but keyboard and pointer devices are always created. > > > > Why don't you want to go that route for keyboard and mouse, too? > > > > Or does this really make no sense? > > > Well, I would prefer not to touch anything outside Linux and > > > this driver. And these settings seem to be implementation specific. > > > So, this is why introduce Linux module parameters and don't extend > > > the kbdif protocol. > > Why do you consider this implementation specific? How other guests > > decide to forego creation of relative pointer device or keyboard-like > > device? > > > > You already have "features" for absolute pointing device and multitouch, > > so please extend the protocol properly so you indeed do not code > > something implementation-specific (i.e. module parameters). > Ok, but in order to preserve the default behavior, e.g. > pointer and keyboard devices are always created now, I'll have > to have reverse features in the protocol: > ?- feature-no-pointer > ?- feature-no-keyboard > The above may be set as a part of frontend's configuration and > if missed are considered to be set to false. I think you can have them as "feature-pointer" and "feature-keyboard" (no negation), but assume not present considered enabled. I.e. kbd = xenbus_read_unsigned(..., XENKBD_FIELD_FEAT_KEYBOARD, 1); if (kbd) { ... } Thanks. -- Dmitry