Received: by 10.192.165.156 with SMTP id m28csp701529imm; Thu, 19 Apr 2018 06:14:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+iqV72lRu2bd7yo+ar8FZXBRAXteZwhU5GJw6k+0VlAwqVXKftjk/QntDJ5IZK+aeCp+aE X-Received: by 2002:a17:902:f83:: with SMTP id 3-v6mr6110442plz.336.1524143650703; Thu, 19 Apr 2018 06:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524143650; cv=none; d=google.com; s=arc-20160816; b=a8qa0DtORUui5omkuSZ4BOpPcyV5l34Xm+WqXKkGnDH20nPnjft06NxuMKmLDnnNo2 lMKhhoEuj5aDIxOwTRUhl4bR95wyGuTeO3/jr1YsQVnKNQghc06pMlA68U0NnhwayHP5 ZOXqmUwpTSZ+sX7UDK6byancZ5grobYkqIOBRzQvzVplDXWEEmZoQq0lxZT75RWxsBzG izSj6TBy/BnY5Zf5pH/SD6Bg6YrgWzdOf4/N1SCOfhAR/QFXFBZX3fAu8fVzhKZVfOJS 4bWGmxd2+8DCZwrYqJm19SqVWxXtIGAkAGa+gaOwc32mzLB2XQPEkD/HIbLIUKwrMcRZ wHaQ== 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=7kl0hay/vLf2ZfkL27AbcXmCE5KlOGh2ByrQear/FQw=; b=WUT7Wcy9MjWT/DuTmroJDo3na6TOZtbxHIPOascEMrqKNukvPlABj40S9BoouuawXO ZfF0uFB2k5i+E3FQzCvuxlnFBpEmjx6rBa+wKuOjPDNBdg62gEOkGDE+Wml4TvKO94KI L04PXDfBhdA9IxO1ELAgqBNygTDo0/0xpndLA5H3YC0ZYn8lO4zIXIYZtt7vBPWcwPLU STEXdf4lIMEbYwcI6WwFRMP+ZEczVJ34WEVVn+7EpoNlbTsqedtRaQYIV9mOhSvMfYDf +2lTQhfr/i1dX9H92kqe+NZR09YjLILdMQ1vdCB0ntVCGfjCXLtAfHpptmlu2Oxem1pO rg7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kQ8VGMgM; 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 f191si2945723pgc.660.2018.04.19.06.13.56; Thu, 19 Apr 2018 06:14:10 -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=kQ8VGMgM; 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 S1752332AbeDSNMq (ORCPT + 99 others); Thu, 19 Apr 2018 09:12:46 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:33463 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750858AbeDSNMp (ORCPT ); Thu, 19 Apr 2018 09:12:45 -0400 Received: by mail-lf0-f68.google.com with SMTP id d79-v6so109524lfd.0; Thu, 19 Apr 2018 06:12:44 -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=7kl0hay/vLf2ZfkL27AbcXmCE5KlOGh2ByrQear/FQw=; b=kQ8VGMgME+VNY5lb5LxBozIIu2tQQKHqu1NbfjrugZswdI52Ov/wKdwiY3ZH7hJwve Pgx13+pPbFJSW5zZZhhnxqus5462BuA984NIQLTO6tbDA/w1ULlgHd0+bu0BJugwjhEx EmnbaS0xUxlnT75+gtJFsEfZaRwIac9nn+KoIXh/IUGLhnAw8XgD3FHW1XBXjl5/6XqS tvCgLJfpMDcPiOvG9lL7p5nWgadiG8icCTVl3ucQxc8vc75Up4j+SVL2yH2F2ICbNVvc h4IOJ+Qqo+rnQS6HkuSmUZb9ucWuRFyDAi7pz1lYYkRlapw3idaNC3CeZ3GuLu53izup 2gJQ== 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=7kl0hay/vLf2ZfkL27AbcXmCE5KlOGh2ByrQear/FQw=; b=CMZEwUJoGvgjRF46QGre9nBqLAjoGINC1ldmXyod73n0tQOuTm8BR8iza7DlyhV/4S x83GriWMoxx7BUF3bZf2lpdHvxss9v0GA0mGtimgmm22IIdyT/mzaHtRYhXCEv3iqpQI Hgj/+hCFdGCwK0Q0YwzdeDql3LuGaUICwj4uH8BKEBEpelXxbtd3nSdAZux/JIx4z93z eg5dgj3jqv8qO0GKb/vLtHM79OduTBKLXxQVmOPhyKjAEcQhZ5+5uKzM6CJjjYgyz5CG eBSJZGj3zYskOp+KslJz9AqwW1P5qmrBKvNZZexfh854szaoVxaWjEKhzZpBVNQX0YLk w8sw== X-Gm-Message-State: ALQs6tAIx4hSg8x6zpkHCPtzLc/CmNkVFgd2xdfYHok5IidnDCsCZyaS IqyScOBA25tPc3FiET1rl+gQYq4r+rQ= X-Received: by 10.46.62.12 with SMTP id l12mr4164783lja.66.1524143563888; Thu, 19 Apr 2018 06:12:43 -0700 (PDT) Received: from [10.17.182.9] (ll-74.141.223.85.sovam.net.ua. [85.223.141.74]) by smtp.gmail.com with ESMTPSA id s1sm586578lji.92.2018.04.19.06.12.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 06:12:43 -0700 (PDT) Subject: Re: [Xen-devel] [PATCH] Input: xen-kbdfront - allow better run-time configuration To: Jason Andryuk Cc: Juergen Gross , xen-devel@lists.xenproject.org, linux-input@vger.kernel.org, open list , dmitry.torokhov@gmail.com, lyan@suse.com, Boris Ostrovsky , andrii_chepurnyi@epam.com, Oleksandr Andrushchenko References: <20180418150445.9805-1-andr2000@gmail.com> <2bff035e-303e-d644-5f51-5e64150c097c@gmail.com> From: Oleksandr Andrushchenko Message-ID: <5ed20b99-263d-d906-9349-d064eead36ad@gmail.com> Date: Thu, 19 Apr 2018 16:12: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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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/19/2018 04:10 PM, Jason Andryuk wrote: > On Thu, Apr 19, 2018 at 9:01 AM, Oleksandr Andrushchenko > wrote: >> Ok, so I'll send v2 with the following changes: >> >> diff --git a/drivers/input/misc/xen-kbdfront.c >> b/drivers/input/misc/xen-kbdfront.c >> index a3306aad40b0..d8cca212f737 100644 >> --- a/drivers/input/misc/xen-kbdfront.c >> +++ b/drivers/input/misc/xen-kbdfront.c >> @@ -51,13 +51,13 @@ module_param_array(ptr_size, int, NULL, 0444); >> MODULE_PARM_DESC(ptr_size, >> "Pointing device width, height in pixels (default 800,600)"); >> >> -static unsigned int no_ptr_dev; >> -module_param(no_ptr_dev, uint, 0); >> +static bool no_ptr_dev; >> +module_param(no_ptr_dev, bool, 0); >> MODULE_PARM_DESC(no_ptr_dev, >> "If set then no virtual pointing device exposed to the guest"); >> >> -static unsigned int no_kbd_dev; >> -module_param(no_kbd_dev, uint, 0); >> +static bool no_kbd_dev; >> +module_param(no_kbd_dev, bool, 0); >> MODULE_PARM_DESC(no_kbd_dev, >> "If set then no virtual keyboard device exposed to the guest"); > I prefer direct logic over inverse logic. Maybe just use kbd_dev, > default to true, but allow it to be set off? > > static bool kbd_dev = true; > module_param(kbd_dev, bool, 0); I have no preference here, either way works for me Juergen, what do you think about the above? > Regards, > Jason