blob: 9a4594e0a1ffe2a79b8f8233351f2c2b96b1b438 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Christian Borntraeger77b455f2008-03-25 18:47:36 +01002#
3# KVM configuration
4#
Avi Kivity0ba12d12009-05-21 16:45:19 +03005source "virt/kvm/Kconfig"
Avi Kivity5d9b8e32009-01-04 18:04:18 +02006
Christian Borntraeger77b455f2008-03-25 18:47:36 +01007menuconfig VIRTUALIZATION
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +01008 def_bool y
Jan Glauber843c48f2012-08-27 10:55:18 +02009 prompt "KVM"
Christian Borntraeger77b455f2008-03-25 18:47:36 +010010 ---help---
11 Say Y here to get to see options for using your Linux host to run other
12 operating systems inside virtual machines (guests).
13 This option alone does not add any kernel code.
14
15 If you say N, all options in this submenu will be skipped and disabled.
16
17if VIRTUALIZATION
18
19config KVM
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +010020 def_tristate y
21 prompt "Kernel-based Virtual Machine (KVM) support"
Kees Cookb186ba62012-10-02 11:16:43 -070022 depends on HAVE_KVM
Christian Borntraeger77b455f2008-03-25 18:47:36 +010023 select PREEMPT_NOTIFIERS
24 select ANON_INODES
Raghavendra K Tf2a74342012-07-18 19:07:32 +053025 select HAVE_KVM_CPU_RELAX_INTERCEPT
Cornelia Huck10ccaa12013-02-28 12:33:21 +010026 select HAVE_KVM_EVENTFD
Dominik Dingel3c038e62013-10-07 17:11:48 +020027 select KVM_ASYNC_PF
28 select KVM_ASYNC_PF_SYNC
Cornelia Huck84223592013-07-15 13:36:01 +020029 select HAVE_KVM_IRQCHIP
Paul Mackerras297e2102014-06-30 20:51:13 +100030 select HAVE_KVM_IRQFD
Cornelia Huck84223592013-07-15 13:36:01 +020031 select HAVE_KVM_IRQ_ROUTING
Christian Borntraeger3491caf2016-05-13 12:16:35 +020032 select HAVE_KVM_INVALID_WAKEUPS
Pranith Kumar83fe27e2014-12-05 11:24:45 -050033 select SRCU
Dong Jia Shi14b0b4a2016-01-20 06:33:42 +010034 select KVM_VFIO
Christian Borntraeger77b455f2008-03-25 18:47:36 +010035 ---help---
36 Support hosting paravirtualized guest machines using the SIE
37 virtualization capability on the mainframe. This should work
38 on any 64bit machine.
39
40 This module provides access to the hardware capabilities through
41 a character device node named /dev/kvm.
42
43 To compile this as a module, choose M here: the module
44 will be called kvm.
45
46 If unsure, say N.
47
Carsten Ottee08b9632012-01-04 10:25:20 +010048config KVM_S390_UCONTROL
49 bool "Userspace controlled virtual machines"
50 depends on KVM
51 ---help---
52 Allow CAP_SYS_ADMIN users to create KVM virtual machines that are
53 controlled by userspace.
54
55 If unsure, say N.
56
Christian Borntraeger77b455f2008-03-25 18:47:36 +010057# OK, it's a little counter-intuitive to do this, but it puts it neatly under
58# the virtualization menu.
Michael S. Tsirkin3a4d5c92010-01-14 06:17:27 +000059source drivers/vhost/Kconfig
Christian Borntraeger77b455f2008-03-25 18:47:36 +010060
61endif # VIRTUALIZATION