Statistics
| Branch: | Revision:

root / qmp.c @ a8aec295

History | View | Annotate | Download (13.7 kB)

# Date Author Comment
69ca3ea5 05/01/2013 02:06 pm Igor Mammedov

QMP: Add cpu-add command

Adds "cpu-add id=xxx" QMP command.

cpu-add's "id" argument is a CPU number in a range [0..max-cpus)

Example QMP command:
> { "execute": "cpu-add", "arguments": { "id": 2 } }
<
{ "return": {} }

Signed-off-by: Igor Mammedov <>...

ede085b3 04/30/2013 06:30 pm Hu Tao

add a new runstate: RUN_STATE_GUEST_PANICKED

The guest will be in this state when it is panicked.

Signed-off-by: Wen Congyang <>
Signed-off-by: Hu Tao <>
Reviewed-by: Markus Armbruster <>
Message-id: ...

dccfcd0e 04/15/2013 07:19 pm Paolo Bonzini

sysemu: avoid proliferation of include/ subdirectories

Signed-off-by: Paolo Bonzini <>

927d4878 12/19/2012 09:32 am Paolo Bonzini

softmmu: move remaining include files to include/ subdirectories

Signed-off-by: Paolo Bonzini <>

9c17d615 12/19/2012 09:32 am Paolo Bonzini

softmmu: move include files to include/sysemu/

Signed-off-by: Paolo Bonzini <>

14cccb61 12/19/2012 09:31 am Paolo Bonzini

qom: move include files to include/qom/

Signed-off-by: Paolo Bonzini <>

f8fe7964 12/19/2012 09:29 am Paolo Bonzini

janitor: do not include qemu-char everywhere

Touching char/char.h basically causes the whole of QEMU to
be rebuilt. Avoid this, it is usually unnecessary.

Signed-off-by: Paolo Bonzini <>

3bc2f570 11/18/2012 09:19 pm Paolo Bonzini

build: replace weak symbols with a static library

Weak symbols were a nice idea, but they turned out not to be a good one.
Toolchain support is just too sparse, in particular llvm-gcc is totally
broken.

This patch uses a surprisingly low-tech approach: a static library....

1f001dc7 11/02/2012 08:07 pm Paolo Bonzini

compiler: support Darwin weak references

Weakrefs only tell you if the symbol was defined elsewhere, so you
need a further check at runtime to pick the default definition
when needed.

This could be automated by the compiler, but it does not do it.

Signed-off-by: Paolo Bonzini <>...

f563a5d7 10/31/2012 11:42 am Paolo Bonzini

Merge remote-tracking branch 'origin/master' into threadpool

Signed-off-by: Paolo Bonzini <>

67d223be 10/30/2012 10:18 am Paolo Bonzini

compiler: use weak aliases to provide default definitions

This is simpler and more portable.

Signed-off-by: Paolo Bonzini <>

3f4331bf 10/29/2012 03:55 pm Aurelien Jarno

Merge branch 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable

  • 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable:
    migration: go to paused state after finishing incoming migration with -S
    qmp: handle stop/cont in INMIGRATE state
    hmp: fix info cpus for sparc targets
1e998146 10/24/2012 04:27 pm Paolo Bonzini

qmp: handle stop/cont in INMIGRATE state

Right now, stop followed by an incoming migration will let the
virtual machine start. cont before an incoming migration instead
will fail.

This is bad because the actual behavior is not predictable; it is
racy with respect to the start of the incoming migration. That's...

007fcd3e 10/23/2012 02:54 pm Paolo Bonzini

vnc: reorganize code for reverse mode

Avoid the dance between csock and vs->lsock.

Signed-off-by: Paolo Bonzini <>

b224e5e2 09/26/2012 06:42 pm Luiz Capitulino

qapi: convert add_client

Also fixes a few issues while there:

1. The fd returned by monitor_get_fd() leaks in most error conditions
2. monitor_get_fd() return value is not checked. Best case we get
an error that is not correctly reported, worse case one of the...
76b64a7a 08/15/2012 09:26 pm Anthony Liguori

win32: provide separate macros for weak decls and definitions

mingw32 seems to want the declaration to also carry the weak attribute.
Strangely, gcc on Linux absolutely does not want the declaration to be marked
as weak. This may not be the right fix, but it seems to do the trick....

1daa31b9 08/13/2012 10:10 pm Anthony Liguori

qmp: introduce device-list-properties command

This can be used in conjunction with qom-list-types to determine the supported
set of devices and their parameters.

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

e4e31c63 08/13/2012 10:10 pm Anthony Liguori

qapi: add query-cpu-definitions command (v2)

This command attempts to map to the behavior of -cpu ?. Unfortunately, the
output of this command differs wildly across targets.

To accommodate this, we use a weak symbol to implement a default version of the...

ad02b96a 05/08/2012 08:30 pm Luiz Capitulino

runstate: introduce suspended state

QEMU enters in this state when the guest suspends to ram (S3).

This is important so that HMP users and QMP clients can know that
the guest is suspended. QMP also has an event for this, but events
are not reliable and are limited (ie. a client can connect to QEMU...

9b9df25a 02/24/2012 09:36 pm Gerd Hoffmann

suspend: add system_wakeup monitor command

This patch adds the system_wakeup monitor command which will simply
wake up suspended guests.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

9f5f1350 02/07/2012 02:52 pm Paolo Bonzini

qom: add QObject-based property get/set wrappers

Move the creation of QmpInputVisitor and QmpOutputVisitor from qmp.c
to qom/object.c, since it's the only practical way to access object
properties.

Keep this isolated such that it's easy to remove. At some point, we need...

57c9fafe 02/03/2012 06:41 pm Anthony Liguori

qom: move properties from qdev to object

This is mostly code movement although not entirely. This makes properties part
of the Object base class which means that we can now start using Object in a
meaningful way outside of qdev.

Signed-off-by: Anthony Liguori <>

5eeee3fa 02/03/2012 06:41 pm Anthony Liguori

qom: add new command to search for types

This adds a command that allows searching for types that implement a property.
This allows you to do things like search for all available PCIDevices. In the
future, we'll also have a standard interface for things with a BlockDriverState...

270b243f 01/18/2012 02:23 pm Luiz Capitulino

qapi: Introduce change-vnc-password

New QMP command to change the VNC password.

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

Signed-off-by: Luiz Capitulino <>

903a8814 01/18/2012 02:23 pm Luiz Capitulino

qerror: Extend QERR_DEVICE_ENCRYPTED

Include the name of the encrypted file.

Signed-off-by: Luiz Capitulino <>

333a96ec 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert change

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

fbf796fd 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert set_password

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

9ad5372d 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert expire_password

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

6b620ca3 01/13/2012 06:55 pm Paolo Bonzini

prepare for future GPLv2+ relicensing

All files under GPLv2 will get GPLv2+ changes starting tomorrow.
event_notifier.c and exec-obsolete.h were only ever touched by Red Hat
employees and can be relicensed now.

Signed-off-by: Paolo Bonzini <>...

b4b12c62 12/15/2011 05:20 pm Anthony Liguori

qmp: add qom-list command

This can be used to list properties in the device model.

Signed-off-by: Anthony Liguori <>

eb6e8ea5 12/15/2011 05:20 pm Anthony Liguori

qom: qom_{get, set} monitor commands (v2)

This allows clients to read and write device model properties through QMP. QAPI
doesn't support Visitor types yet and these commands are special in that they
don't work with fixed types.

I've added a documentation stub to qapi-schema.json so we can keep consistency...

e42e818b 12/06/2011 03:40 pm Luiz Capitulino

qapi: Convert cont

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

2b54aa87 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-vnc

There are three important remarks in relation to the non-qapi command:

1. This commit also fixes the behavior of the 'query-vnc' and 'info vnc'
commands to return an error when qemu is built without VNC support
(ie. --disable-vnc). The non-qapi command would return the OK...
d1f29646 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-spice

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

755f1968 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert the cpu command

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

292a2602 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert query-kvm

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

efab767e 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert query-uuid

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

7a7f325e 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert quit

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

5f158f21 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert stop

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

38d22653 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert system_reset

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

5bc465e4 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert system_powerdown

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

48a32bed 10/04/2011 05:01 pm Anthony Liguori

qapi: convert query-name

A simple example conversion 'info name'. This also adds the new files for
QMP and HMP.

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

b9c15f16 10/04/2011 05:01 pm Luiz Capitulino

qapi: Convert query-version

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>