From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SC2fX-00009r-Jq for qemu-devel@nongnu.org; Mon, 26 Mar 2012 01:40:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SC2fV-0001QS-MW for qemu-devel@nongnu.org; Mon, 26 Mar 2012 01:40:39 -0400 Received: from e9.ny.us.ibm.com ([32.97.182.139]:41225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SC2fV-0001Px-II for qemu-devel@nongnu.org; Mon, 26 Mar 2012 01:40:37 -0400 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 26 Mar 2012 01:40:34 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id CB4B838C803A for ; Mon, 26 Mar 2012 01:40:31 -0400 (EDT) Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q2Q5eV6L371804 for ; Mon, 26 Mar 2012 01:40:31 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q2Q5eVKZ016922 for ; Mon, 26 Mar 2012 02:40:31 -0300 From: zwu.kernel@gmail.com Date: Mon, 26 Mar 2012 13:40:12 +0800 Message-Id: <1332740423-8426-1-git-send-email-zwu.kernel@gmail.com> Subject: [Qemu-devel] [RFC 0/9] QOM: qomify -netdev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: zwu.kernel@gmail.com, pbonzini@redhat.com, Zhi Yong Wu , stefanha@linux.vnet.ibm.com From: Zhi Yong Wu 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 -- 1.7.6