Re: [PATCH] virtio: unify config_changed handling

2014-09-22 Thread Christian Borntraeger
On 09/22/2014 09:20 AM, Michael S. Tsirkin wrote: > Replace duplicated code in all transports with a single wrapper in > virtio.c. > > The only functional change is in virtio_mmio.c: if a buggy device sends > us an interrupt before driver is set, we previously returned IRQ_NONE, > now we return IR

[PATCH] virtio: unify config_changed handling

2014-09-22 Thread Michael S. Tsirkin
Replace duplicated code in all transports with a single wrapper in virtio.c. The only functional change is in virtio_mmio.c: if a buggy device sends us an interrupt before driver is set, we previously returned IRQ_NONE, now we return IRQ_HANDLED. As this must not happen in practice, this does not