aboutsummaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2014-04-09 17:23:34 +0200
committerCornelia Huck <cornelia.huck@de.ibm.com>2014-04-30 14:39:49 +0200
commite080f0fdff4a321a461638963b619b77b4307fdd (patch)
tree8b1e92cace509b471880b88b543a4d9ac0adde05 /target-s390x
parent40f1ee27aa14494c155e4062afa83523e7817f40 (diff)
s390x: use kvm_vcpu_enable_cap()
Make kvm_s390_enable_css_support() use new interface. Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com> Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/kvm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index a30d1bc060..b7b0edc4f1 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -929,12 +929,10 @@ void kvm_s390_crw_mchk(S390CPU *cpu)
void kvm_s390_enable_css_support(S390CPU *cpu)
{
- struct kvm_enable_cap cap = {};
int r;
/* Activate host kernel channel subsystem support. */
- cap.cap = KVM_CAP_S390_CSS_SUPPORT;
- r = kvm_vcpu_ioctl(CPU(cpu), KVM_ENABLE_CAP, &cap);
+ r = kvm_vcpu_enable_cap(CPU(cpu), KVM_CAP_S390_CSS_SUPPORT, 0);
assert(r == 0);
}