blob: a3dbd459cce91bf2941222477bec5a085eff10af [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
Paolo Bonzini5cb09442017-12-12 17:41:34 +010026 select HAVE_KVM_VCPU_ASYNC_IOCTL
Cornelia Huck10ccaa12013-02-28 12:33:21 +010027 select HAVE_KVM_EVENTFD
Dominik Dingel3c038e62013-10-07 17:11:48 +020028 select KVM_ASYNC_PF
29 select KVM_ASYNC_PF_SYNC
Cornelia Huck84223592013-07-15 13:36:01 +020030 select HAVE_KVM_IRQCHIP
Paul Mackerras297e2102014-06-30 20:51:13 +100031 select HAVE_KVM_IRQFD
Cornelia Huck84223592013-07-15 13:36:01 +020032 select HAVE_KVM_IRQ_ROUTING
Christian Borntraeger3491caf2016-05-13 12:16:35 +020033 select HAVE_KVM_INVALID_WAKEUPS
Pranith Kumar83fe27e2014-12-05 11:24:45 -050034 select SRCU
Dong Jia Shi14b0b4a2016-01-20 06:33:42 +010035 select KVM_VFIO
Christian Borntraeger77b455f2008-03-25 18:47:36 +010036 ---help---
37 Support hosting paravirtualized guest machines using the SIE
38 virtualization capability on the mainframe. This should work
39 on any 64bit machine.
40
41 This module provides access to the hardware capabilities through
42 a character device node named /dev/kvm.
43
44 To compile this as a module, choose M here: the module
45 will be called kvm.
46
47 If unsure, say N.
48
Carsten Ottee08b9632012-01-04 10:25:20 +010049config KVM_S390_UCONTROL
50 bool "Userspace controlled virtual machines"
51 depends on KVM
52 ---help---
53 Allow CAP_SYS_ADMIN users to create KVM virtual machines that are
54 controlled by userspace.
55
56 If unsure, say N.
57
Christian Borntraeger77b455f2008-03-25 18:47:36 +010058# OK, it's a little counter-intuitive to do this, but it puts it neatly under
59# the virtualization menu.
Michael S. Tsirkin3a4d5c92010-01-14 06:17:27 +000060source drivers/vhost/Kconfig
Christian Borntraeger77b455f2008-03-25 18:47:36 +010061
62endif # VIRTUALIZATION