qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] bbf6da: Add migration capabilities


From: Anthony Liguori
Subject: [Qemu-commits] [qemu/qemu] bbf6da: Add migration capabilities
Date: Mon, 13 Aug 2012 17:30:18 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: bbf6da32b5bd32018069e4eaeda59a02855903f2
      
https://github.com/qemu/qemu/commit/bbf6da32b5bd32018069e4eaeda59a02855903f2
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M hmp-commands.hx
    M hmp.c
    M hmp.h
    M migration.c
    M migration.h
    M monitor.c
    M qapi-schema.json
    M qmp-commands.hx

  Log Message:
  -----------
  Add migration capabilities

The management can query the current migration capabilities using
query-migrate-capabilities QMP command.
The user can use 'info migrate_capabilities' HMP command.
Currently only XBZRLE capability is available.

Signed-off-by: Orit Wasserman <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 00458433242dbfb6348d8e0bb6d356603d3e0067
      
https://github.com/qemu/qemu/commit/00458433242dbfb6348d8e0bb6d356603d3e0067
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M hmp-commands.hx
    M hmp.c
    M hmp.h
    M migration.c
    M qapi-schema.json
    M qmp-commands.hx

  Log Message:
  -----------
  Add migrate-set-capabilities

The management can enable/disable a capability for the next migration by using
migrate-set-capabilities QMP command.
The user can use migrate_set_capability HMP command.

Signed-off-by: Orit Wasserman <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 34c26412b76840e0cab9808047e29aebd429c139
      
https://github.com/qemu/qemu/commit/34c26412b76840e0cab9808047e29aebd429c139
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    A docs/xbzrle.txt

  Log Message:
  -----------
  Add XBZRLE documentation

Signed-off-by: Orit Wasserman <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 9fb26641ab497eda9138f9af75cbeb02ed59b5ae
      
https://github.com/qemu/qemu/commit/9fb26641ab497eda9138f9af75cbeb02ed59b5ae
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M Makefile.objs
    M cutils.c
    A include/qemu/page_cache.h
    A page_cache.c
    M qemu-common.h

  Log Message:
  -----------
  Add cache handling functions

Add MRU page cache mechanism.
The page are accessed by their address.

Signed-off-by: Benoit Hudzia <address@hidden>
Signed-off-by: Petter Svard <address@hidden>
Signed-off-by: Aidan Shribman <address@hidden>
Signed-off-by: Orit Wasserman <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: e6546bb938f5326269b6669d6cbb44d72458caa4
      
https://github.com/qemu/qemu/commit/e6546bb938f5326269b6669d6cbb44d72458caa4
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M cutils.c
    M qemu-common.h

  Log Message:
  -----------
  Add uleb encoding/decoding functions

Implement Unsigned Little Endian Base 128.

Signed-off-by: Orit Wasserman <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 302dfbeb21fc5154c24ca50d296e865a3778c7da
      
https://github.com/qemu/qemu/commit/302dfbeb21fc5154c24ca50d296e865a3778c7da
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M migration.h
    M savevm.c

  Log Message:
  -----------
  Add xbzrle_encode_buffer and xbzrle_decode_buffer functions

For performance we are encoding long word at a time.
For nzrun we use long-word-at-a-time NULL-detection tricks from strcmp():
using ((lword - 0x0101010101010101) & (~lword) & 0x8080808080808080) test
to find out if any byte in the long word is zero.

Signed-off-by: Benoit Hudzia <address@hidden>
Signed-off-by: Petter Svard <address@hidden>
Signed-off-by: Aidan Shribman <address@hidden>
Signed-off-by: Orit Wasserman <address@hidden>
Signed-off-by: Eric Blake <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 17ad9b358bceba78ae80f2963c6036eab726010c
      
https://github.com/qemu/qemu/commit/17ad9b358bceba78ae80f2963c6036eab726010c
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M arch_init.c
    M migration.c
    M migration.h

  Log Message:
  -----------
  Add XBZRLE to ram_save_block and ram_save_live

In the outgoing migration check to see if the page is cached and
changed, then send compressed page by using save_xbrle_page function.
In the incoming migration check to see if RAM_SAVE_FLAG_XBZRLE is set
and decompress the page (by using load_xbrle function).

Signed-off-by: Benoit Hudzia <address@hidden>
Signed-off-by: Petter Svard <address@hidden>
Signed-off-by: Aidan Shribman <address@hidden>
Signed-off-by: Orit Wasserman <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 9e1ba4cc4e2536d9650e84e2614c5691ed45938f
      
https://github.com/qemu/qemu/commit/9e1ba4cc4e2536d9650e84e2614c5691ed45938f
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M arch_init.c
    M hmp-commands.hx
    M hmp.c
    M hmp.h
    M migration.c
    M migration.h
    M monitor.c
    M qapi-schema.json
    M qmp-commands.hx

  Log Message:
  -----------
  Add migrate_set_cache_size command

Change XBZRLE cache size in bytes (the size should be a power of 2, it will be
rounded down to the nearest power of 2).
If XBZRLE cache size is too small there will be many cache miss.

New query-migrate-cache-size QMP command and 'info migrate_cache_size' HMP
command to query cache value.

Signed-off-by: Benoit Hudzia <address@hidden>
Signed-off-by: Petter Svard <address@hidden>
Signed-off-by: Aidan Shribman <address@hidden>
Signed-off-by: Orit Wasserman <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 62d4e3fe31844ee76bf2314bf1c22d25bad37589
      
https://github.com/qemu/qemu/commit/62d4e3fe31844ee76bf2314bf1c22d25bad37589
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M qapi-schema.json
    M qmp-commands.hx

  Log Message:
  -----------
  Change total_time to total-time in MigrationStats

migration total_time was introduced in commit
d5f8a5701d3690b5ec0c34b6a5c0b5a24d274540 for QEMU 1.2

Signed-off-by: Orit Wasserman <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 004d4c10aee9d64869ca3a8ef21f56c0045bf31b
      
https://github.com/qemu/qemu/commit/004d4c10aee9d64869ca3a8ef21f56c0045bf31b
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M arch_init.c
    M hmp.c
    M migration.c
    M migration.h
    M qapi-schema.json
    M qmp-commands.hx

  Log Message:
  -----------
  Add migration accounting for normal and duplicate pages

Signed-off-by: Benoit Hudzia <address@hidden>
Signed-off-by: Petter Svard <address@hidden>
Signed-off-by: Aidan Shribman <address@hidden>
Signed-off-by: Orit Wasserman <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: f36d55af7408abceeee2543f697647ff86bd8a24
      
https://github.com/qemu/qemu/commit/f36d55af7408abceeee2543f697647ff86bd8a24
  Author: Orit Wasserman <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M arch_init.c
    M hmp.c
    M migration.c
    M migration.h
    M qapi-schema.json
    M qmp-commands.hx

  Log Message:
  -----------
  Add XBZRLE statistics

Signed-off-by: Benoit Hudzia <address@hidden>
Signed-off-by: Petter Svard <address@hidden>
Signed-off-by: Aidan Shribman <address@hidden>
Signed-off-by: Orit Wasserman <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: dd051c7217eae04191169ac62f6ffb7531c8da32
      
https://github.com/qemu/qemu/commit/dd051c7217eae04191169ac62f6ffb7531c8da32
  Author: Juan Quintela <address@hidden>
  Date:   2012-08-08 (Wed, 08 Aug 2012)

  Changed paths:
    M arch_init.c

  Log Message:
  -----------
  Restart optimization on stage3 update version

Signed-off-by: Juan Quintela <address@hidden>

Reviewed-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>


  Commit: 55e00a19b6dc8f20e5688866451bb4a60e649459
      
https://github.com/qemu/qemu/commit/55e00a19b6dc8f20e5688866451bb4a60e649459
  Author: Peter Maydell <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hw/armv7m_nvic.c

  Log Message:
  -----------
  hw/armv7m_nvic: Fix incorrect default for num-irqs property

Fix an incorrect default value for the num-irqs property (we were
attempting to override it from the default set by the parent class
but not succeeding, which meant that the lm3s6965evb model would
assert on startup attempting to wire up nonexistent irq lines).
Instead of trying to override the parent's Property array, we
define an instance_init function which runs after default setup
but before user property setting and can just fix up the default
value in the gic_state struct.

Reported-by: Peter Crosthwaite <address@hidden>
Tested-by: Peter Crosthwaite <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>


  Commit: 01fd41ab3fb69971c24a69ed49cde96086d81278
      
https://github.com/qemu/qemu/commit/01fd41ab3fb69971c24a69ed49cde96086d81278
  Author: Peter A. G. Crosthwaite <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hw/armv7m.c

  Log Message:
  -----------
  armv7m: Guard against no -kernel argument

A -kernel argument must be specified for this machine. Guard against no -kernel
argument. Previously gave an unhelpful "bad address" error message.

Signed-off-by: Peter A. G. Crosthwaite <address@hidden>
Tested-by: Markus Armbruster <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>


  Commit: a9c0183059d6a4e4d940cd86ac0f9402b0655d24
      
https://github.com/qemu/qemu/commit/a9c0183059d6a4e4d940cd86ac0f9402b0655d24
  Author: Mitsyanko Igor <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hw/sd.c

  Log Message:
  -----------
  hw/sd.c: convert wp_groups in SDState to bitfield

Representing each group write protection flag with only one bit instead of int
variable significantly reduces memory consumption.

Signed-off-by: Igor Mitsyanko <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>


  Commit: 347cab1a762ff8542016f574c5eb32f0c4588ea2
      
https://github.com/qemu/qemu/commit/347cab1a762ff8542016f574c5eb32f0c4588ea2
  Author: Mitsyanko Igor <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hw/sd.c

  Log Message:
  -----------
  hw/sd.c: make sd_wp_addr() accept 64 bit address argument

Currently sd_wp_addr() accepts 32 bit address arguments therefore implicitly
restricting SD card address range. Change address argument type to uint64_t.

Signed-off-by: Igor Mitsyanko <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>


  Commit: b7202b8870ebb8e9b0246361c96e129172738f82
      
https://github.com/qemu/qemu/commit/b7202b8870ebb8e9b0246361c96e129172738f82
  Author: Mitsyanko Igor <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hw/sd.c

  Log Message:
  -----------
  hw/sd.c: introduce wrapper for conversion address to wp group

Add wrapper function sd_addr_to_wpnum() to replace long address-->wg_group
conversion line.

Signed-off-by: Igor Mitsyanko <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>


  Commit: bebd12717c76b251514098bb9682d0309642e565
      
https://github.com/qemu/qemu/commit/bebd12717c76b251514098bb9682d0309642e565
  Author: Mitsyanko Igor <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hw/sd.c
    M hw/sd.h

  Log Message:
  -----------
  hw/sd.c: convert binary variables to bool

Several members of SDState have type int when they actually are binary 
variables.
Change type of these variables to bool to improve code readability. Change SD 
API
to be in consistency with new variables type.

Signed-off-by: Igor Mitsyanko <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>


  Commit: 879bf4a716410c9c7933dea5a5f3d3867734efb6
      
https://github.com/qemu/qemu/commit/879bf4a716410c9c7933dea5a5f3d3867734efb6
  Author: Mitsyanko Igor <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hw/sd.c
    M hw/sd.h

  Log Message:
  -----------
  hw/sd.c: make sd_dataready() return bool

For the sake of code clarity

Signed-off-by: Igor Mitsyanko <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>


  Commit: 4e8f1be21287a101996c56fc2e22737692e2868d
      
https://github.com/qemu/qemu/commit/4e8f1be21287a101996c56fc2e22737692e2868d
  Author: Mitsyanko Igor <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hw/sd.c

  Log Message:
  -----------
  hw/sd.c: make sd_wp_addr() return bool

For the sake of code clarity

Signed-off-by: Igor Mitsyanko <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>


  Commit: b1c265424abfa5a1b2589e606b4e4dafbb5108f0
      
https://github.com/qemu/qemu/commit/b1c265424abfa5a1b2589e606b4e4dafbb5108f0
  Author: Peter A. G. Crosthwaite <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hw/ssd0323.c

  Log Message:
  -----------
  ssd0323: abort() instead of exit(1) on error.

To be more consistent with the newer ways of error signalling. That and SIGABT
is easier to debug with than exit(1).

Signed-off-by: Peter A. G. Crosthwaite <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>


  Commit: 58f9b98f8a341c8b7bb0c9b38e492a01fe71d666
      
https://github.com/qemu/qemu/commit/58f9b98f8a341c8b7bb0c9b38e492a01fe71d666
  Author: Andreas Färber <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M default-configs/arm-softmmu.mak
    M hw/Makefile.objs
    M hw/arm/Makefile.objs

  Log Message:
  -----------
  arm: Move some ARM devices into libhw

Avoids some unnecessary dependencies on cpu.h and prepares for
a future armeb-softmmu where most machines would not be built.

Defer touching the SoC devices since most have implicit or explicit
dependencies on the CPU.

Signed-off-by: Andreas Färber <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>


  Commit: 74ee59a825f9c0e6b5a95bea3b7ac4627526f42d
      
https://github.com/qemu/qemu/commit/74ee59a825f9c0e6b5a95bea3b7ac4627526f42d
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M configure
    M monitor.c

  Log Message:
  -----------
  monitor: drop unused monitor debug code

In the old QMP days, this code was used to find out QMP commands that
might be calling monitor_printf() down its call chain.

This is almost impossible to happen today, because the qapi converted
commands don't even have a monitor object. Besides, it's been more than
a year since I used this last time.

Let's just drop it.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 484051b9960736a6ebff3cfed78c4b29758e63c0
      
https://github.com/qemu/qemu/commit/484051b9960736a6ebff3cfed78c4b29758e63c0
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.c

  Log Message:
  -----------
  qerror: QERR_AMBIGUOUS_PATH: drop %(object) from human msg

Actually, renames it to 'object'. This must be what the original author
meant to write, as there's no 'object' in the error's data member.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: b5d90f0424ea27eb126a4eaed2554908fc463d9f
      
https://github.com/qemu/qemu/commit/b5d90f0424ea27eb126a4eaed2554908fc463d9f
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.c

  Log Message:
  -----------
  qerror: QERR_DEVICE_ENCRYPTED: change error message

Match what HMP commands print on DeviceEncrypted errors.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 2a74440547ea0a15195224fa2b7784b267cbfe15
      
https://github.com/qemu/qemu/commit/2a74440547ea0a15195224fa2b7784b267cbfe15
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.c
    M qerror.h

  Log Message:
  -----------
  qerror: reduce public exposure

qerror will be dropped in a near future, let's reduce its public
exposure by making functions only used in qerror.c static.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: fbe0a831f68348d228acd9a4ec8a25582396282a
      
https://github.com/qemu/qemu/commit/fbe0a831f68348d228acd9a4ec8a25582396282a
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.c

  Log Message:
  -----------
  qerror: drop qerror_abort()

qerror_abort() depends on the 'file', 'func' and 'linenr' members of
QError. However, these members are going to be dropped by the next
commit, so let's drop qerror_abort() in favor of printing an error
message to stderr plus a call to abort().

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: f2dd1d69edf0080d7d08dd3e8c7bfc6b488d59e4
      
https://github.com/qemu/qemu/commit/f2dd1d69edf0080d7d08dd3e8c7bfc6b488d59e4
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.c

  Log Message:
  -----------
  qerror: avoid passing qerr pointer

Helps dropping/modifying qerror functions.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 5f0f0e13e1f714704d96f04050674c3102376409
      
https://github.com/qemu/qemu/commit/5f0f0e13e1f714704d96f04050674c3102376409
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.c
    M qerror.h

  Log Message:
  -----------
  qerror: QError: drop file, linenr, func

They have never been fully used and conflict with future error
improvements.

Also makes qerror_report() a proper function, as there's no point
in having it as a macro anymore.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 2b38cf2e033d90fb50fc967f535935b170dc507d
      
https://github.com/qemu/qemu/commit/2b38cf2e033d90fb50fc967f535935b170dc507d
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M error.c
    M qerror.c
    M qerror.h

  Log Message:
  -----------
  qerror: qerror_format(): return an allocated string

Simplifies current and future users.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 18da7c0f1f24cc00f7c2f80c27cb85e4b234e091
      
https://github.com/qemu/qemu/commit/18da7c0f1f24cc00f7c2f80c27cb85e4b234e091
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.c
    M qerror.h

  Log Message:
  -----------
  qerror: don't delay error message construction

Today, the error message is only constructed when it's used. This commit
changes qerror to construct the error message when the error object is
built (ie. when the error is reported).

This eliminates the need of storing a pointer to qerror_table[], which
will be dropped soon, and also simplifies the code.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: dd7520f0646985b08024c73ba2285c31d7318755
      
https://github.com/qemu/qemu/commit/dd7520f0646985b08024c73ba2285c31d7318755
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M error.c
    M qerror.c

  Log Message:
  -----------
  error: don't delay error message construction

Today, the error message is only constructed when it's used. This commit
changes that to construct the error message when the error object is
built (ie. when the error is reported).

This simplifies the Error object.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: c75a1a8a5a34ef10f704c521c475a6dd4de5e887
      
https://github.com/qemu/qemu/commit/c75a1a8a5a34ef10f704c521c475a6dd4de5e887
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M block.c
    M qapi-schema.json

  Log Message:
  -----------
  qmp: query-block: add 'encryption_key_missing' field

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 8b7f6fbbdc5545f749864fdf295f2fae14c7ef0a
      
https://github.com/qemu/qemu/commit/8b7f6fbbdc5545f749864fdf295f2fae14c7ef0a
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hmp.c

  Log Message:
  -----------
  hmp: hmp_cont(): don't rely on QERR_DEVICE_ENCRYPTED

This commit changes hmp_cont() to loop through all block devices
and proactively set an encryption key for any encrypted device
missing a key.

This change is needed because QERR_DEVICE_ENCRYPTED is going to be
dropped by a future commit.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: eef5ad1086403d8ac8d91208a0e8dc34734b671c
      
https://github.com/qemu/qemu/commit/eef5ad1086403d8ac8d91208a0e8dc34734b671c
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hmp.c

  Log Message:
  -----------
  hmp_change(): don't access DeviceEncrypted's data

It's not needed. As the device name is already known, we can replace
the duplicated password prompting code by monitor_read_block_device_key().

This overly simplifies hmp_change().

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 02a08fef079469c005d48fe2d181f0e0eb5752ae
      
https://github.com/qemu/qemu/commit/02a08fef079469c005d48fe2d181f0e0eb5752ae
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M migration-tcp.c
    M nbd.c
    M qemu-char.c
    M qemu-sockets.c
    M qemu_socket.h
    M ui/vnc.c

  Log Message:
  -----------
  net: inet_connect(), inet_connect_opts(): add in_progress argument

It's used to indicate the special case where a valid file-descriptor
is returned (ie. success) but the connection can't be completed
w/o blocking.

This is needed because QERR_SOCKET_CONNECT_IN_PROGRESS is not
treated like an error and a future commit will drop it.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 540c79fec9e8b6a6582ec4c65aa2c4c5366e4b89
      
https://github.com/qemu/qemu/commit/540c79fec9e8b6a6582ec4c65aa2c4c5366e4b89
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M migration-tcp.c
    M qemu-sockets.c

  Log Message:
  -----------
  migration: don't rely on any QERR_SOCKET_*

Use the in_progress argument for QERR_SOCKET_CONNECT_IN_PROGRESS. The
other errors are handled the same by checking if the error is set and
then calling migrate_fd_error() if it's.

It's also necessary to change inet_connect_opts() not to set
QERR_SOCKET_CONNECT_IN_PROGRESS. This error is only used by
tcp_start_outgoing_migration() and not changing it along with the
usage of in_progress would break migration.

Furthermore this commit fixes a bug. Today, there's a spurious error
report when migration succeeds:

(qemu) migrate tcp:0:4444
migrate: Connection can not be completed immediately
(qemu)

After this commit no spurious error is reported anymore.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 75b81cf0f26f5bb7ada583fc434835adf03f8b77
      
https://github.com/qemu/qemu/commit/75b81cf0f26f5bb7ada583fc434835adf03f8b77
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.c
    M qerror.h

  Log Message:
  -----------
  qerror: drop QERR_SOCKET_CONNECT_IN_PROGRESS

Unused since last commit.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 9aeaddff26d02633b228aceadecf36d28ac18823
      
https://github.com/qemu/qemu/commit/9aeaddff26d02633b228aceadecf36d28ac18823
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M block_int.h

  Log Message:
  -----------
  block: block_int: include qerror.h

Several block/ files are relying on qerror.h being provided by
qapi-types.h. Fix this, as a future commit will change qapi-types.h
not to provide qerror.h.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: ff2f990b8212c8822d6a2f66ab4baeb48dae86bd
      
https://github.com/qemu/qemu/commit/ff2f990b8212c8822d6a2f66ab4baeb48dae86bd
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hmp.h

  Log Message:
  -----------
  hmp: hmp.h: include qdict.h

hmp.h is relying on qdict.h being provided by qapi-types.h. Fix this,
as a future commit will change qapi-types.h not to provide qdict.h.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: b68a8472c17d2d2127afcf1a8dc57884e6584173
      
https://github.com/qemu/qemu/commit/b68a8472c17d2d2127afcf1a8dc57884e6584173
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M scripts/qapi-types.py

  Log Message:
  -----------
  qapi: qapi-types.h: don't include qapi/qapi-types-core.h

qapi-types.h needs only qemu-common.h. Including qapi-types-core.h
causes problems when qerror.h or error.h includes qapi-types.h.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: f01f594b63becfc17cb23b4c15193230d01592e4
      
https://github.com/qemu/qemu/commit/f01f594b63becfc17cb23b4c15193230d01592e4
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M scripts/qapi-types.py

  Log Message:
  -----------
  qapi: generate correct enum names for camel case enums

An enum like GenericError in the schema, should generate
GENERIC_ERROR and not GENERICERROR.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: ac4ff701d88c4c742b4a53b83eed7ce356535ef8
      
https://github.com/qemu/qemu/commit/ac4ff701d88c4c742b4a53b83eed7ce356535ef8
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M scripts/qapi-types.py

  Log Message:
  -----------
  qapi: don't convert enum strings to lowercase

Next commit will introduce enum strings in camel case.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: dcafd32348a08490cc378bfc50b260e5229ad738
      
https://github.com/qemu/qemu/commit/dcafd32348a08490cc378bfc50b260e5229ad738
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qapi-schema.json

  Log Message:
  -----------
  qapi-schema: add ErrorClass enum

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 85465051e0e8a79c3c1df3187c2acaacb10d6232
      
https://github.com/qemu/qemu/commit/85465051e0e8a79c3c1df3187c2acaacb10d6232
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.c
    M qerror.h

  Log Message:
  -----------
  qerror: qerror_table: don't use C99 struct initializers

This allows for changing QERR_ macros to initialize two struct members
at the same time. See next commit for more details.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 13f59ae8157e8ec238fa8aefe5309909a1eeb7e2
      
https://github.com/qemu/qemu/commit/13f59ae8157e8ec238fa8aefe5309909a1eeb7e2
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M error.c
    M error.h
    M qerror.c
    M qerror.h

  Log Message:
  -----------
  error, qerror: add ErrorClass argument to error functions

The new argument is added to functions qerror_report() and error_set().
It's stored in Error and QError. qerror_report_err() is also updated to
take care of it.

The QERR_ macros are changed to contain a place holder value for the
new argument, so that the value is used on all current calls to
qerror_report() and error_set() (and also to initialize qerror_table[]).

Next commit will update the QERR_ macros with a proper ErrorClass
value.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 0f32cf6abcea8006fbf1f9c9bc8bc5bedcf6e431
      
https://github.com/qemu/qemu/commit/0f32cf6abcea8006fbf1f9c9bc8bc5bedcf6e431
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.h

  Log Message:
  -----------
  qerror: add proper ErrorClass value for QERR_ macros

This commit replaces the place holder value for the ErrorClass
argument with a proper ErrorClass value for all QERR_ macros.

All current errors are mapped to GenericError, except for errors
CommandNotFound, DeviceEncrypted, DeviceNotActive, DeviceNotFound,
KVMMissingCap and MigrationExpected, which are maintained as they
are today.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: ea25fbca88b223877c45c776b6c0e17e0247439f
      
https://github.com/qemu/qemu/commit/ea25fbca88b223877c45c776b6c0e17e0247439f
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M error.c
    M error.h

  Log Message:
  -----------
  error: add error_get_class()

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: ab878ddfeee722db8e7f78a9c6e9882864c2fd66
      
https://github.com/qemu/qemu/commit/ab878ddfeee722db8e7f78a9c6e9882864c2fd66
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M hmp.c

  Log Message:
  -----------
  hmp: hmp_change(): use error_get_class()

The error_is_type() function is going to be dropped.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: a8cb2d302ea20d7ba1be184973fef29d7cab9407
      
https://github.com/qemu/qemu/commit/a8cb2d302ea20d7ba1be184973fef29d7cab9407
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M error.c
    M error.h
    M error_int.h

  Log Message:
  -----------
  error: drop unused functions

Besides being unused, they operate on the current error format,
which is going to be replaced soon.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: de253f14912e88f45dbe66984440d27221a75a60
      
https://github.com/qemu/qemu/commit/de253f14912e88f45dbe66984440d27221a75a60
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M QMP/qmp-spec.txt
    M monitor.c
    M qapi-schema.json
    M qmp-commands.hx

  Log Message:
  -----------
  qmp: switch to the new error format on the wire

IMPORTANT: this BREAKS QMP's compatibility for the error response.

This commit changes QMP's wire protocol to make use of the simpler
error format introduced by previous commits.

There are two important (and mostly incompatible) changes:

 1. Almost all error classes have been replaced by GenericError. The
    only classes that are still supported for compatibility with
    libvirt are: CommandNotFound, DeviceNotActive, KVMMissingCap,
    DeviceNotFound and MigrationExpected

 2. The 'data' field of the error dictionary is gone

As an example, an error response like:

  { "error": { "class": "DeviceNotRemovable",
         "data": { "device": "virtio0" },
         "desc": "Device 'virtio0' is not removable" } }

Will now be emitted as:

  { "error": { "class": "GenericError",
         "desc": "Device 'virtio0' is not removable" } }

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 93b91c59dbccde6e4d25661150c1529bd5ee4a06
      
https://github.com/qemu/qemu/commit/93b91c59dbccde6e4d25661150c1529bd5ee4a06
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M Makefile.objs
    M qapi/qmp-core.h
    M qapi/qmp-dispatch.c
    M qemu-ga.c

  Log Message:
  -----------
  qemu-ga: switch to the new error format on the wire

IMPORTANT: this BREAKS qemu-ga compatibility for the error response.

Instead of returning something like:

{ "error": { "class": "InvalidParameterValue",
       "data": {"name": "mode", "expected": "halt|powerdown|reboot" } } }

qemu-ga now returns:

 { "error": { "class": "GenericError",
        "desc": "Parameter 'mode' expects halt|powerdown|reboot" } }

Notice that this is also a bug fix, as qemu-ga wasn't returning the
human message.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 7795b166d9d1e2b33d428f5acab6d0d5e617ee91
      
https://github.com/qemu/qemu/commit/7795b166d9d1e2b33d428f5acab6d0d5e617ee91
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M error.c
    R error_int.h
    M qapi/qmp-dispatch.c
    M qemu-ga.c

  Log Message:
  -----------
  error: drop error_get_qobject()/error_set_qobject()

error_get_qobject() is unused since last commit, error_set_qobject()
has never been used. Also drops error_int.h.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: df1e608a01eb0d55d6639d97f575dba37a44ac4a
      
https://github.com/qemu/qemu/commit/df1e608a01eb0d55d6639d97f575dba37a44ac4a
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M error.c
    M error.h
    M qerror.c
    M qerror.h

  Log Message:
  -----------
  error, qerror: pass desc string to error calls

This commit changes all QERR_ macros to contain a human message (ie.
the desc string found in qerr_table[]) instead of a json dictionary
in string format.

Before this commit, error_set() and qerror_report() would receive
a json dictionary in string format and build a qobject from it. Now,
both function receive a human message instead and the qobject is
not built anymore.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 3647f5c161dddb5ec22c2d8e0ab27811959e3ada
      
https://github.com/qemu/qemu/commit/3647f5c161dddb5ec22c2d8e0ab27811959e3ada
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qerror.c
    M qerror.h

  Log Message:
  -----------
  qerror: drop qerror_table and qerror_format()

They are unused since last commit.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 6d3f0dbb304d59759b2faf1e50db94d996f51f8a
      
https://github.com/qemu/qemu/commit/6d3f0dbb304d59759b2faf1e50db94d996f51f8a
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M error.c
    M qerror.c
    M qerror.h

  Log Message:
  -----------
  error, qerror: drop QDict member

Used to store error information, but it's unused now.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: adb2072ed0fd595b05f6571e985b271a3cfa872d
      
https://github.com/qemu/qemu/commit/adb2072ed0fd595b05f6571e985b271a3cfa872d
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M docs/writing-qmp-commands.txt

  Log Message:
  -----------
  docs: writing-qmp-commands.txt: update error section

Add information about the new error format and improve the text a bit.

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: 08b76b9fc3f0c25f062216955411aefaefabff89
      
https://github.com/qemu/qemu/commit/08b76b9fc3f0c25f062216955411aefaefabff89
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M scripts/qapi-commands.py

  Log Message:
  -----------
  scripts: qapi-commands.py: qmp-commands.h: include qdict.h

qmp-commands.h declares several functions that have arguments of
type QDict. However, qdict.h is not included. This will cause a
build breakage when a file includes qmp-commands.h but doesn't
include qdict.h.

Signed-off-by: Luiz Capitulino <address@hidden>


  Commit: 1405819637f53ed8021067eb3ea52e32bef2870b
      
https://github.com/qemu/qemu/commit/1405819637f53ed8021067eb3ea52e32bef2870b
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M vl.c

  Log Message:
  -----------
  qmp: don't emit the RESET event on wakeup from S3

QEMU is basically using reset logic when waking up from S3. This
causes the QMP RESET event to be emitted, which is wrong. Also,
the runstate checks done in reset are not necessary for S3 wakeup.

Fix this by untangling wakeup from reset logic and passing
VMRESET_SILENT to qemu_system_reset() to avoid emitting the RESET
event.

Signed-off-by: Luiz Capitulino <address@hidden>
Acked-by: Gerd Hoffmann <address@hidden>


  Commit: 17c8660b0b2be17d389e2ffd5681d535cc0d8912
      
https://github.com/qemu/qemu/commit/17c8660b0b2be17d389e2ffd5681d535cc0d8912
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M QMP/qmp-events.txt
    M vl.c

  Log Message:
  -----------
  qmp: emit the WAKEUP event when the guest is put to run

Today, the WAKEUP event is emitted when a wakeup _request_ is made.
This could be the system_wakeup command, for example.

A better semantic would be to emit the event when the guest is
already running, as that's what matters in the end. This commit does
that change.

In theory, this could break compatibility. In practice, it shouldn't
happen though, as clients shouldn't rely on timing characteristics of
the events. That is, a client relying that the guest is not running
when the event arrives may break if the event arrives after the guest
is already running.

This commit also adds the missing documentation for the WAKEUP event.

Signed-off-by: Luiz Capitulino <address@hidden>
Acked-by: Gerd Hoffmann <address@hidden>


  Commit: cb8900fe0d0b5ea33fc31a01b1c4fb41dd6368aa
      
https://github.com/qemu/qemu/commit/cb8900fe0d0b5ea33fc31a01b1c4fb41dd6368aa
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M QMP/qmp-events.txt

  Log Message:
  -----------
  qmp: qmp-events.txt: put events in alphabetical order

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Acked-by: Gerd Hoffmann <address@hidden>


  Commit: 67e3cf2664b3fc858a895d1e0e4b8d81c3400823
      
https://github.com/qemu/qemu/commit/67e3cf2664b3fc858a895d1e0e4b8d81c3400823
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M QMP/qmp-events.txt

  Log Message:
  -----------
  qmp: qmp-events.txt: add missing doc for the SUSPEND event

Signed-off-by: Luiz Capitulino <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Acked-by: Gerd Hoffmann <address@hidden>


  Commit: 25df49f6eb113081f48fdb3a3dd17bf1c0b25600
      
https://github.com/qemu/qemu/commit/25df49f6eb113081f48fdb3a3dd17bf1c0b25600
  Author: Luiz Capitulino <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M QMP/qmp-events.txt
    M hw/acpi.c
    M monitor.c
    M monitor.h

  Log Message:
  -----------
  qmp: add SUSPEND_DISK event

Emitted when the guest makes a request to enter S4 state.

There are three possible ways of having this event, as described here:

 http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg02307.html

I've decided to add a new event and make it indepedent of SHUTDOWN.
This means that the SHUTDOWN event will eventually follow the
SUSPEND_DISK event.

I've choosen this way because of two reasons:

 1. Having an indepedent event makes it possible to query for its
    existence by using query-events

 2. In the future, we may allow the user to change what QEMU should
    do as a result of the guest entering S4. So it's a good idea to
    keep both events separated

Signed-off-by: Luiz Capitulino <address@hidden>


  Commit: 1daa31b9dbec60a7a06690749d73ddeeb35f506d
      
https://github.com/qemu/qemu/commit/1daa31b9dbec60a7a06690749d73ddeeb35f506d
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qapi-schema.json
    M qmp-commands.hx
    M qmp.c

  Log Message:
  -----------
  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 <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>


  Commit: 5192082097549c5b3aa7c913c6853d97a68172cb
      
https://github.com/qemu/qemu/commit/5192082097549c5b3aa7c913c6853d97a68172cb
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qapi-schema.json

  Log Message:
  -----------
  qapi: mark QOM commands stable

We've had a cycle to tweak.  It is time to commit to supporting them.

Signed-off-by: Anthony Liguori <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>


  Commit: 01d3c80d6876c7de6b07bee92b1b2440b48e60c9
      
https://github.com/qemu/qemu/commit/01d3c80d6876c7de6b07bee92b1b2440b48e60c9
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qapi-schema.json
    M qmp-commands.hx
    M vl.c

  Log Message:
  -----------
  qapi: add query-machines command

This provides the same output as -M ? but in a structured way.

Signed-off-by: Anthony Liguori <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>


  Commit: 6ee373a0032b8fa6b630c6df9cd6618a7a02902b
      
https://github.com/qemu/qemu/commit/6ee373a0032b8fa6b630c6df9cd6618a7a02902b
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M compiler.h

  Log Message:
  -----------
  compiler: add macro for GCC weak symbols

This lets us provide a default implementation of a symbol which targets can
override.

Signed-off-by: Anthony Liguori <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>


  Commit: e4e31c6324af480a22bf4150266b278368eaa336
      
https://github.com/qemu/qemu/commit/e4e31c6324af480a22bf4150266b278368eaa336
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M qapi-schema.json
    M qmp-commands.hx
    M qmp.c

  Log Message:
  -----------
  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
command that fails with a QERR_NOT_SUPPORTED error code.  Targets can then
override and implement this command if it makes sense for them.

Signed-off-by: Anthony Liguori <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>


  Commit: e3966126d077ef60997f651d8e42b71c623b44a6
      
https://github.com/qemu/qemu/commit/e3966126d077ef60997f651d8e42b71c623b44a6
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M target-i386/cpu.c

  Log Message:
  -----------
  target-i386: add implementation of query-cpu-definitions (v2)

Signed-off-by: Anthony Liguori <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>


  Commit: 70b7660a4ed0ca3891ee51bda78e10b4c36cd358
      
https://github.com/qemu/qemu/commit/70b7660a4ed0ca3891ee51bda78e10b4c36cd358
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M target-ppc/translate_init.c

  Log Message:
  -----------
  target-ppc: add implementation of query-cpu-definitions (v2)

Signed-off-by: Anthony Liguori <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>


  Commit: 6a1f9d0c1fbf186d3d68cb2af43d047637c93072
      
https://github.com/qemu/qemu/commit/6a1f9d0c1fbf186d3d68cb2af43d047637c93072
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M default-configs/arm-softmmu.mak
    M hw/Makefile.objs
    M hw/arm/Makefile.objs
    M hw/armv7m.c
    M hw/armv7m_nvic.c
    M hw/sd.c
    M hw/sd.h
    M hw/ssd0323.c

  Log Message:
  -----------
  Merge remote-tracking branch 'pmaydell/arm-devs.next' into staging

* pmaydell/arm-devs.next:
  arm: Move some ARM devices into libhw
  ssd0323: abort() instead of exit(1) on error.
  hw/sd.c: make sd_wp_addr() return bool
  hw/sd.c: make sd_dataready() return bool
  hw/sd.c: convert binary variables to bool
  hw/sd.c: introduce wrapper for conversion address to wp group
  hw/sd.c: make sd_wp_addr() accept 64 bit address argument
  hw/sd.c: convert wp_groups in SDState to bitfield
  armv7m: Guard against no -kernel argument
  hw/armv7m_nvic: Fix incorrect default for num-irqs property


  Commit: ac839ccd8c30fe5706cc43f00e056049d6e55377
      
https://github.com/qemu/qemu/commit/ac839ccd8c30fe5706cc43f00e056049d6e55377
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M Makefile.objs
    M arch_init.c
    M cutils.c
    A docs/xbzrle.txt
    M hmp-commands.hx
    M hmp.c
    M hmp.h
    A include/qemu/page_cache.h
    M migration.c
    M migration.h
    M monitor.c
    A page_cache.c
    M qapi-schema.json
    M qemu-common.h
    M qmp-commands.hx
    M savevm.c

  Log Message:
  -----------
  Merge remote-tracking branch 'quintela/migration-next-20120808' into staging

* quintela/migration-next-20120808:
  Restart optimization on stage3 update version
  Add XBZRLE statistics
  Add migration accounting for normal and duplicate pages
  Change total_time to total-time in MigrationStats
  Add migrate_set_cache_size command
  Add XBZRLE to ram_save_block and ram_save_live
  Add xbzrle_encode_buffer and xbzrle_decode_buffer functions
  Add uleb encoding/decoding functions
  Add cache handling functions
  Add XBZRLE documentation
  Add migrate-set-capabilities
  Add migration capabilities


  Commit: 633decd71119a4293e5e53e6059026c517a8bef0
      
https://github.com/qemu/qemu/commit/633decd71119a4293e5e53e6059026c517a8bef0
  Author: Anthony Liguori <address@hidden>
  Date:   2012-08-13 (Mon, 13 Aug 2012)

  Changed paths:
    M Makefile.objs
    M QMP/qmp-events.txt
    M QMP/qmp-spec.txt
    M block.c
    M block_int.h
    M compiler.h
    M configure
    M docs/writing-qmp-commands.txt
    M error.c
    M error.h
    R error_int.h
    M hmp.c
    M hmp.h
    M hw/acpi.c
    M migration-tcp.c
    M monitor.c
    M monitor.h
    M nbd.c
    M qapi-schema.json
    M qapi/qmp-core.h
    M qapi/qmp-dispatch.c
    M qemu-char.c
    M qemu-ga.c
    M qemu-sockets.c
    M qemu_socket.h
    M qerror.c
    M qerror.h
    M qmp-commands.hx
    M qmp.c
    M scripts/qapi-commands.py
    M scripts/qapi-types.py
    M target-i386/cpu.c
    M target-ppc/translate_init.c
    M ui/vnc.c
    M vl.c

  Log Message:
  -----------
  Merge remote-tracking branch 'qmp/queue/qmp' into staging

* qmp/queue/qmp: (48 commits)
  target-ppc: add implementation of query-cpu-definitions (v2)
  target-i386: add implementation of query-cpu-definitions (v2)
  qapi: add query-cpu-definitions command (v2)
  compiler: add macro for GCC weak symbols
  qapi: add query-machines command
  qapi: mark QOM commands stable
  qmp: introduce device-list-properties command
  qmp: add SUSPEND_DISK event
  qmp: qmp-events.txt: add missing doc for the SUSPEND event
  qmp: qmp-events.txt: put events in alphabetical order
  qmp: emit the WAKEUP event when the guest is put to run
  qmp: don't emit the RESET event on wakeup from S3
  scripts: qapi-commands.py: qmp-commands.h: include qdict.h
  docs: writing-qmp-commands.txt: update error section
  error, qerror: drop QDict member
  qerror: drop qerror_table and qerror_format()
  error, qerror: pass desc string to error calls
  error: drop error_get_qobject()/error_set_qobject()
  qemu-ga: switch to the new error format on the wire
  qmp: switch to the new error format on the wire
  ...


Compare: https://github.com/qemu/qemu/compare/d517872ec289...633decd71119

reply via email to

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