The private qdev properties of virtio devices are only used by themselves. As Peter suggested and like what virtio-blk has done, we should move the private qdev properties into devices and don't expose them to avoid wrongly use.
changes since v1: * address Cornelia's comments, fix the indentation of [PATCH 1/7] * rebased on Gerd's virtio-1 patchset Shannon Zhao (7): virtio-net: move qdev properties into virtio-net.c virtio-net.h: Remove unsed DEFINE_VIRTIO_NET_PROPERTIES virtio-scsi: move qdev properties into virtio-scsi.c virtio-rng: move qdev properties into virtio-rng.c virtio-serial-bus: move qdev properties into virtio-serial-bus.c virtio-9p-device: move qdev properties into virtio-9p-device.c vhost-scsi: move qdev properties into vhost-scsi.c hw/9pfs/virtio-9p-device.c | 3 ++- hw/9pfs/virtio-9p.h | 4 ---- hw/char/virtio-serial-bus.c | 3 ++- hw/net/virtio-net.c | 44 +++++++++++++++++++++++++++++++++++++-- hw/scsi/vhost-scsi.c | 9 +++++++- hw/scsi/virtio-scsi.c | 13 ++++++++++-- hw/virtio/virtio-rng.c | 8 ++++++- include/hw/virtio/vhost-scsi.h | 9 -------- include/hw/virtio/virtio-net.h | 31 +-------------------------- include/hw/virtio/virtio-rng.h | 10 --------- include/hw/virtio/virtio-scsi.h | 13 ------------ include/hw/virtio/virtio-serial.h | 3 --- 12 files changed, 73 insertions(+), 77 deletions(-) -- 2.1.0