On 25/01/2018 22:33, Pavel Pisa wrote: > Hello Paolo, > > thanks for suggestions. I understand and fully agree with your > request to switch to QOM. I have succeed with that for CAN devices > some time ago. It worth to be done for the rest of the objects > but I fear that I do not find time to complete QOMification > in reasonable future. Contributions/suggestions from other > are welcomed. I can look for students for GSoC at our university > or under other funding.
Please take a look at branch can-pci-qom of github.com/bonzini/qemu.git. Apart from QOMification of the backend include, I simplified the IRQ handling in can_kvaser_pci (fixing bugs too I think), and removed an unnecessary mutex. I also moved the files to net/can and hw/net/can so that in the future Jason (networking maintainer) can take care of pull requests. I might have broken something, and the top commit in particular is completely untested. Paolo