diff options
author | Carsten Otte <cotte@de.ibm.com> | 2012-01-04 04:25:20 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-05 07:52:18 -0500 |
commit | e08b96371625aaa84cb03f51acc4c8e0be27403a (patch) | |
tree | d0b140e8558c6145e1a3183809c7797be443bd68 /arch/powerpc | |
parent | a138fe7535c0ec778465c7b54b1aaaf4cfd885b7 (diff) |
KVM: s390: add parameter for KVM_CREATE_VM
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 607fbdf24b8..83f24456987 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -171,8 +171,11 @@ void kvm_arch_check_processor_compat(void *rtn) | |||
171 | *(int *)rtn = kvmppc_core_check_processor_compat(); | 171 | *(int *)rtn = kvmppc_core_check_processor_compat(); |
172 | } | 172 | } |
173 | 173 | ||
174 | int kvm_arch_init_vm(struct kvm *kvm) | 174 | int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) |
175 | { | 175 | { |
176 | if (type) | ||
177 | return -EINVAL; | ||
178 | |||
176 | return kvmppc_core_init_vm(kvm); | 179 | return kvmppc_core_init_vm(kvm); |
177 | } | 180 | } |
178 | 181 | ||