Statistics
| Branch: | Revision:

root / qerror.h @ 2a2af967

History | View | Annotate | Download (7.6 kB)

# Date Author Comment
59f971d4 02/14/2012 08:57 pm Paolo Bonzini

qdev: print error message before aborting

qdev_prop_set_* functions are always called by machine init functions
that should know what they're doing, so they abort on error. Still,
an assert(!errp) does not aid debugging. Print an error before aborting....

11e35bfd 02/07/2012 02:52 pm Paolo Bonzini

qom: use object_resolve_path_type for links

This allows to restrict partial matches to objects of the expected
type. It will let people use bare names to reference drives
even though their name might be the same as a device's (e.g.
-drive id=hd0,if=none,... -device ...,drive=hd0,id=hd0)....

019b8cbf 01/26/2012 03:49 pm Marcelo Tosatti

add QERR_BASE_NOT_FOUND

This qerror will be raised when a given streaming base (backing file)
cannot be found.

Signed-off-by: Marcelo Tosatti <>
Signed-off-by: Stefan Hajnoczi <>
Acked-by: Luiz Capitulino <>...

12bd451f 01/26/2012 03:49 pm Stefan Hajnoczi

qmp: add block_stream command

Add the block_stream command, which starts copy backing file contents
into the image file. Also add the BLOCK_JOB_COMPLETED QMP event which
is emitted when image streaming completes. Later patches add control
over the background copy speed, cancelation, and querying running...

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 <>

9737383b 01/18/2012 02:23 pm Stefan Hajnoczi

qerror: add check-qerror.sh to verify alphabetical order

We're supposed to keep qerror definitions and table entries in
alphabetical order. In practice this is not checked.

I haven't found a nice way to integrate this into the makefile yet but
we can at least have this script which verifies that qerrors are in...

c1303596 01/18/2012 02:23 pm Stefan Hajnoczi

qerror: restore alphabetical order over qerrors

Over time these must have gotten out of order. Put everything back in
alphabetical order.

This is purely a clean up. In practice nothing depends on the order.

Signed-off-by: Stefan Hajnoczi <>...

939a1cc3 01/18/2012 02:23 pm Stefan Hajnoczi

block: use proper qerrors in qmp_block_resize

Let's report specific errors so that management tools and users can
identify the problem.

Two new qerrors are needed: * QERR_DEVICE_HAS_NO_MEDIUM for ENOMEDIUM * QERR_DEVICE_IS_READ_ONLY for EACCES

Signed-off-by: Stefan Hajnoczi <>...

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...

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

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'...

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)...

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...

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...

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...

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

qapi: add QMP input visitor

A type of Visiter class that is used to walk a qobject's
structure and assign each entry to the corresponding native C type.
Command marshaling function will use this to pull out QMP command
parameters recieved over the wire and pass them as native arguments...

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

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

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 <>

ef749d07 06/07/2011 09:52 pm Anthony Liguori

json-parser: propagate error from parser

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 <>

821601ea 03/22/2011 03:39 pm Jes Sorensen

Make VNC support optional

Per default VNC is enabled.

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>

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 <>

e5924d89 10/03/2010 09:34 am Stefan Weil

Replace most gcc format attributes by macro GCC_FMT_ATTR (format checking)

Since version 4.4.x, gcc supports additional format attributes.
attribute ((format (gnu_printf, 1, 2)))
should be used instead of
attribute ((format (printf, 1, 2))...

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....

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 <>

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 <>

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

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...

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 <>

bd9d3064 12/12/2009 03:59 pm Markus Armbruster

Fix recently added QERR_ definitions

Commits c7c338c4, 41471a23, 7a046f5f and a488be27 used
lower_case_with_underscores for class values. Existing usage
CamelCase. ChangeToThatForConsistency.

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 <>

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 <>