mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
40f1ee27aa
commit
e080f0fdff
1 changed files with 1 additions and 3 deletions
|
@ -929,12 +929,10 @@ void kvm_s390_crw_mchk(S390CPU *cpu)
|
||||||
|
|
||||||
void kvm_s390_enable_css_support(S390CPU *cpu)
|
void kvm_s390_enable_css_support(S390CPU *cpu)
|
||||||
{
|
{
|
||||||
struct kvm_enable_cap cap = {};
|
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
/* Activate host kernel channel subsystem support. */
|
/* Activate host kernel channel subsystem support. */
|
||||||
cap.cap = KVM_CAP_S390_CSS_SUPPORT;
|
r = kvm_vcpu_enable_cap(CPU(cpu), KVM_CAP_S390_CSS_SUPPORT, 0);
|
||||||
r = kvm_vcpu_ioctl(CPU(cpu), KVM_ENABLE_CAP, &cap);
|
|
||||||
assert(r == 0);
|
assert(r == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue