[Qemu-devel] [PATCH 4/8] virtio: set config size using host features

2013-02-19 Thread Jesse Larrew
Move the config size calculation from virtio_net_init() to virtio_common_init() so that all virtio devices can benefit. This requires that the host_features be passed to virtio_common_init(), and the size of the config struct will be calculated based on which feature bits are enabled. This calculat

[Qemu-devel] [PATCH 4/8] virtio: set config size using host features

2013-02-18 Thread Jesse Larrew
Move the config size calculation from virtio_net_init() to virtio_common_init() so that all virtio devices can benefit. This requires that the host_features be passed to virtio_common_init(), and the size of the config struct will be calculated based on which feature bits are enabled. This calculat