Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5644035ybp; Tue, 8 Oct 2019 06:16:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWh1espeLP0rNFkyuZ5AGWUcwtYdLRZc+2cOhPqEn0929vhk8DKagcohhv2/3Z52Y+kYmf X-Received: by 2002:a17:907:2118:: with SMTP id qn24mr28013593ejb.81.1570540602636; Tue, 08 Oct 2019 06:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570540602; cv=none; d=google.com; s=arc-20160816; b=ZdsLqWTyzv9WXFJp2VpEOUta+M9ZRC54/PzQ1LZCzGDT+BOAM4brSrAKAftml+HiUA 8f34dKHNBlJlNfpMeVGbP9f+1afzFpcuUq/+Pvn53GQHNRacwrS0Gv3eIC825dnkBdBX FImhHfW4C3WeE2nr4DCwqKePVpr/eUwAccWuQUoHVUyPutPMKX14Om5Lk/hRmF9peDWp gJcJwOnHkX9XzDXV1eRBjTeucwLZ1FWHz1LkY+qVZd1xFctvmPQc4V657Osuph46q4d7 vtAHegh5oVz9jPy/KzREK31aNtPEuLGTKKROH25Fa5ZFWHAK8QZaRviLRTmzvYg+sYYC BAzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PkpF12I5oQshYFWC4o9XSkqiU1qpyK9lT1SgMd5gkK4=; b=hDxNTQDeGTKXr+UaJEFsI2G342KVDVu5b36xRPYAMPa5REruRtaWptt+t9f8e/qpof 5efOXsdknPLZOAn10rachvzT3khVW3WlHrIOOKGt3aLXCAi0KRoWY4TuaTII6hS5JTHD gCdZL6oHttzrJd6TEJoc1P5ltYCIrx9xMSwSGPU0ci9E0mQqJ7B/wEzRUDRtPrFp72gz s81z0cuNRV37h+Z2c8b8URs6b9NLSZbA1qpw4RY5S6ytq5wS9Dxez1CkylOZdQkbmoT2 suEniDd7mpdXbJjKuqtn55iSxWi7lTq9NaZ5uGuPzdBNtG3eTJHhyUKblgFcGM95Mkra YMuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Y1k4Wk9U; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo22si8661455ejb.369.2019.10.08.06.16.17; Tue, 08 Oct 2019 06:16:42 -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=fail header.i=@gmail.com header.s=20161025 header.b=Y1k4Wk9U; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730927AbfJHNP0 (ORCPT + 99 others); Tue, 8 Oct 2019 09:15:26 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37211 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730371AbfJHNPZ (ORCPT ); Tue, 8 Oct 2019 09:15:25 -0400 Received: by mail-wm1-f67.google.com with SMTP id f22so3097952wmc.2; Tue, 08 Oct 2019 06:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PkpF12I5oQshYFWC4o9XSkqiU1qpyK9lT1SgMd5gkK4=; b=Y1k4Wk9UX+Y9FRbroM6LtBWf93FOcq6kDKkBB2zP1Ah52Lg0AHcaF4VIzXzWoYT7IC +P30xMZV7MRbPmGKDLslptAl/YYVdrEXIIwiabicfU6Dq/MnLygAfMF48ESEZe/Ztroq bjzhD+XQWcWcGRoQlhFsN66f2DQ02LLmGTH2AAE03JY1yx37ncmZNo7l2agzMoZLr5Ia deKG5kKYS0LjvEqfK1E1ArC5is/MR6M/j3DDhA0HcZknap4HfREj72uHvE4CR2oWW6py DVBNk6GZkwM8t4oJ4KbsGPjeF1Dd34gcpuUxR6WBd5MVY7klDfN9Fk5jfnDBK3JwJvmy AUQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=PkpF12I5oQshYFWC4o9XSkqiU1qpyK9lT1SgMd5gkK4=; b=DL845Di1RHEnn0pUwZFMRVSP6HejnEECmwb5rAZeNDByaKF/qI4byHOi4DNOplgqpw 125dKA+tvNCQgHdzhZTk0zsgMJ32n1uDA0QVtGFyzfB8Z2IpOIeItagZbg/6anbfDwZv zyYFtPzK+CT7Feff1ugGXs7/R0Dhwf7jkhaTQiREzqs5ECxVOXXi+ydX4Pph9MqFzPQp TQWC9r9G7wbsex0vyLWD9JwUA1jK3UajV3mQgGlHXh3SEoEt7iaJZRaJx+Ilrc/OiaZv poSwUM7keKqADhvpHEDejesQ0tv7Z2nkLE7hFmjATHz893sDvbzvN9CuhNS3TEIAYtzr SgrQ== X-Gm-Message-State: APjAAAVu0XPKl2wV51xycHfeBukNRfljANMrpuqqjZ2JpGehyOjObpls jKBdG8QX7nc0ruXQ+sTOVwCTeWIR X-Received: by 2002:a1c:ed0d:: with SMTP id l13mr3709880wmh.54.1570540523490; Tue, 08 Oct 2019 06:15:23 -0700 (PDT) Received: from debian.mshome.net (207.148.159.143.dyn.plus.net. [143.159.148.207]) by smtp.gmail.com with ESMTPSA id 79sm5485377wmb.7.2019.10.08.06.15.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2019 06:15:22 -0700 (PDT) From: Wei Liu X-Google-Original-From: Wei Liu To: Linux on Hyper-V List Cc: Linux Kernel List , Linux Kconfig List , Wei Liu Subject: [PATCH RFC] kconfig: add hvconfig for Linux on Hyper-V Date: Tue, 8 Oct 2019 14:15:08 +0100 Message-Id: <20191008131508.21189-1-liuw@liuw.name> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wei Liu Add an config file snippet which enalbes additional options useful for running the kernel in a Hyper-V guest. The expected use case is a user provides an existing config file then executes `make hvconfig`. It will merge those options with the provided config file. Based on similar concept for Xen and KVM. Signed-off-by: Wei Liu --- RFC: I only tested this on x86. Although the config options included in hv_guest.config don't seem to be arch-specific, we should probably move the ones not yet implemented on Arm to an x86 specific config file. --- Documentation/admin-guide/README.rst | 3 +++ kernel/configs/hv_guest.config | 33 ++++++++++++++++++++++++++++ scripts/kconfig/Makefile | 5 +++++ 3 files changed, 41 insertions(+) create mode 100644 kernel/configs/hv_guest.config diff --git a/Documentation/admin-guide/README.rst b/Documentation/admin-guide/README.rst index cc6151fc0845..d5f4389a7a2f 100644 --- a/Documentation/admin-guide/README.rst +++ b/Documentation/admin-guide/README.rst @@ -224,6 +224,9 @@ Configuring the kernel "make xenconfig" Enable additional options for xen dom0 guest kernel support. + "make hvconfig" Enable additional options for Hyper-V guest kernel + support. + "make tinyconfig" Configure the tiniest possible kernel. You can find more information on using the Linux kernel config tools diff --git a/kernel/configs/hv_guest.config b/kernel/configs/hv_guest.config new file mode 100644 index 000000000000..0e71e34a2d4d --- /dev/null +++ b/kernel/configs/hv_guest.config @@ -0,0 +1,33 @@ +CONFIG_NET=y +CONFIG_NET_CORE=y +CONFIG_NETDEVICES=y +CONFIG_BLOCK=y +CONFIG_BLK_DEV=y +CONFIG_NETWORK_FILESYSTEMS=y +CONFIG_INET=y +CONFIG_TTY=y +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_BINFMT_ELF=y +CONFIG_PCI=y +CONFIG_PCI_MSI=y +CONFIG_DEBUG_KERNEL=y +CONFIG_VIRTUALIZATION=y +CONFIG_HYPERVISOR_GUEST=y +CONFIG_PARAVIRT=y +CONFIG_HYPERV=y +CONFIG_HYPERV_VSOCKETS=y +CONFIG_PCI_HYPERV=y +CONFIG_PCI_HYPERV_INTERFACE=y +CONFIG_HYPERV_STORAGE=y +CONFIG_HYPERV_NET=y +CONFIG_HYPERV_KEYBOARD=y +CONFIG_FB_HYPERV=y +CONFIG_HID_HYPERV_MOUSE=y +CONFIG_HYPERV=y +CONFIG_HYPERV_TIMER=y +CONFIG_HYPERV_UTILS=y +CONFIG_HYPERV_BALLOON=y +CONFIG_HYPERV_IOMMU=y diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index ef2f2336c469..2ee46301b22e 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -104,6 +104,10 @@ PHONY += xenconfig xenconfig: xen.config @: +PHONY += hvconfig +hvconfig: hv_guest.config + @: + PHONY += tinyconfig tinyconfig: $(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config @@ -138,6 +142,7 @@ help: @echo ' default value without prompting' @echo ' kvmconfig - Enable additional options for kvm guest kernel support' @echo ' xenconfig - Enable additional options for xen dom0 and guest kernel support' + @echo ' hvconfig - Enable additional options for Hyper-V guest kernel support' @echo ' tinyconfig - Configure the tiniest possible kernel' @echo ' testconfig - Run Kconfig unit tests (requires python3 and pytest)' -- 2.20.1