Skip to content

RFC QOM: qomify -netdev

[email protected] qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9hostdev: introduce the infrastructure for host device modelinclude/qemu/hostdev.h qom/Makefile qom/hostdev.c+462 -116 replies
2/9net: introduce one net host device classnet.c net.h+62 -02 replies
3/9net: adjust net common part for qomify -netdevnet.c net.h vl.c+109 -120 replies
4/9net: adjust nic init APInet.c+6 -40 replies
5/9net: adjust dump init APInet/dump.c net/dump.h+7 -40 replies
6/9net: qomify -netdev usernet/slirp.c net/slirp.h+41 -80 replies
7/9net: qomify -netdev socketnet/socket.c net/socket.h+36 -60 replies
8/9net: qomify -netdev vdenet/vde.c net/vde.h+34 -40 replies
9/9net: qomify -netdev tap & -netdev bridgenet/tap.c net/tap.h+64 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RFC 0/9] QOM: qomify -netdev

From: Zhi Yong Wu <[email protected]>

Sending the patchset is mainly intended to get some comments and void the wrong development direction.

The patchset is used to qomify -netdev, but it introduce one infrastructure for host devices based on raw Class and Object, not qdev. So they are not related with DeviceClass and DeviceState.

patch #1 introduce one new class and object for host devices.

patch #2 introduce one net host device class and object.

Note: the code changes still have some issues, but it doesn't affect that we talk with its infrastructure.

Zhi Yong Wu (9):
hostdev: introduce the infrastructure for host device model
net: introduce one net host device class
net: adjust net common part for qomify -netdev
net: adjust nic init API
net: adjust dump init API
net: qomify -netdev user
net: qomify -netdev socket
net: qomify -netdev vde
net: qomify -netdev tap & -netdev bridge

 include/qemu/hostdev.h |  128 ++++++++++++++++++
 net.c                  |  153 +++++++++++++++++++++--
 net.h                  |   28 ++++
 net/dump.c             |    8 +-
 net/dump.h             |    3 +-
 net/slirp.c            |   42 ++++++-
 net/slirp.h            |    7 +-
 net/socket.c           |   38 +++++-
 net/socket.h           |    4 +-
 net/tap.c              |   64 +++++++++-
 net/tap.h              |    8 +-
 net/vde.c              |   34 +++++-
 net/vde.h              |    4 +-
 qom/Makefile           |    2 +-
 qom/hostdev.c          |  333 ++++++++++++++++++++++++++++++++++++++++++++++++
 vl.c                   |   12 +-
 16 files changed, 821 insertions(+), 47 deletions(-)
 create mode 100644 include/qemu/hostdev.h
 create mode 100644 qom/hostdev.c
Signature · 1 line
1.7.6