From patchwork Mon Jul 23 11:50:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 172640 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3DEB32C032D for ; Mon, 23 Jul 2012 21:53:10 +1000 (EST) Received: from localhost ([::1]:34091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StHCG-0001QU-CX for incoming@patchwork.ozlabs.org; Mon, 23 Jul 2012 07:53:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StHAO-0005bY-5l for qemu-devel@nongnu.org; Mon, 23 Jul 2012 07:51:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StHAC-0000US-AI for qemu-devel@nongnu.org; Mon, 23 Jul 2012 07:51:12 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:38514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StHAC-0000Su-1k for qemu-devel@nongnu.org; Mon, 23 Jul 2012 07:51:00 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Jul 2012 12:50:54 +0100 Received: from d06nrmr1507.portsmouth.uk.ibm.com (9.149.38.233) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Jul 2012 12:50:52 +0100 Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q6NBoq9g1560622 for ; Mon, 23 Jul 2012 12:50:52 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q6NBopWV023336 for ; Mon, 23 Jul 2012 05:50:52 -0600 Received: from localhost (stefanha-thinkpad.manchester-maybrook.uk.ibm.com [9.174.219.145]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q6NBopSu023329; Mon, 23 Jul 2012 05:50:51 -0600 From: Stefan Hajnoczi To: Anthony Liguori Date: Mon, 23 Jul 2012 12:50:25 +0100 Message-Id: <1343044244-28728-1-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.10.4 x-cbid: 12072311-8372-0000-0000-00000343D0D4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.75.94.108 Cc: qemu-devel@nongnu.org, Stefan Hajnoczi Subject: [Qemu-devel] [PULL 00/19] Net patches X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The main piece is Laszlo's OptsVisitor and -net/-netdev parsing conversion. The following changes since commit 61dc008f3529fa74a63aad1907438dad857e255a: Revert "audio: Make PC speaker audio card available by default" (2012-07-19 18:25:52 -0500) are available in the git repository at: git://github.com/stefanha/qemu.git net for you to fetch changes up to 1a0c09583df097d62b0580f9073ba45c9d18351a: remove unused QemuOpts parameter from net init functions (2012-07-23 11:55:18 +0100) ---------------------------------------------------------------- Laszlo Ersek (17): qapi: add test case for deallocating traversal of incomplete structure qapi: generate C types for fixed-width integers qapi: introduce "size" type expose QemuOpt and QemuOpts struct definitions to interested parties qapi: introduce OptsVisitor qapi schema: remove trailing whitespace qapi schema: add Netdev types hw, net: "net_client_type" -> "NetClientOptionsKind" (qapi-generated) convert net_client_init() to OptsVisitor convert net_init_nic() to NetClientOptions convert net_init_dump() to NetClientOptions convert net_init_slirp() to NetClientOptions convert net_init_socket() to NetClientOptions convert net_init_vde() to NetClientOptions convert net_init_tap() to NetClientOptions convert net_init_bridge() to NetClientOptions remove unused QemuOpts parameter from net init functions Paolo Bonzini (1): qapi: fix error propagation Stefan Hajnoczi (1): MAINTAINERS: Replace net maintainer Mark McLoughlin with Stefan Hajnoczi MAINTAINERS | 3 +- docs/qapi-code-gen.txt | 2 + error.c | 3 +- error.h | 2 +- hw/cadence_gem.c | 2 +- hw/dp8393x.c | 2 +- hw/e1000.c | 2 +- hw/eepro100.c | 2 +- hw/etraxfs_eth.c | 2 +- hw/lan9118.c | 2 +- hw/lance.c | 2 +- hw/mcf_fec.c | 2 +- hw/milkymist-minimac2.c | 2 +- hw/mipsnet.c | 2 +- hw/musicpal.c | 2 +- hw/ne2000-isa.c | 2 +- hw/ne2000.c | 2 +- hw/opencores_eth.c | 2 +- hw/pcnet-pci.c | 2 +- hw/rtl8139.c | 2 +- hw/smc91c111.c | 2 +- hw/spapr_llan.c | 2 +- hw/stellaris_enet.c | 2 +- hw/usb/dev-network.c | 2 +- hw/vhost_net.c | 2 +- hw/virtio-net.c | 10 +- hw/xen_nic.c | 2 +- hw/xgmac.c | 2 +- hw/xilinx_axienet.c | 2 +- hw/xilinx_ethlite.c | 2 +- net.c | 494 +++++++++++----------------------------- net.h | 16 +- net/dump.c | 24 +- net/dump.h | 5 +- net/slirp.c | 96 +++----- net/slirp.h | 4 +- net/socket.c | 124 ++++------ net/socket.h | 5 +- net/tap-aix.c | 2 +- net/tap-bsd.c | 2 +- net/tap-haiku.c | 2 +- net/tap-linux.c | 9 +- net/tap-solaris.c | 2 +- net/tap-win32.c | 14 +- net/tap.c | 152 ++++++------- net/tap.h | 10 +- net/vde.c | 20 +- net/vde.h | 5 +- qapi-schema.json | 288 ++++++++++++++++++++++- qapi/Makefile.objs | 2 +- qapi/opts-visitor.c | 427 ++++++++++++++++++++++++++++++++++ qapi/opts-visitor.h | 31 +++ qapi/qapi-visit-core.c | 17 +- qapi/qapi-visit-core.h | 3 + qemu-option-internal.h | 53 +++++ qemu-option.c | 24 +- scripts/qapi-visit.py | 150 +++++++----- scripts/qapi.py | 6 + tests/test-qmp-commands.c | 42 ++++ tests/test-qmp-input-visitor.c | 24 +- 60 files changed, 1352 insertions(+), 771 deletions(-) create mode 100644 qapi/opts-visitor.c create mode 100644 qapi/opts-visitor.h create mode 100644 qemu-option-internal.h