]> Pileus Git - ~andy/linux/commit
KVM: s390: ucontrol: per vcpu address spaces
authorCarsten Otte <cotte@de.ibm.com>
Wed, 4 Jan 2012 09:25:21 +0000 (10:25 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:18 +0000 (14:52 +0200)
commit27e0393f15fc8bc855c6a888387ff5ffd2181089
tree7dd5f6f49f6e11ee5cfbbc4d00fb39f649caa61b
parente08b96371625aaa84cb03f51acc4c8e0be27403a
KVM: s390: ucontrol: per vcpu address spaces

This patch introduces two ioctls for virtual cpus, that are only
valid for kernel virtual machines that are controlled by userspace.
Each virtual cpu has its individual address space in this mode of
operation, and each address space is backed by the gmap
implementation just like the address space for regular KVM guests.
KVM_S390_UCAS_MAP allows to map a part of the user's virtual address
space to the vcpu. Starting offset and length in both the user and
the vcpu address space need to be aligned to 1M.
KVM_S390_UCAS_UNMAP can be used to unmap a range of memory from a
virtual cpu in a similar way.

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>
Documentation/virtual/kvm/api.txt
arch/s390/kvm/kvm-s390.c
include/linux/kvm.h