Received: by 10.192.165.156 with SMTP id m28csp699631imm; Thu, 19 Apr 2018 06:12:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Z6fDmL+uCbzKpydmXyaT/eToTa8pLYgu3U99Ku+XBoVbUgyef5BlakggY+GEubnOQ0DHC X-Received: by 10.98.141.65 with SMTP id z62mr5862798pfd.144.1524143539546; Thu, 19 Apr 2018 06:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524143539; cv=none; d=google.com; s=arc-20160816; b=do/B+hij+IlYTu3/1qRkjdvGU/8inx3YbdkEU+0vqaRk0Bf8jtU9eDUepNHXio2vGG 3NrelKTYjJCV5oCKUjsGajrC+ERWXBaVS3PbBYicZBLxRBygF2pbz31Qqx5fzViGYk8s wL9Z9B6Z+69oRCO4hnla2QcWwHw+1VzWXQ/O5UO4ZjvfTBCBOdq4j0chmC6QxAWNVX9Q O86+RtErGFEvO82MpuWqO3eEjX9LhcSdpEs23cPdE/FlrBat6LD7/KNGO5KN/QzBkEj3 YjkoHvgzFlTkB41lNktDu8vQY95pirE0tdQA0Wkw2v4N4dXfdcPZlRxi9F3Aw2jbK2Pn lJlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=9LyjrvuMKl68+eZ4IGe/4Cl7ufEG2M7Bf8CCt3Utauo=; b=h2+xSRwRGyAVL0pqB0OBWe8CDFoXpq/jFGqq2Vgphb8YTZ03Fj+kaFbcf8kXNOkd/h 4Gm94AWOtYIIQszv4w5ZrsPCA10+swXYLfV2HXwIXQ+yungYRgYJaFMRIJULyawxZuC8 Dih/qL8dLiH9QJ8kwMDTELemYrwdLnrfyu4ACQ4WBdFcT7v52vLi0jWhAzSHSjmuqH1z 0W4QbEhLRi4uPIwJqqkX9mM44COOCE9AfRfo3Wcu3mwe8VKdbxRAUNR7JBf9X13Ug2dy qp0oV9+g73wYrBOK8ewtbW0QRWJAmYCtvIP0XtUXC+zy+Wb1d6NhS25Zz/5qo8K4D0Cv e3OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LccTTzVv; 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 66si3222460pfm.167.2018.04.19.06.12.05; Thu, 19 Apr 2018 06:12:19 -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=LccTTzVv; 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 S1752775AbeDSNKz (ORCPT + 99 others); Thu, 19 Apr 2018 09:10:55 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:41959 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752086AbeDSNKb (ORCPT ); Thu, 19 Apr 2018 09:10:31 -0400 Received: by mail-lf0-f68.google.com with SMTP id m202-v6so59766lfe.8; Thu, 19 Apr 2018 06:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9LyjrvuMKl68+eZ4IGe/4Cl7ufEG2M7Bf8CCt3Utauo=; b=LccTTzVvldQ7aj4PWloIIwbA3wLxLN1idY8LVmfJOoC/eHR7yVkROTwR+umCh8+0G9 fWBr54TeB//PMEHfE5MKRVvewHkbdugIjBcgGpAVm5aErFtAPoNLbMOrZKO7DiuwLiyd M0grJQYw0PfNq5KYGdc3g4QyjeLhYcDgRgBj3W79lSSvi4T6e5epvjCCYHsYns45WYWR Wy+7S5XqWU8q1kJle9s62iivunLelkNOYy8ydpRLnbTFRf6iNdbHaowAqGrVL61/wTEQ PJWq5Vj+XRxJCuNO8tv0fv9s7lk7q0kv0kNnO61aU7/pNqYB8XuFQLo+oV/wJlHxgaQW 8roA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9LyjrvuMKl68+eZ4IGe/4Cl7ufEG2M7Bf8CCt3Utauo=; b=XA75O4Qh9mbVCNA7e4e5oEyj+dJMAnYcM37fAiGALuHPyIhSjE9f22lV5tiQkMdhjk InxfR/l+eu2a30YAt5gn93Un2xj8RwXFbJZtfdhZkqFU6otT2+pJd5E5I3G9Xj+nK2gV 0hIQkxg/zWlVTBn2OGpNCqSUrhJQ5u1LefPTaGSQbMvJGs/9Af3ntphMcJDzql/sAbao MqfEEV6Zqw4v33I9ZXH6mybZx4IlbBAai/34raBhddZnvz0voQT6HzQTK7WjpN/wnvTq ZqVCk5D3fItTE/t7AfV3TdEb28XOzoB25w582wcMRyJgbqxlmVaTwl7TU6w++GTvwzzm TqbA== X-Gm-Message-State: ALQs6tC+N9r04Pf/PGQ0YiBEQOVqZ9//moJn98XFsnnLTanK04dF+3s+ 3IAMecUArvFN8g9Y0OAjEGUhyeN1NTYTtUdGgh0= X-Received: by 10.46.111.8 with SMTP id k8mr4134594ljc.112.1524143429959; Thu, 19 Apr 2018 06:10:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.80.18 with HTTP; Thu, 19 Apr 2018 06:10:29 -0700 (PDT) In-Reply-To: References: <20180418150445.9805-1-andr2000@gmail.com> <2bff035e-303e-d644-5f51-5e64150c097c@gmail.com> From: Jason Andryuk Date: Thu, 19 Apr 2018 09:10:29 -0400 Message-ID: Subject: Re: [Xen-devel] [PATCH] Input: xen-kbdfront - allow better run-time configuration To: Oleksandr Andrushchenko 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); Regards, Jason