void kvm_s390_interrupt_internal(S390CPU *cpu, int type, uint32_t parm,

                                 uint64_t parm64, int vm)

{

    CPUState *cs = CPU(cpu);

    struct kvm_s390_interrupt kvmint;

    int r;



    if (!cs->kvm_state) {

        return;

    }



    kvmint.type = type;

    kvmint.parm = parm;

    kvmint.parm64 = parm64;



    if (vm) {

        r = kvm_vm_ioctl(cs->kvm_state, KVM_S390_INTERRUPT, &kvmint);

    } else {

        r = kvm_vcpu_ioctl(cs, KVM_S390_INTERRUPT, &kvmint);

    }



    if (r < 0) {

        fprintf(stderr, "KVM failed to inject interrupt\n");

        exit(1);

    }

}

void kvm_s390_interrupt_internal(S390CPU *cpu, int type, uint32_t parm,

                                 uint64_t parm64, int vm)

{

    CPUState *cs = CPU(cpu);

    struct kvm_s390_interrupt kvmint;

    int r;



    if (!cs->kvm_state) {

        return;

    }



    kvmint.type = type;

    kvmint.parm = parm;

    kvmint.parm64 = parm64;



    if (vm) {

        r = kvm_vm_ioctl(cs->kvm_state, KVM_S390_INTERRUPT, &kvmint);

    } else {

        r = kvm_vcpu_ioctl(cs, KVM_S390_INTERRUPT, &kvmint);

    }



    if (r < 0) {

        fprintf(stderr, "KVM failed to inject interrupt\n");

        exit(1);

    }

}

void FUNC_0(S390CPU *VAR_0, int VAR_1, uint32_t VAR_2,

                                 uint64_t VAR_3, int VAR_4)

{

    CPUState *cs = CPU(VAR_0);

    struct kvm_s390_interrupt VAR_5;

    int VAR_6;



    if (!cs->kvm_state) {

        return;

    }



    VAR_5.VAR_1 = VAR_1;

    VAR_5.VAR_2 = VAR_2;

    VAR_5.VAR_3 = VAR_3;



    if (VAR_4) {

        VAR_6 = kvm_vm_ioctl(cs->kvm_state, KVM_S390_INTERRUPT, &VAR_5);

    } else {

        VAR_6 = kvm_vcpu_ioctl(cs, KVM_S390_INTERRUPT, &VAR_5);

    }



    if (VAR_6 < 0) {

        fprintf(stderr, "KVM failed to inject interrupt\n");

        exit(1);

    }

}

void FUNC_0(S390CPU *VAR_0, int VAR_1, uint32_t VAR_2,
uint64_t VAR_3, int VAR_4)
{ CPUState *cs = CPU(VAR_0); struct kvm_s390_interrupt VAR_5; int VAR_6; if (!cs->kvm_state) { return; } VAR_5.VAR_1 = VAR_1; VAR_5.VAR_2 = VAR_2; VAR_5.VAR_3 = VAR_3; if (VAR_4) { VAR_6 = kvm_vm_ioctl(cs->kvm_state, KVM_S390_INTERRUPT, &VAR_5); } else { VAR_6 = kvm_vcpu_ioctl(cs, KVM_S390_INTERRUPT, &VAR_5); } if (VAR_6 < 0) { fprintf(stderr, "KVM failed to inject interrupt\n"); exit(1); } }