Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752206AbdLUGoo (ORCPT ); Thu, 21 Dec 2017 01:44:44 -0500 Received: from mail-eopbgr20113.outbound.protection.outlook.com ([40.107.2.113]:19552 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752001AbdLUGom (ORCPT ); Thu, 21 Dec 2017 01:44:42 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=avagin@virtuozzo.com; Date: Wed, 20 Dec 2017 22:44:27 -0800 From: Andrei Vagin To: Vincent Legoll Cc: mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: virtio: make VIRTIO a menuconfig to ease disabling it all Message-ID: <20171221064426.GA24940@outlook.office365.com> References: <20171209152657.4762-1-vincent.legoll@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20171209152657.4762-1-vincent.legoll@gmail.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [73.140.212.29] X-ClientProxiedBy: BN6PR10CA0034.namprd10.prod.outlook.com (2603:10b6:404:109::20) To DB5PR08MB0744.eurprd08.prod.outlook.com (2a01:111:e400:599c::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c81851d4-8dea-4401-36b9-08d5483e4f47 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060);SRVR:DB5PR08MB0744; X-Microsoft-Exchange-Diagnostics: 1;DB5PR08MB0744;3:qxkyUa9lHtByZB4HH0MCX8BoyjmtgZ49aNgaKC2eumsEKmLAYhovcciFfSLgGQDvfZmq/AimHn0/QAVP0D4s2HEDFJOkouSuD3iXPwjTeFK1umfssvaw6JXhvsq4WMJr9JPGqW7zjkv6lTFX9y4ZFkb78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heXI60xlwBnXjhmuSJJG5X9UTiwIA1sn9XbOyyKMQo4/fkBwrq4m7dTFRs2sV5aOAwq0fyKng1dkpa9XiZDG1KkQhX1+PAhcHqpRlx+3nhzRDNEZtMM/pJhs=;4:ubQjHUXyNUagxMtxdRDMEyRej8u8Inz2t155hKb7RdSOkhJN6BckGy1cETqZ/6I0Gtyjg1/aAG1CjPCqpjt++yXapVIpW2JCO2oMz1brogskxe6+ltovX3WMu4K+SgLyntm8ONWzHSjiMTHy8zY18tzLgqiFdqdzoGH1s0RGw1zte8+lVbpROeN6xqGIECdiV2X7xiO/cOx7sY2NlgcPRjx1pdeCZKl6ZiPQiw92jd9OF+vRBpcCgbBRpPQSqFxjzAj6dLb6r1tPQ44lo16FTEI3czl7VGRJrLl/MERNSZXXdd6KV4tGVrc+U7s9ckBq91WosRyQu9Dk1WZPWTWey7gX4pBHkfHrckOgDHAjaTI3wEHdtC/Bs9Mp11AWg7+K X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(251416522907027)(275740015457677)(84791874153150); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231023)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(6072148)(201708071742011);SRVR:DB5PR08MB0744;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DB5PR08MB0744; X-Forefront-PRVS: 0528942FD8 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(376002)(396003)(346002)(366004)(39380400002)(39850400004)(24454002)(189003)(199004)(52116002)(7696005)(6306002)(3846002)(55016002)(6116002)(9686003)(76176011)(33656002)(4326008)(8936002)(6246003)(69596002)(68736007)(81166006)(1076002)(25786009)(53936002)(105586002)(5660300001)(50466002)(305945005)(86362001)(2906002)(81156014)(966005)(8676002)(16526018)(316002)(229853002)(2950100002)(6916009)(6666003)(39060400002)(58126008)(47776003)(386003)(6506007)(66066001)(106356001)(16586007)(23686003)(83506002)(478600001)(7736002)(53416004)(97736004)(18370500001);DIR:OUT;SFP:1102;SCL:1;SRVR:DB5PR08MB0744;H:outlook.office365.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?koi8-r?Q?1;DB5PR08MB0744;23:x6Dw6cxTWGOM6nKAinJfQRin5M7V0yH5yO3YmG6SUF4?= =?koi8-r?Q?Y8T3tITm1fpCTKFhFZxIYNQ4M61mkp3o8aT9B291wHN59Sljr35UjCmHmQ+lpO?= =?koi8-r?Q?OdsuoqN51V7KjCuUwV4qT4OK1Un31UZ/gMLsBXrQxOyiUiRJKJ7t9bdVIjVKTw?= =?koi8-r?Q?6nli5zfi+EYDtffRGpnf+4ECSsaprNm0g4AvEPCJjhVNKz3YHlbRllBzTfKDh4?= =?koi8-r?Q?4uCRDr7W71g9Q37Rnxiz1N8s7NQRxiPU96bytnTjB8dHWmHGLZyvbB4+2K7Ccq?= =?koi8-r?Q?sVnAxKRSOIWJwB12zKs8gArd55x73wiGxgXeI4otKvlQCFSGrj3ZtiaLu2TtF3?= =?koi8-r?Q?TShp+CGxNd+XMwPHFGQP3wVgYsBupeDOljYf5Utrx+m52iDJtn/Rsla2xDYYVe?= =?koi8-r?Q?YwWwkmWsOH0T+d+CXGEoKImDDq5hq5YYobTL6z/czO1Xvk9dONoUvq8npB9seZ?= =?koi8-r?Q?rBYNpo4QB1M8Dc0iyccRdZA5tnp0cRjJKlbkw7yNFyshPtcoQbIQZpvB3bmdVg?= =?koi8-r?Q?4gFVOV7HupmsIMb3rn7QNC6vbFx3zbfLqSXrrrf7X6gEvUppjf7sivyvhy3r9Z?= =?koi8-r?Q?JIsyK7VZMNLV0jD2grPV1ezGwv/7D8G0mmU8f7Kbdb0nWmROnozmkHy2wWw3bb?= =?koi8-r?Q?IqHWFqj+qoF2v35eiRoWmsfeO4H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0KnafrUXpB9hUFtYe67hN6YnvsbkcENF799ztkO3HQE98ZzpcOCTrVa3wxOrIzjbtN1uKLEHjdw7jrffiF0M/WmqLAaro=;5:NMq5dwVLvheKs922XhtUzqv4bfIRGJCEP43c1Nz3nzSvT+MkV6FbsvP/0mm9Bw9M4Wrsh/FL1yIOIXeWV17TckkJli6Eni5xVrk9AkrLxGkNCE6qVo54Eeyd9eVZcXCCw72862xRDJBjMVbI0wQjDAzx2cefVVNom1apa5eRvK8=;24:GpKt8ms9nG5ziKw8tbNS0qkgPBYpKNgNoxBea/0vgs0aHESMkKM0UwMGmc8NJI0/SaZCas0e0obAIB1bC/8CZOi6nv3J0yoEbFB0fCBGCuc=;7:nOGL3YOoGm2PjwvepPdgmwLQHrOFu7vJP5Vf5uj4Sqs979kYJcMpCSgRSZXGYre1A+korXzybU8oLdgWVa8dPKOiN76vdqhqg9lC1goS+jGDjkT0ekdZkpU1Y82loRSqWh0PqEhyiM6lb0vzl+pHh5+2P1EPfKz/LZ4DjZ0knEPgMtgdWyERtSn0nOL8yMRaUJIC6ISQH2UmI/iFZDjhekUxhfwL0PMhsLRiiIkvL/bquNRZUlpTo9iJAUm+KJ20 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB5PR08MB0744;20:4MlrG4v64l5JeOHhan4D6H506ShLbJUSwFj55JNlKtc2Z5GmiBV4/+joyI6/tTPuUfojkQckUYpWuJBOrsAfaBo7TbVa03l6IffTrue/+hEoXbn07Q7EgMRbva6cHf4bYR2mKUHbHMKegw/57nOIHM630qfBA4BL2JFUaKU1n3k= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2017 06:44:38.1781 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c81851d4-8dea-4401-36b9-08d5483e4f47 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB0744 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2697 Lines: 99 On Sat, Dec 09, 2017 at 04:26:57PM +0100, Vincent Legoll wrote: > No need to get into the submenu to disable all VIRTIO-related > config entries. > > This makes it easier to disable all VIRTIO config options > without entering the submenu. It will also enable one > to see that en/dis-abled state from the outside menu. > > This is only intended to change menuconfig UI, not change > the config dependencies. > > Signed-off-by: Vincent Legoll > --- > drivers/virtio/Kconfig | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig > index cff773f15b7e..d485a63a8233 100644 > --- a/drivers/virtio/Kconfig > +++ b/drivers/virtio/Kconfig > @@ -5,7 +5,10 @@ config VIRTIO > bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG > or CONFIG_S390_GUEST. > > -menu "Virtio drivers" > +menuconfig VIRTIO_MENU > + bool "Virtio drivers" Hi Vincent, make localyesconfig and make localmodconfig doesn't work with this patch. My scenario looks like this: * Create a virtual machine with Ubuntu 14.04 in GCE * git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git * cd linux-next * curl -o .config https://raw.githubusercontent.com/avagin/criu/linux-next/scripts/linux-next-config * make localyesconfig Without this patch: $ cat .config | grep VIRTIO CONFIG_BLK_MQ_VIRTIO=y CONFIG_VIRTIO_BLK=y # CONFIG_VIRTIO_BLK_SCSI is not set CONFIG_SCSI_VIRTIO=y CONFIG_VIRTIO_NET=y CONFIG_VIRTIO_CONSOLE=y # CONFIG_HW_RANDOM_VIRTIO is not set CONFIG_VIRTIO=y CONFIG_VIRTIO_PCI=y CONFIG_VIRTIO_PCI_LEGACY=y CONFIG_VIRTIO_BALLOON=y # CONFIG_VIRTIO_INPUT is not set CONFIG_VIRTIO_MMIO=y CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y # CONFIG_RPMSG_VIRTIO is not set # CONFIG_CRYPTO_DEV_VIRTIO is not set With this patch: $ cat .config | grep VIRTIO CONFIG_BLK_MQ_VIRTIO=y # CONFIG_VIRTIO_BLK is not set CONFIG_SCSI_VIRTIO=y # CONFIG_VIRTIO_NET is not set CONFIG_CAIF_VIRTIO=y # CONFIG_VIRTIO_CONSOLE is not set # CONFIG_HW_RANDOM_VIRTIO is not set CONFIG_VIRTIO=y # CONFIG_VIRTIO_MENU is not set # CONFIG_RPMSG_VIRTIO is not set # CONFIG_CRYPTO_DEV_VIRTIO is not set You can see that with this patch CONFIG_VIRTIO_BLK is not set. It is wrong, and the kernel with this config will not be able to boot. We can add "default y" to fix this problem. https://travis-ci.org/avagin/linux/jobs/313348334 https://travis-ci.org/avagin/linux/jobs/318491188 Thanks, Andrei > + > +if VIRTIO_MENU > > config VIRTIO_PCI > tristate "PCI driver for virtio devices" > @@ -79,4 +82,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES > > If unsure, say 'N'. > > -endmenu > +endif # VIRTIO_MENU