mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 07:26:46 +07:00
e08b963716
This patch introduces a new config option for user controlled kernel virtual machines. It introduces a parameter to KVM_CREATE_VM that allows to set bits that alter the capabilities of the newly created virtual machine. The parameter is passed to kvm_arch_init_vm for all architectures. The only valid modifier bit for now is KVM_VM_S390_UCONTROL. This requires CAP_SYS_ADMIN privileges and creates a user controlled virtual machine on s390 architectures. Signed-off-by: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
#
|
|
# KVM configuration
|
|
#
|
|
source "virt/kvm/Kconfig"
|
|
|
|
menuconfig VIRTUALIZATION
|
|
def_bool y
|
|
prompt "Virtualization"
|
|
---help---
|
|
Say Y here to get to see options for using your Linux host to run other
|
|
operating systems inside virtual machines (guests).
|
|
This option alone does not add any kernel code.
|
|
|
|
If you say N, all options in this submenu will be skipped and disabled.
|
|
|
|
if VIRTUALIZATION
|
|
|
|
config KVM
|
|
def_tristate y
|
|
prompt "Kernel-based Virtual Machine (KVM) support"
|
|
depends on HAVE_KVM && EXPERIMENTAL
|
|
select PREEMPT_NOTIFIERS
|
|
select ANON_INODES
|
|
---help---
|
|
Support hosting paravirtualized guest machines using the SIE
|
|
virtualization capability on the mainframe. This should work
|
|
on any 64bit machine.
|
|
|
|
This module provides access to the hardware capabilities through
|
|
a character device node named /dev/kvm.
|
|
|
|
To compile this as a module, choose M here: the module
|
|
will be called kvm.
|
|
|
|
If unsure, say N.
|
|
|
|
config KVM_S390_UCONTROL
|
|
bool "Userspace controlled virtual machines"
|
|
depends on KVM
|
|
---help---
|
|
Allow CAP_SYS_ADMIN users to create KVM virtual machines that are
|
|
controlled by userspace.
|
|
|
|
If unsure, say N.
|
|
|
|
# OK, it's a little counter-intuitive to do this, but it puts it neatly under
|
|
# the virtualization menu.
|
|
source drivers/vhost/Kconfig
|
|
|
|
endif # VIRTUALIZATION
|