Received: by 10.192.165.148 with SMTP id m20csp2524932imm; Thu, 26 Apr 2018 12:29:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/SNSLpHpS699/Be0qrJvHeEXdZofvFsM/CMH/LTYpyZx2ue67HYWgfwUh+kYA5mP/eR2w3 X-Received: by 2002:a17:902:9006:: with SMTP id a6-v6mr34383477plp.375.1524770986037; Thu, 26 Apr 2018 12:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524770985; cv=none; d=google.com; s=arc-20160816; b=OyXeYP/VL2yRJk1TtvExswV9F8zcfKbLSVVYTQJn5SALM4zMt02mgixUdp9CAhbRWR 4IITA1eMjgziUJj7L1Kp8wIlWpwr4Wejn0UIt1vAvh38O0AqrjvmNj6BDvpzsLAAEnuU coOvTrqsx7tos1kFD2Wo2h+zgePIW3q7k5Qk758jMqNxLodQ2XWuMmCVx/3ElPtHHHMo UuLOUM6Agw6jDtzSCKqsdDKGGstUx9YBUMdzsM94+N97WHx/Edm+JWCfxq5kAFZeuraG rQ35yYIQaPU399d6oqrustr3k8S7ixe9y2LLngCs5XaevLfefuU4gtNShWHjtn22f0y0 hZ5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=UKYEjhHjpjeObPOkgD76proJvJf0A2+nfVfGzhyLnLk=; b=vc1ZDyGYPl/N+keljiya/rG10ewUbZ92endduM38zlIK2r+x3HYQ2QtTCJfnMOea8q Enkd856S4Gcf935ao763WZNEgFnyxEco7fMBBIWBPt6k4CkRN/UZsNW/Qv4kaJ9uNhF0 0bJtVZK/LLgFK1czN0ahIYCAWRRChVdLGYc/xsu69CIEeY0lxw7IhNila0cDmiZCdUgt U3RJNWlEOAffyaeHtkG7otSULD60Gl/BPF7J8pbgFj4sYJa6/WVR4EMN7L4MEq7PZ2R7 HHcg0Eyh/lel3CzYlJ7U8Dd/4FxrluiFYpxKVnCBuJ2zb7FroVChumtWOKhDwwIlCkLN eu2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j73kVsLa; 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 b123si16264946pgc.14.2018.04.26.12.29.30; Thu, 26 Apr 2018 12:29:45 -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=j73kVsLa; 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 S1753953AbeDZT1s (ORCPT + 99 others); Thu, 26 Apr 2018 15:27:48 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:34928 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbeDZT1r (ORCPT ); Thu, 26 Apr 2018 15:27:47 -0400 Received: by mail-lf0-f46.google.com with SMTP id r125-v6so32400869lfe.2; Thu, 26 Apr 2018 12:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=UKYEjhHjpjeObPOkgD76proJvJf0A2+nfVfGzhyLnLk=; b=j73kVsLaNmy/FKRJvZpEuc0cqbfZ/Bji8x7B49QTtv/h5IE3kClJz15eY4+RU7L/ZT 0ZT6ztuH+amlhziTlAbH013n3UIG7mUyGcGAS3RNXLSj5EtdRjhoNcS9daYYbU5Vqe23 WiOWMrP6r0iEBizTkHAfu2WvH0P82GTKOzHa0FRwCg2eucICNUpr2Uyt9cFiMtqfiuDT wuCb7xG7o23rU1AYoNRsxQzPazzfaCaEljLP3qeTzWwkuI5bis+SblpPV/8+UqQ3A6Lf ahvShEbmDUPIZsoMSErRA7r/vFQUuDdEgPL/gHf24O0MD+x6A+7OSUEwkAEoBpsihkVo 00fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=UKYEjhHjpjeObPOkgD76proJvJf0A2+nfVfGzhyLnLk=; b=cHuLbUVK4iNnFQM6YBtfbG2PWROa83Ec6qgvdMdfVk8j39Hpzv4U0lp5P23hsD7O13 vBJ05oeMxe2knF9UdfJ1fBDWn1Y6DIuvz1BeoEQ/1ugP9eV5MJaj8Nfa38spj+tWS//S nl00PJyRZQ8k1Jf7IjkUE0JtX5UDxSE2z7lXKxTCAFP7z/862tLivO2RS55d7wKfcCO2 p/FSJ3jEUWT4DtgAoATOc/7c5e68PLYeUlGLlHteTfXFbP924TRsnvMtdH00JtYLDNQG +jqyfodXS3MyM6vm1pu7SpjrVYdlN4ea45p/9VARwgS6KziO9AIfjwJvpiLLVTFrIy1v bzDQ== X-Gm-Message-State: ALQs6tApV7+ockUwRKRvGoaLWmtargbbnDbjtowOVvBo8KcYJDeZuLoZ Cn5LW+NWShFOdKZv8qX1qR9ylQ== X-Received: by 2002:a19:4b41:: with SMTP id y62-v6mr18399032lfa.11.1524770865227; Thu, 26 Apr 2018 12:27:45 -0700 (PDT) Received: from [192.168.0.20] (144-62-94-178.pool.ukrtel.net. [178.94.62.144]) by smtp.googlemail.com with ESMTPSA id d25-v6sm3094930lfa.46.2018.04.26.12.27.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 12:27:44 -0700 (PDT) Subject: Re: [PATCH] Input: xen-kbdfront - allow better run-time configuration To: Dmitry Torokhov 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 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> <20180426191624.GB162443@dtor-ws> From: Oleksandr Andrushchenko Message-ID: Date: Thu, 26 Apr 2018 22:27:42 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180426191624.GB162443@dtor-ws> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/26/2018 10:16 PM, Dmitry Torokhov wrote: > 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) { > ... Thank you for your comments, could you please take a look at the patch [1] where I am trying to change the corresponding Xen protocol to fit the requirements? As we agreed I have to change the protocol first, so this patch is no longer valid > } > > Thanks. Thank you, Oleksandr [1] https://www.spinics.net/lists/linux-input/msg56094.html