KVM: s390: ucontrol: announce capability for user controlled vms
authorCarsten Otte <cotte@de.ibm.com>
Wed, 4 Jan 2012 09:25:29 +0000 (10:25 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:20 +0000 (14:52 +0200)
This patch announces a new capability KVM_CAP_S390_UCONTROL that
indicates that kvm can now support virtual machines that are
controlled by userspace.

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

index abf784d8c68058ab74d3623ccde6a46a75059860..a1061b361c435b9060450ee2a426c6406f1b87de 100644 (file)
@@ -129,6 +129,9 @@ int kvm_dev_ioctl_check_extension(long ext)
        case KVM_CAP_S390_PSW:
        case KVM_CAP_S390_GMAP:
        case KVM_CAP_SYNC_MMU:
+#ifdef CONFIG_KVM_S390_UCONTROL
+       case KVM_CAP_S390_UCONTROL:
+#endif
                r = 1;
                break;
        default:
index 778e748927b44866471392ab849bed5a71768f75..6cf048d9604bef8a03e637984b0ef25af090383c 100644 (file)
@@ -569,6 +569,7 @@ struct kvm_ppc_pvinfo {
 #define KVM_CAP_PPC_PAPR 68
 #define KVM_CAP_S390_GMAP 71
 #define KVM_CAP_TSC_DEADLINE_TIMER 72
+#define KVM_CAP_S390_UCONTROL 73
 
 #ifdef KVM_CAP_IRQ_ROUTING