Statistics
| Branch: | Revision:

root / qerror.c @ c09015dd

History | View | Annotate | Download (15 kB)

# Date Author Comment
6aced82c 12/19/2011 06:27 pm Paolo Bonzini

qom: introduce QERR_PROPERTY_VALUE_OUT_OF_RANGE

This will be used when reject invalid values for integer fields that
are less than 64-bits wide.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

44677ded 12/15/2011 05:20 pm Anthony Liguori

qom: add new dynamic property infrastructure based on Visitors (v2)

qdev properties are settable only during construction and static to classes.
This isn't flexible enough for QOM.

This patch introduces a property interface for qdev that provides dynamic...

9423a2e8 12/14/2011 03:59 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches-next' into staging

e7d81004 12/14/2011 01:09 pm Stefan Weil

Fix spelling in comments, documentation and messages

accidently->accidentally
annother->another
choosen->chosen
consideres->considers
decriptor->descriptor
developement->development
paramter->parameter
preceed->precede
preceeding->preceding
priviledge->privilege...

abd6cf6d 12/13/2011 01:06 am Michael Roth

guest agent: add RPC blacklist command-line option

This adds a command-line option, -b/--blacklist, that accepts a
comma-seperated list of RPCs to disable, or prints a list of
available RPCs if passed "?".

In consequence this also adds general blacklisting and RPC listing...

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

QError: Introduce QERR_IO_ERROR

Signed-off-by: Luiz Capitulino <>

eb5d5bea 12/05/2011 05:39 pm Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

f6480ca3 12/05/2011 05:37 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/1.0-fixes' into staging

727f005e 12/05/2011 03:51 pm Zhi Yong Wu

hmp/qmp: add block_set_io_throttle

Signed-off-by: Zhi Yong Wu <>
Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Kevin Wolf <>

e9a0152b 12/04/2011 07:05 pm Aneesh Kumar K.V

hw/9pfs: use migration blockers to prevent live migration when virtfs export path is mounted

Now when you try to migrate with VirtFS export path mounted, you get a proper QMP error:

(qemu) migrate tcp:localhost:4444
Migration is disabled when VirtFS export path '/tmp/' is mounted in the guest using mount_tag 'v_tmp'...

07f35073 12/02/2011 12:50 pm Dong Xu Wang

fix spelling in main directory

Signed-off-by: Dong Xu Wang <>
Signed-off-by: Stefan Hajnoczi <>

1ed520c6 11/21/2011 10:58 pm Anthony Liguori

qed: add migration blocker (v2)

Now when you try to migrate with qed, you get:

(qemu) migrate tcp:localhost:1025
Block format 'qed' used by device 'ide0-hd0' does not support feature 'live migration'
(qemu)

Signed-off-by: Anthony Liguori <>

38e0735e 11/21/2011 10:58 pm Anthony Liguori

ivshmem: use migration blockers to prevent live migration in peer mode (v2)

Now when you try to migrate with ivshmem, you get a proper QMP error:

(qemu) migrate tcp:localhost:1025
Migration is disabled when using feature 'peer mode' in device 'ivshmem'
(qemu)...

bf826328 10/27/2011 04:48 pm Luiz Capitulino

qerror: Add a user string for QERR_FEATURE_DISABLED

Missing from commit 821601ea5b.

Signed-off-by: Luiz Capitulino <>

2a82d936 10/04/2011 05:00 pm Anthony Liguori

qerror: add qerror_report_err()

This provides a bridge between Error (new error mechanism) and QError (old error
mechanism). Errors can be propagated whereas QError cannot.

The minor evilness avoids layering violations. Since QError should go away RSN,...

6667b23f 09/15/2011 10:39 pm Luiz Capitulino

Monitor/QMP: Don't allow cont on bad VM state

We have two states where issuing cont before system_reset can
cause problems: RSTATE_SHUTDOWN (when -no-shutdown is used) and
RSTATE_PANICKED (which only happens with kvm).

This commit fixes that by doing the following when state is...

7267c094 08/21/2011 07:01 am Anthony Liguori

Use glib memory allocation and free functions

qemu_malloc/qemu_free no longer exist after this commit.

Signed-off-by: Anthony Liguori <>

13661089 07/23/2011 07:19 pm Daniel P. Berrange

Introduce a 'client_add' monitor command accepting an open FD

Allow client connections for VNC and socket based character
devices to be passed in over the monitor using SCM_RIGHTS.

One intended usage scenario is to start QEMU with VNC on a
UNIX domain socket. An unprivileged user which cannot access...

ac32c780 07/21/2011 10:48 pm Michael Roth

qerror: add QERR_JSON_PARSE_ERROR to qerror.c

Missing from previous addition of error to qerror.h. Needed for
qerror_format() and friends.

Signed-off-by: Michael Roth <>
Signed-off-by: Luiz Capitulino <>

e3d4d252 07/21/2011 10:48 pm Michael Roth

guest agent: add guest agent RPCs/commands

This adds the initial set of QMP/QAPI commands provided by the guest
agent:

guest-sync
guest-ping
guest-info
guest-shutdown
guest-file-open
guest-file-read
guest-file-write
guest-file-seek
guest-file-flush
guest-file-close...

924f766a 06/08/2011 08:16 pm Anthony Liguori

Merge remote-tracking branch 'qmp/for-anthony' into staging

a12eeaaa 06/07/2011 09:52 pm Luiz Capitulino

QError: Introduce qerror_format_desc()

Refactor non-QError-specific bits out of qerror_human() into general
function that can be used by the error_get_pretty() analogue in the
new error-propagation framework.

Signed-off-by: Luiz Capitulino <>...

87c2f591 06/07/2011 09:52 pm Luiz Capitulino

QError: Introduce qerror_format()

Will be used by new error propagation framework to convert Error objects
into human-readable form.

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

4c5a1e4d 06/01/2011 05:42 pm Lai Jiangshan

QMP: QError: New QERR_UNSUPPORTED

New QERR_UNSUPPORTED for unsupported commands or requests.

Signed-off-by: Luiz Capitulino <>

f54e3641 02/10/2011 02:23 pm Kevin Wolf

qerror: Add QERR_UNKNOWN_BLOCK_FORMAT_FEATURE

Signed-off-by: Kevin Wolf <>
Reviewed-by: Anthony Liguori <>

180c22e1 01/10/2011 01:29 pm Gerd Hoffmann

pci: allow devices being tagged as not hotpluggable.

This patch adds a field to PCIDeviceInfo to tag devices as being
not hotpluggable. Any attempt to plug-in or -out such a device
will throw an error.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Michael S. Tsirkin <>

8b7968f7 10/03/2010 09:34 am Stefan Weil

Use GCC_FMT_ATTR (format checking)

Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

8e84865e 07/31/2010 12:14 am Amit Shah

migration: Accept 'cont' only after successful incoming migration

When a 'cont' is issued on a VM that's just waiting for an incoming
migration, the VM reboots and boots into the guest, possibly corrupting
its storage since it could be shared with another VM running elsewhere....

8754c81e 07/01/2010 08:27 pm Luiz Capitulino

QError: Enhance QERR_DEVICE_NOT_ACTIVE's user desc

The 'by the guest' part is misleading, it could be disabled by
the host too.

We will likely need more surgery if we care for the distinction,
just dropping the problematic part is good enough for now.

Signed-off-by: Luiz Capitulino <>

60d76d7b 07/01/2010 08:27 pm Luiz Capitulino

QError: Introduce QERR_QMP_EXTRA_MEMBER

Signed-off-by: Luiz Capitulino <>

41836a9f 05/19/2010 06:45 pm Luiz Capitulino

Fix qtypes' licenses

- Change from GPL to LGPL
- Add license text when missing
- Minor cosmetic changes to make all headers look the same

Signed-off-by: Luiz Capitulino <>

abaf2f52 04/26/2010 05:17 pm Luiz Capitulino

QError: Improve QERR_QMP_BAD_INPUT_OBJECT desc

Signed-off-by: Luiz Capitulino <>

7dfb6123 04/26/2010 05:17 pm Luiz Capitulino

QError: New QERR_QMP_BAD_INPUT_OBJECT_MEMBER

Signed-off-by: Luiz Capitulino <>

5124eb59 04/19/2010 12:46 am Markus Armbruster

error: New QERR_DEVICE_IN_USE

Signed-off-by: Markus Armbruster <>
Signed-off-by: Luiz Capitulino <>

9d494c4b 04/19/2010 12:46 am Markus Armbruster

error: Put error definitions back in alphabetical order

Add suitable comments to help keerp them in order.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Luiz Capitulino <>

7bc84017 04/19/2010 12:46 am Markus Armbruster

error: New QERR_DUPLICATE_ID

Signed-off-by: Markus Armbruster <>
Signed-off-by: Luiz Capitulino <>

985a3e52 04/19/2010 12:46 am Markus Armbruster

error: New QERR_INVALID_PARAMETER_VALUE

Signed-off-by: Markus Armbruster <>
Signed-off-by: Luiz Capitulino <>

0167f772 03/27/2010 03:30 pm Markus Armbruster

error: Move qerror_report() from qemu-error.[ch] to qerror.[ch]

Signed-off-by: Markus Armbruster <>
Signed-off-by: Aurelien Jarno <>

c8bfe7db 03/27/2010 03:30 pm Markus Armbruster

error: Trim includes in qerror.c

Signed-off-by: Markus Armbruster <>
Signed-off-by: Aurelien Jarno <>

25b28f01 03/17/2010 05:41 pm Shahar Havivi

QError: New QERR_DEVICE_NOT_ENCRYPTED

Signed-off-by: Shahar Havivi <>
Signed-off-by: Anthony Liguori <>

7bbd8237 03/16/2010 06:45 pm Markus Armbruster

error: New QERR_BUS_NOT_FOUND

1ae78718 03/16/2010 06:45 pm Markus Armbruster

error: New QERR_DEVICE_MULTIPLE_BUSSES

07574baf 03/16/2010 06:45 pm Markus Armbruster

error: New QERR_DEVICE_NO_BUS

56e9f563 03/16/2010 06:45 pm Markus Armbruster

error: New QERR_BAD_BUS_FOR_DEVICE

8eae73b5 03/16/2010 06:45 pm Markus Armbruster

error: New QERR_BUS_NO_HOTPLUG

4d9a1a15 03/16/2010 06:45 pm Markus Armbruster

error: New QERR_DEVICE_INIT_FAILED

fab5767f 03/16/2010 06:45 pm Markus Armbruster

error: New QERR_NO_BUS_FOR_DEVICE

9c5eff95 03/16/2010 06:45 pm Markus Armbruster

error: New QERR_PROPERTY_VALUE_IN_USE

84745d68 03/16/2010 06:45 pm Markus Armbruster

error: New QERR_PROPERTY_VALUE_NOT_FOUND

fc5469d8 03/16/2010 06:01 pm Markus Armbruster

error: Polish human-readable error descriptions

Also put error definitions in alphabetical order

c58a35f8 03/16/2010 06:01 pm Markus Armbruster

error: New QERR_PROPERTY_NOT_FOUND

06b4a703 03/16/2010 06:01 pm Markus Armbruster

error: New QERR_PROPERTY_VALUE_BAD

1ecda02b 03/16/2010 05:58 pm Markus Armbruster

error: Replace qemu_error() by error_report()

error_report() terminates the message with a newline. Strip it it
from its arguments.

This fixes a few error messages lacking a newline:
net_handle_fd_param()'s "No file descriptor named %s found", and
tap_open()'s "vnet_hdr=1 requested, but no kernel support for...

827b0813 03/16/2010 05:58 pm Markus Armbruster

error: Infrastructure to track locations for error reporting

New struct Location holds a location. So far, the only location is
LOC_NONE, so this doesn't do anything useful yet.

Passing the current location all over the place would be too
cumbersome. Hide it away in static cur_loc instead, and provide...

2f792016 03/16/2010 05:55 pm Markus Armbruster

error: Move qemu_error & friends into their own header

f34e5688 02/03/2010 08:39 pm Markus Armbruster

Revert "QError: New QERR_INVALID_CPU_INDEX"

This reverts commit 64a34bb14c0e358a6b2f14805e59ef25bf62d6d5.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

64a34bb1 01/26/2010 10:55 pm Markus Armbruster

QError: New QERR_INVALID_CPU_INDEX

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

3da2c808 01/26/2010 10:55 pm Markus Armbruster

QError: New QERR_OPEN_FILE_FAILED

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

41471a23 12/08/2009 12:34 am Markus Armbruster

QError: New QERR_FD_NOT_SUPPLIED

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

7a046f5f 12/08/2009 12:34 am Markus Armbruster

New QERR_INVALID_PARAMETER

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

a488be27 12/08/2009 12:34 am Markus Armbruster

QError: New QERR_TOO_MANY_FILES

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

77e595e7 12/08/2009 12:34 am Markus Armbruster

QMP: add human-readable description to error response

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

a6906e31 12/08/2009 12:34 am Markus Armbruster

QError: New QERR_VNC_SERVER_FAILED

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

c7c338c4 12/08/2009 12:34 am Markus Armbruster

QError: New QERR_FD_NOT_FOUND

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

5cfe0264 12/08/2009 12:34 am Markus Armbruster

QError: New QERR_DEVICE_NOT_REMOVABLE

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

17901e75 12/08/2009 12:34 am Markus Armbruster

QError: New QERR_INVALID_BLOCK_FORMAT

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

7a84cb23 12/08/2009 12:34 am Markus Armbruster

QError: New QERR_SET_PASSWD_FAILED

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

e16a1812 12/08/2009 12:34 am Markus Armbruster

QError: Put error definitions in alphabetical order

Also fix the odd typoe and clean up whitespace.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

b0868380 12/08/2009 12:34 am Markus Armbruster

QError: New QERR_DEVICE_LOCKED

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

0df37c41 12/08/2009 12:34 am Luiz Capitulino

QError: new class for device encrypted errors

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

f6d855c5 12/07/2009 10:04 pm Luiz Capitulino

QError: Add class for invalid passwords

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

d05ac8fa 12/04/2009 10:44 pm Blue Swirl

Add "static" to please Sparse

Signed-off-by: Blue Swirl <>

4b9d4683 12/03/2009 05:41 pm Luiz Capitulino

QError: Add errors needed by QMP

Only QERR_QMP_BAD_INPUT_OBJECT is QMP specific, the others can
be used in different contexts by other subsystems.

Please, note that QERR_JSON_PARSING signals any parsing error
from the json parser. We will need it until the parser gets...

055f6122 12/03/2009 05:41 pm Luiz Capitulino

QError: Add QERR_DEVICE_NOT_ACTIVE

New class for device not active errors.

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

82a60711 12/03/2009 05:41 pm Luiz Capitulino

QError: Add QERR_KVM_MISSING_CAP

New class for KVM unavailable features errors.

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

9f9daf9a 12/03/2009 05:41 pm Luiz Capitulino

Introduce QError

QError is a high-level data type which represents an exception
in QEMU, it stores the following error information:

- class Error class name (eg. "ServiceUnavailable")
- description A detailed error description, which can contain...

357b6156 12/03/2009 05:41 pm Luiz Capitulino

QError: Add QERR_DEVICE_NOT_FOUND

New class for device not found errors.

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