On 06/05/2016 22:53, Radim Krčmář wrote: > + route->kroute.type = kvm_has_msi_x2apic() ? > KVM_IRQ_ROUTING_MSI_X2APIC > + : KVM_IRQ_ROUTING_MSI; > route->kroute.flags = 0;
Perhaps using flags here instead of a new route type gives simpler code in the kernel? It's a pity that the padding field of struct kvm_irq_routing_msi was not checked against zero. :( Paolo > route->kroute.u.msi.address_lo = (uint32_t)msg.address; > route->kroute.u.msi.address_hi = msg.address >> 32;