<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/QMP/qmp-shell, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/QMP/qmp-shell?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/QMP/qmp-shell?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2013-09-18T12:57:02+00:00</updated>
<entry>
<title>QMP: add scripts/qmp</title>
<updated>2013-09-18T12:57:02+00:00</updated>
<author>
<name>Luiz Capitulino</name>
</author>
<published>2013-09-10T20:39:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=22f3946bc5db2090ffc4ea41f2b83d09e58b665e'/>
<id>urn:sha1:22f3946bc5db2090ffc4ea41f2b83d09e58b665e</id>
<content type='text'>
Populate it with all scripts stored in QMP/. Also fixes trailing
whitespaces in qmp-shell and qmp.py.

Signed-off-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>qmp: fix handling of cmd with Equals in qmp-shell</title>
<updated>2013-05-15T12:58:43+00:00</updated>
<author>
<name>Zhangleiqiang</name>
</author>
<published>2013-05-06T08:31:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=74bc9066bc2cf61dd12994ea3b73401d33112656'/>
<id>urn:sha1:74bc9066bc2cf61dd12994ea3b73401d33112656</id>
<content type='text'>
	qmp: fix handling of cmd with equal mark in qmp-shell

    qmp-shell splits the argument and value of input command
	by equal mark("="). But there are commands whose values
	include equal mark themselves, and the json built by
	qmp-shell will not correct. For example, when using NBD as
	the target of block-backup command, the input
	"block-backup target=nbd+unix:///drive0?socket=/tmp/nbd.sock"
	will fail, because the json built will be as follows:

    {
		"execute":"block-backup",
		"arguments":{"target":"nbd+unix:///drive0?socket"}
	}

    Fix it by joining the sections split by equal mark excluding the
	first section in __build_cmd function when the length of sections
	is larger than two.

Signed-off-by: zhangleiqiang &lt;zhangleiqiang@huawei.com&gt;
Signed-off-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;
</content>
</entry>
<entry>
<title>qmp: fix handling of boolean values in qmp-shell</title>
<updated>2013-03-25T20:21:33+00:00</updated>
<author>
<name>Igor Mammedov</name>
</author>
<published>2013-03-25T14:48:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e5ecec7bad7b679aa11ab788424bc0e1705be15b'/>
<id>urn:sha1:e5ecec7bad7b679aa11ab788424bc0e1705be15b</id>
<content type='text'>
qmp-shell converts only integer arguments and the rest
is assumed to be strings which are faithfully sent as
quoted strings by json. But QEMU refuses to accept qmp
command with boolean argument whose value is escaped
as string.

Fix it by special-casing true/false keywords and store
value as corresponding boolean.

Signed-off-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Signed-off-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;
</content>
</entry>
<entry>
<title>Add support for pretty-printing response in qmp-shell</title>
<updated>2012-09-05T18:48:56+00:00</updated>
<author>
<name>Daniel P. Berrange</name>
</author>
<published>2012-08-15T10:33:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=fa779b65fa77d5632df1f8b2df33e9023dbc4cc8'/>
<id>urn:sha1:fa779b65fa77d5632df1f8b2df33e9023dbc4cc8</id>
<content type='text'>
Add a '-p' arg to the QMP/qmp-shell test program, which uses
the python pprint module to pretty-print the dictionary
returned from a command

  $ qmp-shell -p /tmp/qemu
  Welcome to the QMP low-level shell!
  Connected to QEMU 1.1.50

  (QEMU) query-cpus
  {   u'return': [   {   u'CPU': 0,
                         u'current': True,
                         u'halted': True,
                         u'pc': 1048556,
                         u'thread_id': 7108}]}

Signed-off-by: Daniel P. Berrange &lt;berrange@redhat.com&gt;
Signed-off-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;
</content>
</entry>
<entry>
<title>QMP/qmp-shell: Introduce HMP mode</title>
<updated>2010-11-17T11:52:24+00:00</updated>
<author>
<name>Luiz Capitulino</name>
</author>
<published>2010-10-28T15:28:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=11217a757e7dda66fd2e78b10ea0cd8d6b290e42'/>
<id>urn:sha1:11217a757e7dda66fd2e78b10ea0cd8d6b290e42</id>
<content type='text'>
In which qmp-shell will exclusively use the HMP passthrough feature,
this is useful for testing.

Example:

    # ./qmp-shell -H qmp-sock
    Welcome to the HMP shell!
    Connected to QEMU 0.13.50

    (QEMU) info network
    VLAN 0 devices:
      user.0: net=10.0.2.0, restricted=n
        e1000.0: model=e1000,macaddr=52:54:00:12:34:56
        Devices not on any VLAN:
    (QEMU)

Signed-off-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;
</content>
</entry>
<entry>
<title>QMP: Revamp the qmp-shell script</title>
<updated>2010-11-17T11:51:07+00:00</updated>
<author>
<name>Luiz Capitulino</name>
</author>
<published>2010-10-27T19:57:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9bed0d0d1c5667a2e1124c8e44d31ac254ca2efb'/>
<id>urn:sha1:9bed0d0d1c5667a2e1124c8e44d31ac254ca2efb</id>
<content type='text'>
This commit updates the qmp-shell script to use the new interface
introduced by the last commit.

Additionally, the following fixes/features are also introduced:

 o TCP sockets support
 o Update/add documentation
 o Simple command-line completion
 o Fix a number of unhandled errors

Signed-off-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;
</content>
</entry>
<entry>
<title>QMP: Teach basic capability negotiation to python example</title>
<updated>2010-07-01T17:27:13+00:00</updated>
<author>
<name>Jan Kiszka</name>
</author>
<published>2010-06-15T22:38:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8d7e84571bd3f44c106ed12cb316b1ca30915fc7'/>
<id>urn:sha1:8d7e84571bd3f44c106ed12cb316b1ca30915fc7</id>
<content type='text'>
As sending "qmp_capabilities" on session start became mandatory, both
python examples were broken.

Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Signed-off-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;
</content>
</entry>
<entry>
<title>QMP: Introduce qmp-shell</title>
<updated>2009-12-03T15:41:25+00:00</updated>
<author>
<name>Luiz Capitulino</name>
</author>
<published>2009-11-27T00:59:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=cedebdacd2307a3e4df9aec9839b12895c25e5f5'/>
<id>urn:sha1:cedebdacd2307a3e4df9aec9839b12895c25e5f5</id>
<content type='text'>
This is a very simple shell written in Python for demonstration
purposes.

Unfortunately it's a bit awkward right now, as the user has
to specify the arguments names and the printed data can be
a raw dictionary or list, like the following example:

(QEMU) pci_add pci_addr=auto type=nic
{u'slot': 5, u'bus': 0, u'domain': 0, u'function': 0}
(QEMU)

It's worth to note that the shell is broken into two files.
One is the shell itself, the other is the QMP class which
handles the communication with QEMU.

Signed-off-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;
Signed-off-by: Anthony Liguori &lt;aliguori@us.ibm.com&gt;
</content>
</entry>
</feed>
