qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 17/18] Add test tools


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH 17/18] Add test tools
Date: Thu, 1 Dec 2011 11:26:31 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Nov 30, 2011 at 03:03:47PM -0600, Anthony Liguori wrote:
> diff --git a/QMP/qom-get b/QMP/qom-get
> new file mode 100755
> index 0000000..b086bc5
> --- /dev/null
> +++ b/QMP/qom-get
> @@ -0,0 +1,26 @@
> +#!/usr/bin/python
> +##
> +# Virtio Support

QEMU Object Model property getter utility

> +#
> +# Copyright IBM, Corp. 2011
> +#
> +# Authors:
> +#  Anthony Liguori   <address@hidden>
> +#
> +# This work is licensed under the terms of the GNU GPL, version 2 or later.  
> See
> +# the COPYING file in the top-level directory.
> +##
> +
> +import sys
> +from qmp import QEMUMonitorProtocol
> +
> +srv = QEMUMonitorProtocol('/tmp/server.sock')

I think it would be worth doing it like QMP/qmp-shell.py and using a
command-line argument.  We might also like to support a
QEMU_MONITOR environment variable.

Hardcoding to /tmp/server.sock makes this script less useful.

> diff --git a/QMP/qom-list b/QMP/qom-list
> new file mode 100755
> index 0000000..5dbb07b
> --- /dev/null
> +++ b/QMP/qom-list
> @@ -0,0 +1,30 @@
> +#!/usr/bin/python
> +##
> +# Virtio Support

QEMU Object Model property listing utility

> diff --git a/QMP/qom-set b/QMP/qom-set
> new file mode 100755
> index 0000000..83a4394
> --- /dev/null
> +++ b/QMP/qom-set
> @@ -0,0 +1,21 @@
> +#!/usr/bin/python
> +##
> +# Virtio Support

QEMU Object Model property setter utility



reply via email to

[Prev in Thread] Current Thread [Next in Thread]