lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOJsxLH-O8+Fx=VLsoXhVLNtXWD_1eVrUMOgbk2DODbrwPAzhQ@mail.gmail.com>
Date:	Thu, 27 Oct 2011 15:12:40 +0300
From:	Pekka Enberg <penberg@...nel.org>
To:	Sasha Levin <levinsasha928@...il.com>
Cc:	linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Michal Marek <mmarek@...e.cz>, linux-kbuild@...r.kernel.org
Subject: Re: [PATCH] config: Add 'make kvmconfig'

On Thu, Oct 27, 2011 at 3:07 PM, Sasha Levin <levinsasha928@...il.com> wrote:
> This patch adds 'make kvmconfig' which allows to add KVM guest support
> to a config file.
>
> This allows for easier testing of configurations under virtualized
> environments.
>
> Cc: Ingo Molnar <mingo@...e.hu>
> Cc: Linus Torvalds <torvalds@...ux-foundation.org>
> Cc: Michal Marek <mmarek@...e.cz>
> Cc: Pekka Enberg <penberg@...helsinki.fi>
> Cc: linux-kbuild@...r.kernel.org
> Cc: linux-kernel@...r.kernel.org
> Suggested-by: Ingo Molnar <mingo@...e.hu>
> Signed-off-by: Sasha Levin <levinsasha928@...il.com>

Acked-by: Pekka Enberg <penberg@...nel.org>

Btw, Michal, if people are OK with the patch I'd really love to take
this patch in my kvmtool git tree to have it contained in a single
pull request.

> ---
>
> Updated sym list to include everything required when starting from
> 'make allnoconfig' plus KGDB support.
>
>  arch/x86/Kconfig         |   27 +++++++++++++++++++++++++++
>  scripts/kconfig/Makefile |    6 +++++-
>  2 files changed, 32 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index 6a47bb2..0b74528 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -520,6 +520,33 @@ config SCHED_OMIT_FRAME_POINTER
>
>          If in doubt, say "Y".
>
> +config KVMTOOL_TEST_ENABLE
> +       bool "Enable options to create a bootable tools/kvm/ kernel"
> +       select NET
> +       select NETDEVICES
> +       select PCI
> +       select BLK_DEV
> +       select NETWORK_FILESYSTEMS
> +       select INET
> +       select EXPERIMENTAL
> +       select SERIAL_8250
> +       select SERIAL_8250_CONSOLE
> +       select IP_PNP
> +       select IP_PNP_DHCP
> +       select BINFMT_ELF
> +       select PCI_MSI
> +       select KGDB
> +       select KGDB_SERIAL_CONSOLE
> +       select VIRTIO
> +       select VIRTIO_RING
> +       select VIRTIO_PCI
> +       select VIRTIO_BLK
> +       select VIRTIO_CONSOLE
> +       select VIRTIO_NET
> +       select 9P_FS
> +       select NET_9P
> +       select NET_9P_VIRTIO
> +
>  menuconfig PARAVIRT_GUEST
>        bool "Paravirtualized guest support"
>        ---help---
> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
> index 82d2eb2..356e551 100644
> --- a/scripts/kconfig/Makefile
> +++ b/scripts/kconfig/Makefile
> @@ -3,7 +3,7 @@
>  # These targets are used from top-level makefile
>
>  PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \
> -       localmodconfig localyesconfig
> +       localmodconfig localyesconfig kvmconfig
>
>  ifdef KBUILD_KCONFIG
>  Kconfig := $(KBUILD_KCONFIG)
> @@ -33,6 +33,10 @@ silentoldconfig: $(obj)/conf
>        $(Q)mkdir -p include/generated
>        $< --$@ $(Kconfig)
>
> +kvmconfig:
> +       $(Q)$(CONFIG_SHELL) $(srctree)/scripts/config -e KVMTOOL_TEST_ENABLE
> +       @echo 'Kernel configuration modified to run as KVM guest.'
> +
>  # if no path is given, then use src directory to find file
>  ifdef LSMOD
>  LSMOD_F := $(LSMOD)
> --
> 1.7.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ