On Fri, Jun 27, 2014 at 03:17:57PM +0100, Paolo Bonzini wrote: > Il 26/06/2014 19:30, Will Deacon ha scritto: > > kvm_ioctl_create_device currently has knowledge of all the device types > > and their associated ops. This is fairly inflexible when adding support > > for new in-kernel device emulations, so move what we currently have out > > into a table, which can support dynamic registration of ops by new > > drivers for virtual hardware. > > > > I didn't try to port all current drivers over, as it's not always clear > > which initialisation hook the ops should be registered from. > > Conny, Alex (Graf & Williamson), > > can you help Will here? The idea looks sane, but I'd rather merge it > with all devices converted. Also, if we want to use an IDR instead of an array then dynamic registration will be required, since I can't initialise the former statically. I can convert kvm_vfio_ops with an initcall, but the others (mpic, xics and flic) should probably hang off the host irqchip initialisation, no? All help appreciated! I'm happy to collate diffs :) Failing that, I'll have a crack at it myself, but I've got no way of testing the result. Will -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html