On Mon, Feb 18, 2019 at 03:02:55PM +0100, Stefano Garzarella wrote: > In order to use VirtIOFeature also in other virtio devices, we move > its declaration and the endof() macro (renamed in virtio_endof()) > in virtio.h. > We add virtio_feature_get_config_size() function to iterate the array > of VirtIOFeature and to return the config size depending on the > features enabled. (as virtio_net_set_config_size() did) > > Suggested-by: Michael S. Tsirkin <[email protected]> > Signed-off-by: Stefano Garzarella <[email protected]> > --- > hw/net/virtio-net.c | 31 +++++++------------------------ > hw/virtio/virtio.c | 15 +++++++++++++++ > include/hw/virtio/virtio.h | 15 +++++++++++++++ > 3 files changed, 37 insertions(+), 24 deletions(-)
Reviewed-by: Stefan Hajnoczi <[email protected]>
signature.asc
Description: PGP signature
