From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUFX1-0005Mv-3y for qemu-devel@nongnu.org; Mon, 22 Apr 2013 08:07:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUFX0-0006Rw-4v for qemu-devel@nongnu.org; Mon, 22 Apr 2013 08:07:39 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:59139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUFWz-0006Rr-Ot for qemu-devel@nongnu.org; Mon, 22 Apr 2013 08:07:38 -0400 Received: by mail-wg0-f43.google.com with SMTP id c11so879016wgh.22 for ; Mon, 22 Apr 2013 05:07:37 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <517527FC.2090808@redhat.com> Date: Mon, 22 Apr 2013 14:07:24 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1366365123-5412-1-git-send-email-akong@redhat.com> <51716101.8090705@redhat.com> <20130422114841.GA4053@t430s.nay.redhat.com> In-Reply-To: <20130422114841.GA4053@t430s.nay.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amos Kong Cc: aliguori@us.ibm.com, lcapitulino@redhat.com, mdroth@linux.vnet.ibm.com, jyang@redhat.com, qemu-devel@nongnu.org Il 22/04/2013 13:48, Amos Kong ha scritto: >>> > > Libvirt doesn't have a stable way to know option support >>> > > detail. This patch introdued a new qmp command to query >>> > > configuration schema information. hmp command isn't added. >> > >> > Can you introspect QemuOpts instead? All new options are added there. > > It would be exact to use QemuOpts. I tried to output the vm_config_groups[] > in qemu-config.c, but it seems not enough. (desc list of -netdev, -drive, > -device are all empty) That's expected because they are parsed otherwise, depending on the backend type. -chardev is currently working but it's an implementation detail. Paolo