static void kvm_apic_mem_write(void *opaque, target_phys_addr_t addr,

                               uint64_t data, unsigned size)

{

    MSIMessage msg = { .address = addr, .data = data };

    int ret;



    ret = kvm_irqchip_send_msi(kvm_state, msg);

    if (ret < 0) {

        fprintf(stderr, "KVM: injection failed, MSI lost (%s)\n",

                strerror(-ret));

    }

}

static void kvm_apic_mem_write(void *opaque, target_phys_addr_t addr,

                               uint64_t data, unsigned size)

{

    MSIMessage msg = { .address = addr, .data = data };

    int ret;



    ret = kvm_irqchip_send_msi(kvm_state, msg);

    if (ret < 0) {

        fprintf(stderr, "KVM: injection failed, MSI lost (%s)\n",

                strerror(-ret));

    }

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,

                               uint64_t VAR_2, unsigned VAR_3)

{

    MSIMessage msg = { .address = VAR_1, .VAR_2 = VAR_2 };

    int VAR_4;



    VAR_4 = kvm_irqchip_send_msi(kvm_state, msg);

    if (VAR_4 < 0) {

        fprintf(stderr, "KVM: injection failed, MSI lost (%s)\n",

                strerror(-VAR_4));

    }

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{ MSIMessage msg = { .address = VAR_1, .VAR_2 = VAR_2 }; int VAR_4; VAR_4 = kvm_irqchip_send_msi(kvm_state, msg); if (VAR_4 < 0) { fprintf(stderr, "KVM: injection failed, MSI lost (%s)\n",
strerror(-VAR_4)); } }