[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 00/61] Virtio refactoring.
From: |
Anthony Liguori |
Subject: |
Re: [Qemu-devel] [PATCH 00/61] Virtio refactoring. |
Date: |
Tue, 08 Jan 2013 10:22:50 -0600 |
User-agent: |
Notmuch/0.13.2+93~ged93d79 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) |
Peter Maydell <address@hidden> writes:
> On 7 January 2013 19:11, Anthony Liguori <address@hidden> wrote:
>> I appreciate the thoroughness here but 66 patches is too much all at
>> once. Can this be done in chunks or more reasonable patch sizes? It
>> would make review and committing a lot easier.
>
> So do you have any suggestions? The patchset is long but it
> is actually in a fairly easily separable set of sections:
>
Sounds like you have already identified how to break things up...
> I: Initial class definitions and transport level refactoring:
>
>>> qdev : add a maximum device allowed field for the bus.
>>> virtio-bus : introduce virtio-bus
>>> virtio-pci-bus : introduce virtio-pci-bus.
>>> virtio-pci : refactor virtio-pci device.
>>> virtio-device : refactor virtio-device.
>>> virtio-s390-bus : add virtio-s390-bus.
>>> virtio-s390-device : create a virtio-s390-bus during init.
I would start with the above.
>
> II: Update virtio-blk:
>
>>> virtio-blk : show VirtIOBlock structure.
>>> virtio-blk : don't use pointer for configuration.
>>> virtio-blk : add the virtio-blk device.
>>> virtio-blk-pci : switch to new API.
>>> virtio-blk-s390 : switch to the new API.
>>> virtio-blk : cleanup : use QOM cast.
>>> virtio-blk : cleanup : remove qdev field.
>
> III: Update virtio-net:
>
>>> virtio-net : show the VirtIONet structure.
>>> virtio-net : add the virtio-net device.
>>> virtio-net-pci : switch to the new API.
>>> virtio-net-s390 : switch to the new API.
>>> virtio-net : cleanup : use QOM cast.
>>> virtio-net : cleanup : init and exit function.
>>> virtio-net : cleanup : remove qdev field.
>
> [etc; all the backends are handled in basically the same way]
I would do all of the devices at once.
>
> N: Final cleanup now all backends are converted:
>
>>> virtio : remove the function pointer.
>>> virtio-pci : cleanup : init, exit and reset functions.
>>> s390-virtio-bus : cleanup
>>> virtio : remove virtiobindings.
>>> virtio : cleanup : init and exit function.
I would do this independently.
Regards,
Anthony Liguori
>
> where I guess the interesting bits to review in particular
> would be phases I and N and a randomly selected backend.
>
> Perhaps you could squash some of the patches together,
> for instance the "virtio-foo: show the VirtIOFoo structure"
> (which is just moving a struct from a private .c file to the .h)
> could go in with the following "virtio-net : add the virtio-foo
> device." patch, which would reduce the patch count by
> seven or so -- is that worth doing? (obviously it's the same
> amount of actual code just in fewer patches...)
>
> thanks
> -- PMM
- [Qemu-devel] [PATCH 22/61] virtio-scsi : show the VirtIOSCSI structure., (continued)
- [Qemu-devel] [PATCH 22/61] virtio-scsi : show the VirtIOSCSI structure., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 58/61] virtio-pci : cleanup : init, exit and reset functions., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 53/61] virtio-9p : add the virtio-9p device., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 25/61] virtio-scsi : moving host_features from properties to transport properties., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 55/61] virtio-9p : cleanup : init function., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 54/61] virtio-9p-pci : switch to the new API., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 60/61] virtio : remove virtiobindings., fred . konrad, 2013/01/07
- Re: [Qemu-devel] [PATCH 00/61] Virtio refactoring., Anthony Liguori, 2013/01/07
- [Qemu-devel] [PATCH 44/61] virtio-rng.c : cleanup : remove qdev field., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 26/61] virtio-scsi : add the virtio-scsi device., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 24/61] virtio-scsi : allocate cmd_vqs array separately., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 45/61] virtio-rng.c : cleanup : use QOM casts., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 39/61] virtio-rng : don't use pointer for configuration., fred . konrad, 2013/01/07
- Re: [Qemu-devel] [PATCH 00/61] Virtio refactoring., Michael S. Tsirkin, 2013/01/07
- [Qemu-devel] [PATCH 52/61] virtio-serial : cleanup : remove qdev field., fred . konrad, 2013/01/07
- [Qemu-devel] [PATCH 28/61] virtio-scsi-s390 : switch to the new API., fred . konrad, 2013/01/07