Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2111407pxb; Fri, 25 Mar 2022 11:16:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK+Zs8mt321hPwLpZgpi2JZKxTkmaQkvUdngUZo3mLEBBTurbY/soSwXmAtRsBdN1ysvcM X-Received: by 2002:a63:e244:0:b0:37f:ed43:4fc6 with SMTP id y4-20020a63e244000000b0037fed434fc6mr672815pgj.604.1648232216844; Fri, 25 Mar 2022 11:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648232216; cv=none; d=google.com; s=arc-20160816; b=ylVZjRpwW4aRALGUwhRb+mYDwuUogb1Z4HERLoUs0Nj0fTgZcZbQT/yque9xoSyWQC 6a3jZ937sa1O6I2ITQeVlnQjOVUSLNaPCXH8hNGqGy8sHCD3fCn5MHpsoOYyS5oXR3Sh P8+fGA2MAExfWCoMnbl2pwz6AWV1GNDFnR/b49N5zk9z4ETT3FclO3InJ4Me7IWMa8h6 UQVnLdNFezCL4WT+k2GmQNqinnOBCpIZzWlMpajfSwVn5L81xtXXBNNL7YWbla9YXfu+ ShRTsHqTUrEHnX5wx6+eZzyssyqNMB7iRoIUeehpdNUceYAs3cnJMR55IpZMDoQZV7GM FA2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=N8F68pMXaFYAKhvnCekIzwR5HXBdBXqL4rzdUKfQ1jI=; b=wORR8AKH0UxOpUsVVLWEjsnxTu/mzAEif1SnQ+iKbD4pRd2z3lopO07fRDf8mt7Vq2 KcFVuTHTn0fKDHWoXC6JlNoFEmpfcI98Ae/4PtEOQ2Beyuhus2sx5+lu3g9wBCk/GMsh 2o5Vzq4NyDdVPY6so6Nsg26jJaKjnZVHP9BEz1EQJ+elhdapnH7NvofarsKls6hjUkiZ i5BCkiNwF6XN4ygdRbdJNlzG2x7DPReBH20gZMhuXdcKGSNdrzXnA5M6xxt2FN9EQKFK GFu+ZGyWMeOSu1JgXCle+6JjiXkqBP14XcPan/mJSKp/pAM0ksj+6qfXVoLpe0YYLukO lW2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XCqaBnhY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 199-20020a6302d0000000b003817d61f02csi2913759pgc.624.2022.03.25.11.16.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:16:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XCqaBnhY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E1B2F1557CE; Fri, 25 Mar 2022 10:45:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351388AbiCXPtJ (ORCPT + 99 others); Thu, 24 Mar 2022 11:49:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbiCXPtI (ORCPT ); Thu, 24 Mar 2022 11:49:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29B4BA0BDF for ; Thu, 24 Mar 2022 08:47:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A980D6177A for ; Thu, 24 Mar 2022 15:47:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B5ADC340EC; Thu, 24 Mar 2022 15:47:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648136855; bh=xqFka1zYU1aqYMYh38mnO0xnB43RjZqGDA9tyHHRcHM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XCqaBnhYd15KNVmvL0O2tI0eiMIgMFaZt8d/Tnhyjc2puX81NlkgwrDP3yZquIfuk M06ZitYtr55nP34ihg+Dp8p8o4P+ZRwYNy+YS9gc3VLrzJjumUKKy2zBenGJQaNxF4 OxsdyEqhiK2ns88wqUa44legF4ohnoS82PiuUinOHpI/IVWSMIo7lnHtKMTs3S6qPc 0dWddN/easWJHu32IFGJg0BcKPLFjLnWQJRw91YnOG6m6y3hJlfH7FRiRKT7Xs5RO4 tfz61+Kz9bPJrBO/k9u/JCVjshLZxakjWlXsaeJkZiwd94MoWmhf6qGRDwQUr7DaWp QaMpLWoNdV1MQ== Date: Thu, 24 Mar 2022 08:47:27 -0700 From: Nathan Chancellor To: Ingo Molnar Cc: Linus Torvalds , Borislav Petkov , Linux Kernel Mailing List , Peter Zijlstra , Will Deacon , Waiman Long , Boqun Feng , Thomas Gleixner , Andrew Morton , Sebastian Andrzej Siewior Subject: Re: [PATCH] x86/config: Make the x86 defconfigs a bit more usable Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UPPERCASE_50_75 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ingo, On Thu, Mar 24, 2022 at 09:31:13AM +0100, Ingo Molnar wrote: > ================> > > From: Ingo Molnar > Date: Thu, 24 Mar 2022 09:18:36 +0100 > Subject: [PATCH] x86/config: Make the x86 defconfigs a bit more usable > > - Use 'make savedefconfig' to refresh & regenerate the files > - Add in KVM boot enablers > - Enable the cgroup features most distros rely on > > Signed-off-by: Ingo Molnar This should be super helpful, especially for the "reference point and minimal test requirements" that you mentioned above, along with being able to boot more distributions in QEMU without fiddling with kvm_guest.config and menuconfig. > --- > arch/x86/configs/i386_defconfig | 50 ++++++++++++++++++++++++++------------- > arch/x86/configs/x86_64_defconfig | 38 +++++++++++++++++++++-------- > 2 files changed, 62 insertions(+), 26 deletions(-) > > diff --git a/arch/x86/configs/i386_defconfig b/arch/x86/configs/i386_defconfig > index 4b2085243aa3..fde771df72cc 100644 > --- a/arch/x86/configs/i386_defconfig > +++ b/arch/x86/configs/i386_defconfig > @@ -1,5 +1,7 @@ > +CONFIG_WERROR=y > CONFIG_SYSVIPC=y > CONFIG_POSIX_MQUEUE=y > +CONFIG_USELIB=y > CONFIG_AUDIT=y > CONFIG_NO_HZ=y > CONFIG_HIGH_RES_TIMERS=y > @@ -11,23 +13,30 @@ CONFIG_TASK_XACCT=y > CONFIG_TASK_IO_ACCOUNTING=y > CONFIG_LOG_BUF_SHIFT=18 > CONFIG_CGROUPS=y > +CONFIG_BLK_CGROUP=y > CONFIG_CGROUP_SCHED=y > +CONFIG_CGROUP_PIDS=y > +CONFIG_CGROUP_RDMA=y > CONFIG_CGROUP_FREEZER=y > +CONFIG_CGROUP_HUGETLB=y > CONFIG_CPUSETS=y > +CONFIG_CGROUP_DEVICE=y > CONFIG_CGROUP_CPUACCT=y > +CONFIG_CGROUP_PERF=y > +CONFIG_CGROUP_MISC=y > +CONFIG_CGROUP_DEBUG=y > CONFIG_BLK_DEV_INITRD=y > +CONFIG_KALLSYMS_ALL=y > # CONFIG_COMPAT_BRK is not set > CONFIG_PROFILING=y > -# CONFIG_64BIT is not set I don't think this is right, this is repeating the problem that was fixed by commit 76366050eb1b ("x86/defconfigs: Explicitly unset CONFIG_64BIT in i386_defconfig"). $ make ARCH=i386 savedefconfig ? > CONFIG_SMP=y > -CONFIG_X86_GENERIC=y > -CONFIG_HPET_TIMER=y > +CONFIG_HYPERVISOR_GUEST=y > +CONFIG_PARAVIRT=y > +CONFIG_NR_CPUS=8 > CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y > -CONFIG_X86_REBOOTFIXUPS=y > CONFIG_MICROCODE_AMD=y > CONFIG_X86_MSR=y > CONFIG_X86_CPUID=y > -CONFIG_HIGHPTE=y > CONFIG_X86_CHECK_BIOS_CORRUPTION=y > # CONFIG_MTRR_SANITIZER is not set > CONFIG_EFI=y > @@ -43,12 +52,15 @@ CONFIG_ACPI_BGRT=y > CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y > CONFIG_CPU_FREQ_GOV_ONDEMAND=y > CONFIG_X86_ACPI_CPUFREQ=y > -CONFIG_EFI_VARS=y > CONFIG_KPROBES=y > CONFIG_JUMP_LABEL=y > +CONFIG_COMPAT_32BIT_TIME=y > CONFIG_MODULES=y > CONFIG_MODULE_UNLOAD=y > CONFIG_MODULE_FORCE_UNLOAD=y > +CONFIG_BLK_CGROUP_IOLATENCY=y > +CONFIG_BLK_CGROUP_IOCOST=y > +CONFIG_BLK_CGROUP_IOPRIO=y > CONFIG_BINFMT_MISC=y > CONFIG_NET=y > CONFIG_PACKET=y > @@ -103,12 +115,16 @@ CONFIG_IP6_NF_FILTER=y > CONFIG_IP6_NF_TARGET_REJECT=y > CONFIG_IP6_NF_MANGLE=y > CONFIG_NET_SCHED=y > +CONFIG_NET_CLS_CGROUP=y > CONFIG_NET_EMATCH=y > CONFIG_NET_CLS_ACT=y > +CONFIG_CGROUP_NET_PRIO=y > CONFIG_CFG80211=y > CONFIG_MAC80211=y > CONFIG_MAC80211_LEDS=y > CONFIG_RFKILL=y > +CONFIG_NET_9P=y > +CONFIG_NET_9P_VIRTIO=y > CONFIG_PCI=y > CONFIG_PCIEPORTBUS=y > CONFIG_PCI_MSI=y > @@ -119,13 +135,16 @@ CONFIG_DEVTMPFS=y > CONFIG_DEVTMPFS_MOUNT=y > CONFIG_DEBUG_DEVRES=y > CONFIG_CONNECTOR=y > +CONFIG_EFI_VARS=y > +CONFIG_EFI_CAPSULE_LOADER=y > CONFIG_BLK_DEV_LOOP=y > +CONFIG_VIRTIO_BLK=y > CONFIG_BLK_DEV_SD=y > CONFIG_BLK_DEV_SR=y > CONFIG_CHR_DEV_SG=y > CONFIG_SCSI_CONSTANTS=y > CONFIG_SCSI_SPI_ATTRS=y > -# CONFIG_SCSI_LOWLEVEL is not set > +CONFIG_SCSI_VIRTIO=y > CONFIG_ATA=y > CONFIG_SATA_AHCI=y > CONFIG_ATA_PIIX=y > @@ -143,6 +162,7 @@ CONFIG_MACINTOSH_DRIVERS=y > CONFIG_MAC_EMUMOUSEBTN=y > CONFIG_NETDEVICES=y > CONFIG_NETCONSOLE=y > +CONFIG_VIRTIO_NET=y > CONFIG_BNX2=y > CONFIG_TIGON3=y > CONFIG_NET_TULIP=y > @@ -170,6 +190,7 @@ CONFIG_SERIAL_8250_SHARE_IRQ=y > CONFIG_SERIAL_8250_DETECT_IRQ=y > CONFIG_SERIAL_8250_RSA=y > CONFIG_SERIAL_NONSTANDARD=y > +CONFIG_VIRTIO_CONSOLE=y > CONFIG_HW_RANDOM=y > CONFIG_NVRAM=y > CONFIG_HPET=y > @@ -181,12 +202,7 @@ CONFIG_AGP_AMD64=y > CONFIG_AGP_INTEL=y > CONFIG_DRM=y > CONFIG_DRM_I915=y > -CONFIG_FB_MODE_HELPERS=y > -CONFIG_FB_TILEBLITTING=y > -CONFIG_FB_EFI=y > -CONFIG_LOGO=y > -# CONFIG_LOGO_LINUX_MONO is not set > -# CONFIG_LOGO_LINUX_VGA16 is not set > +CONFIG_DRM_VIRTIO_GPU=y > CONFIG_SOUND=y > CONFIG_SND=y > CONFIG_SND_HRTIMER=y > @@ -219,6 +235,8 @@ CONFIG_USB_STORAGE=y > CONFIG_RTC_CLASS=y > # CONFIG_RTC_HCTOSYS is not set > CONFIG_DMADEVICES=y > +CONFIG_VIRTIO_PCI=y > +CONFIG_VIRTIO_INPUT=y > CONFIG_EEEPC_LAPTOP=y > CONFIG_EXT4_FS=y > CONFIG_EXT4_FS_POSIX_ACL=y > @@ -240,6 +258,7 @@ CONFIG_NFS_FS=y > CONFIG_NFS_V3_ACL=y > CONFIG_NFS_V4=y > CONFIG_ROOT_NFS=y > +CONFIG_9P_FS=y > CONFIG_NLS_DEFAULT="utf8" > CONFIG_NLS_CODEPAGE_437=y > CONFIG_NLS_ASCII=y > @@ -251,15 +270,14 @@ CONFIG_SECURITY_SELINUX=y > CONFIG_SECURITY_SELINUX_BOOTPARAM=y > CONFIG_SECURITY_SELINUX_DISABLE=y > CONFIG_PRINTK_TIME=y > +CONFIG_FRAME_WARN=1024 > CONFIG_MAGIC_SYSRQ=y > CONFIG_DEBUG_KERNEL=y > CONFIG_DEBUG_STACK_USAGE=y > -CONFIG_DEBUG_STACKOVERFLOW=y > # CONFIG_SCHED_DEBUG is not set > CONFIG_SCHEDSTATS=y > CONFIG_BLK_DEV_IO_TRACE=y > CONFIG_PROVIDE_OHCI1394_DMA_INIT=y > CONFIG_EARLY_PRINTK_DBGP=y > CONFIG_DEBUG_BOOT_PARAMS=y > -CONFIG_KALLSYMS_ALL=y > -CONFIG_WERROR=y > +CONFIG_UNWINDER_FRAME_POINTER=y > diff --git a/arch/x86/configs/x86_64_defconfig b/arch/x86/configs/x86_64_defconfig > index 38c52e4eb30b..69784505a7a8 100644 > --- a/arch/x86/configs/x86_64_defconfig > +++ b/arch/x86/configs/x86_64_defconfig > @@ -1,3 +1,4 @@ > +CONFIG_WERROR=y > CONFIG_SYSVIPC=y > CONFIG_POSIX_MQUEUE=y > CONFIG_AUDIT=y > @@ -11,14 +12,25 @@ CONFIG_TASK_XACCT=y > CONFIG_TASK_IO_ACCOUNTING=y > CONFIG_LOG_BUF_SHIFT=18 > CONFIG_CGROUPS=y > +CONFIG_BLK_CGROUP=y > CONFIG_CGROUP_SCHED=y > +CONFIG_CGROUP_PIDS=y > +CONFIG_CGROUP_RDMA=y > CONFIG_CGROUP_FREEZER=y > +CONFIG_CGROUP_HUGETLB=y > CONFIG_CPUSETS=y > +CONFIG_CGROUP_DEVICE=y > CONFIG_CGROUP_CPUACCT=y > +CONFIG_CGROUP_PERF=y > +CONFIG_CGROUP_MISC=y > +CONFIG_CGROUP_DEBUG=y > CONFIG_BLK_DEV_INITRD=y > +CONFIG_KALLSYMS_ALL=y > # CONFIG_COMPAT_BRK is not set > CONFIG_PROFILING=y > CONFIG_SMP=y > +CONFIG_HYPERVISOR_GUEST=y > +CONFIG_PARAVIRT=y > CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y > CONFIG_MICROCODE_AMD=y > CONFIG_X86_MSR=y > @@ -41,12 +53,14 @@ CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y > CONFIG_CPU_FREQ_GOV_ONDEMAND=y > CONFIG_X86_ACPI_CPUFREQ=y > CONFIG_IA32_EMULATION=y > -CONFIG_EFI_VARS=y > CONFIG_KPROBES=y > CONFIG_JUMP_LABEL=y > CONFIG_MODULES=y > CONFIG_MODULE_UNLOAD=y > CONFIG_MODULE_FORCE_UNLOAD=y > +CONFIG_BLK_CGROUP_IOLATENCY=y > +CONFIG_BLK_CGROUP_IOCOST=y > +CONFIG_BLK_CGROUP_IOPRIO=y > CONFIG_BINFMT_MISC=y > CONFIG_NET=y > CONFIG_PACKET=y > @@ -101,12 +115,16 @@ CONFIG_IP6_NF_FILTER=y > CONFIG_IP6_NF_TARGET_REJECT=y > CONFIG_IP6_NF_MANGLE=y > CONFIG_NET_SCHED=y > +CONFIG_NET_CLS_CGROUP=y > CONFIG_NET_EMATCH=y > CONFIG_NET_CLS_ACT=y > +CONFIG_CGROUP_NET_PRIO=y > CONFIG_CFG80211=y > CONFIG_MAC80211=y > CONFIG_MAC80211_LEDS=y > CONFIG_RFKILL=y > +CONFIG_NET_9P=y > +CONFIG_NET_9P_VIRTIO=y > CONFIG_PCI=y > CONFIG_PCIEPORTBUS=y > CONFIG_HOTPLUG_PCI=y > @@ -116,13 +134,15 @@ CONFIG_DEVTMPFS=y > CONFIG_DEVTMPFS_MOUNT=y > CONFIG_DEBUG_DEVRES=y > CONFIG_CONNECTOR=y > +CONFIG_EFI_VARS=y > CONFIG_BLK_DEV_LOOP=y > +CONFIG_VIRTIO_BLK=y > CONFIG_BLK_DEV_SD=y > CONFIG_BLK_DEV_SR=y > CONFIG_CHR_DEV_SG=y > CONFIG_SCSI_CONSTANTS=y > CONFIG_SCSI_SPI_ATTRS=y > -# CONFIG_SCSI_LOWLEVEL is not set > +CONFIG_SCSI_VIRTIO=y > CONFIG_ATA=y > CONFIG_SATA_AHCI=y > CONFIG_ATA_PIIX=y > @@ -138,6 +158,7 @@ CONFIG_MACINTOSH_DRIVERS=y > CONFIG_MAC_EMUMOUSEBTN=y > CONFIG_NETDEVICES=y > CONFIG_NETCONSOLE=y > +CONFIG_VIRTIO_NET=y > CONFIG_TIGON3=y > CONFIG_NET_TULIP=y > CONFIG_E100=y > @@ -162,6 +183,7 @@ CONFIG_SERIAL_8250_SHARE_IRQ=y > CONFIG_SERIAL_8250_DETECT_IRQ=y > CONFIG_SERIAL_8250_RSA=y > CONFIG_SERIAL_NONSTANDARD=y > +CONFIG_VIRTIO_CONSOLE=y > CONFIG_HW_RANDOM=y > # CONFIG_HW_RANDOM_INTEL is not set > # CONFIG_HW_RANDOM_AMD is not set > @@ -175,12 +197,7 @@ CONFIG_AGP_AMD64=y > CONFIG_AGP_INTEL=y > CONFIG_DRM=y > CONFIG_DRM_I915=y > -CONFIG_FB_MODE_HELPERS=y > -CONFIG_FB_TILEBLITTING=y > -CONFIG_FB_EFI=y > -CONFIG_LOGO=y > -# CONFIG_LOGO_LINUX_MONO is not set > -# CONFIG_LOGO_LINUX_VGA16 is not set > +CONFIG_DRM_VIRTIO_GPU=y > CONFIG_SOUND=y > CONFIG_SND=y > CONFIG_SND_HRTIMER=y > @@ -213,6 +230,8 @@ CONFIG_USB_STORAGE=y > CONFIG_RTC_CLASS=y > # CONFIG_RTC_HCTOSYS is not set > CONFIG_DMADEVICES=y > +CONFIG_VIRTIO_PCI=y > +CONFIG_VIRTIO_INPUT=y > CONFIG_EEEPC_LAPTOP=y > CONFIG_AMD_IOMMU=y > CONFIG_INTEL_IOMMU=y > @@ -237,6 +256,7 @@ CONFIG_NFS_FS=y > CONFIG_NFS_V3_ACL=y > CONFIG_NFS_V4=y > CONFIG_ROOT_NFS=y > +CONFIG_9P_FS=y > CONFIG_NLS_DEFAULT="utf8" > CONFIG_NLS_CODEPAGE_437=y > CONFIG_NLS_ASCII=y > @@ -257,5 +277,3 @@ CONFIG_BLK_DEV_IO_TRACE=y > CONFIG_PROVIDE_OHCI1394_DMA_INIT=y > CONFIG_EARLY_PRINTK_DBGP=y > CONFIG_DEBUG_BOOT_PARAMS=y > -CONFIG_KALLSYMS_ALL=y > -CONFIG_WERROR=y >