From patchwork Fri Jul 2 21:27:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Di Ciurcio Filho X-Patchwork-Id: 57778 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3C5DE1007D2 for ; Sat, 3 Jul 2010 07:31:28 +1000 (EST) Received: from localhost ([127.0.0.1]:33206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUnn5-0008TB-N1 for incoming@patchwork.ozlabs.org; Fri, 02 Jul 2010 17:28:55 -0400 Received: from [140.186.70.92] (port=50361 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUnm7-0008PB-3A for qemu-devel@nongnu.org; Fri, 02 Jul 2010 17:28:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUnll-0005lC-B4 for qemu-devel@nongnu.org; Fri, 02 Jul 2010 17:27:34 -0400 Received: from mail-gy0-f173.google.com ([209.85.160.173]:46542) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUnll-0005ko-8s for qemu-devel@nongnu.org; Fri, 02 Jul 2010 17:27:33 -0400 Received: by mail-gy0-f173.google.com with SMTP id 2so1145983gyf.4 for ; Fri, 02 Jul 2010 14:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=IxivhTABkukeD+Z57L9xMBGDxcewpNEW7fvZggRXISo=; b=Ij7BzuI96XkTWK3mGw24w2ojU8MhPryjlUvWJbL5NRdH8xQ3Hq15HmTFDAMl23+Kjs OXWR2xPkpuT24wYz4gxBL6ezgUFj+7cbYoCB2mxN2ewrxFsP0j5wpeDfJSdYTv6kXdn3 JOls02C0qo+J2ZpG6TejDt8mNOdT4JGr3e89w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=qTIxXjG0uiUQxXb6u7tFUsqan+X1OBspZxlay1Bv9ZyD4CioE7TbnBjpB+yNaV0NZW TdyFBGpG00jWg7uDKEKl+aujnesBL1tYLtkNkeodO0z16zu6DlmXf+xUjyud+RJdnTLW OeoXkZn6iHBw6SuM2MblJW6gSh313WgEqg0tM= Received: by 10.90.52.17 with SMTP id z17mr1495655agz.204.1278106052986; Fri, 02 Jul 2010 14:27:32 -0700 (PDT) Received: from localhost.localdomain ([189.61.231.202]) by mx.google.com with ESMTPS id w4sm2468445ybl.10.2010.07.02.14.27.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Jul 2010 14:27:32 -0700 (PDT) From: Miguel Di Ciurcio Filho To: qemu-devel@nongnu.org Date: Fri, 2 Jul 2010 18:27:02 -0300 Message-Id: <1278106023-9966-2-git-send-email-miguel.filho@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1278106023-9966-1-git-send-email-miguel.filho@gmail.com> References: <1278106023-9966-1-git-send-email-miguel.filho@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: armbru@redhat.com, lcapitulino@redhat.com, Miguel Di Ciurcio Filho , avi@redhat.com Subject: [Qemu-devel] [PATCH 1/2] QMP: Introduce the documentation for query-qdm X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org --- qemu-monitor.hx | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 68 insertions(+), 0 deletions(-) diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 9f62b94..5348899 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -2490,6 +2490,74 @@ STEXI show device tree @item info qdm show qdev device model list +ETEXI +SQMP +query-qdm +--------- + +Describe the capabilities of all devices registered with qdev. + +The returned output is a list, each element is a json-object describing a single +device type. + +Each json-object contains the following: + +- "name": the short name of the device (json-string) +- "bus": the name of the bus type for the device (json-string) +- "alias": an alias by which the device is also known (json-string, optional) +- "description": a long description the device (json-string, optional) +- "creatable": whether this device can be created on command line (json-boolean) +- "props": a list where each element is an json-object that describes a property +of the device. Each json-object contains the following: + - "name": the short name of the property (json-string) + - "info": short description of the property (json-string) + - "type": the data type of the property value (json-string) + +Example: + +-> { "execute": "query-qdm" } +<- { + "return": [ + { + "name": "virtio-9p-pci", + "creatable": true, + "bus": "PCI", + "props": [ + { + "name": "indirect_desc", + "type": "bit", + "info": "on/off" + }, + { + "name": "mount_tag", + "type": "string", + "info": "string" + }, + { + "name": "fsdev", + "type": "string", + "info": "string" + } + ] + }, + { + "name": "virtio-balloon-pci", + "creatable": true, + "bus": "PCI", + "props": [ + { + "name": "indirect_desc", + "type": "bit", + "info": "on/off" + } + ] + }, + .... + ] + +EQMP + +STEXI @item info roms show roms @end table