|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH RFC 1/1] virtio: migrate config_vector |
Date: | Thu, 14 May 2015 10:22:59 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 13/05/2015 16:42, Cornelia Huck wrote: > +static bool virtio_device_confvec_needed(void *opaque) > +{ > + VirtIODevice *vdev = opaque; > + BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); > + VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); > + > + return k->needs_confvec ? > + k->needs_confvec(qbus->parent) : > + (vdev->config_vector != VIRTIO_NO_VECTOR); > +} This can call k->needs_confvec unconditionally, if the default implementation is moved to a separate function. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |