]> git.proxmox.com Git - qemu.git/commit
hw/virtio-net.c: set config size using host features
authorJesse Larrew <jlarrew@linux.vnet.ibm.com>
Tue, 5 Feb 2013 23:47:16 +0000 (17:47 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 8 Feb 2013 17:13:44 +0000 (11:13 -0600)
commit14f9b664b34bbd37a488cb5c762aa278c60e1fb6
treec17995392380558b698c0669818fa552a81a4b2b
parent1e89ad5b00ba0426d4e949c9e6ce2926c15b81b7
hw/virtio-net.c: set config size using host features

Currently, the config size for virtio devices is hard coded. When a new
feature is added that changes the config size, drivers that assume a static
config size will break. For purposes of backward compatibility, there needs
to be a way to inform drivers of the config size needed to accommodate the
set of features enabled.

aliguori: merged in
 - hw/virtio-net: use existing macros to implement endof
 - hw/virtio-net: fix config_size data type

Signed-off-by: Jesse Larrew <jlarrew@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-net.c