summaryrefslogtreecommitdiffstats
path: root/qerror.h
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a 'client_add' monitor command accepting an open FDDaniel P. Berrange2011-07-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 the UNIX domain socket, can then connect to QEMU's VNC server by passing an open FD to libvirt, which passes it onto QEMU. { "execute": "get_fd", "arguments": { "fdname": "myclient" } } { "return": {} } { "execute": "add_client", "arguments": { "protocol": "vnc", "fdname": "myclient", "skipauth": true } } { "return": {} } In this case 'protocol' can be 'vnc' or 'spice', or the name of a character device (eg from -chardev id=XXXX) The 'skipauth' parameter can be used to skip any configured VNC authentication scheme, which is useful if the mgmt layer talking to the monitor has already authenticated the client in another way. * console.h: Define 'vnc_display_add_client' method * monitor.c: Implement 'client_add' command * qemu-char.c, qemu-char.h: Add 'qemu_char_add_client' method * qerror.c, qerror.h: Add QERR_ADD_CLIENT_FAILED * qmp-commands.hx: Declare 'client_add' command * ui/vnc.c: Implement 'vnc_display_add_client' method Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* guest agent: add guest agent RPCs/commandsMichael Roth2011-07-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 guest-fsfreeze-freeze guest-fsfreeze-thaw guest-fsfreeze-status The input/output specification for these commands are documented in the schema. Example usage: host: qemu -device virtio-serial \ -chardev socket,path=/tmp/vs0.sock,server,nowait,id=qga0 \ -device virtserialport,chardev=qga0,name=org.qemu.quest_agent.0 ... echo "{'execute':'guest-info'}" | socat stdio unix-connect:/tmp/qga0.sock guest: qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0 \ -p /var/run/qemu-guest-agent.pid -d Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
* qapi: add QMP input visitorMichael Roth2011-07-211-0/+3
| | | | | | | | | | | 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 to the corresponding C functions. Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
* Merge remote-tracking branch 'qmp/for-anthony' into stagingAnthony Liguori2011-06-081-0/+3
|\
| * QMP: QError: New QERR_UNSUPPORTEDLai Jiangshan2011-06-011-0/+3
| | | | | | | | | | | | New QERR_UNSUPPORTED for unsupported commands or requests. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* | json-parser: propagate error from parserAnthony Liguori2011-06-071-0/+3
| | | | | | | | | | Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | QError: Introduce qerror_format()Luiz Capitulino2011-06-071-0/+1
|/ | | | | | | | | Will be used by new error propagation framework to convert Error objects into human-readable form. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Make VNC support optionalJes Sorensen2011-03-221-0/+3
| | | | | | | Per default VNC is enabled. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qerror: Add QERR_UNKNOWN_BLOCK_FORMAT_FEATUREKevin Wolf2011-02-101-0/+3
| | | | | Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
* pci: allow devices being tagged as not hotpluggable.Gerd Hoffmann2011-01-101-0/+3
| | | | | | | | | 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 <kraxel@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
* Use GCC_FMT_ATTR (format checking)Stefan Weil2010-10-031-1/+1
| | | | | Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Replace most gcc format attributes by macro GCC_FMT_ATTR (format checking)Stefan Weil2010-10-031-2/+1
| | | | | | | | | | | | | | | | | 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)) because QEMU always uses standard format strings (even with mingw32). The patch replaces format attribute printf / __printf__ by macro GCC_FMT_ATTR which uses gnu_printf if supported. It also removes an #ifdef __GNUC__ (not needed any longer). Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* migration: Accept 'cont' only after successful incoming migrationAmit Shah2010-07-301-0/+3
| | | | | | | | | | | | | | | | | 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. Ensure that a VM started with '-incoming' is only run when an incoming migration successfully completes. A new qerror, QERR_MIGRATION_EXPECTED, is added to signal that 'cont' failed due to no incoming migration has been attempted yet. Reported-by: Laine Stump <laine@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com> Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* QError: Introduce QERR_QMP_EXTRA_MEMBERLuiz Capitulino2010-07-011-0/+3
| | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* Fix qtypes' licensesLuiz Capitulino2010-05-191-1/+1
| | | | | | | | - 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 <lcapitulino@redhat.com>
* QError: New QERR_QMP_BAD_INPUT_OBJECT_MEMBERLuiz Capitulino2010-04-261-0/+3
| | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* error: New QERR_DEVICE_IN_USEMarkus Armbruster2010-04-181-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* error: New QERR_INVALID_PARAMETER_VALUEMarkus Armbruster2010-04-181-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* error: New QERR_DUPLICATE_IDMarkus Armbruster2010-04-181-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* error: Put error definitions back in alphabetical orderMarkus Armbruster2010-04-181-3/+5
| | | | | | | Add suitable comments to help keerp them in order. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* error: Move qerror_report() from qemu-error.[ch] to qerror.[ch]Markus Armbruster2010-03-271-0/+5
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* QError: New QERR_DEVICE_NOT_ENCRYPTEDShahar Havivi2010-03-171-0/+3
| | | | | Signed-off-by: Shahar Havivi <shaharh@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* error: New QERR_NO_BUS_FOR_DEVICEMarkus Armbruster2010-03-161-0/+3
|
* error: New QERR_DEVICE_INIT_FAILEDMarkus Armbruster2010-03-161-0/+3
|
* error: New QERR_BUS_NO_HOTPLUGMarkus Armbruster2010-03-161-0/+3
|
* error: New QERR_BAD_BUS_FOR_DEVICEMarkus Armbruster2010-03-161-0/+3
|
* error: New QERR_DEVICE_NO_BUSMarkus Armbruster2010-03-161-0/+3
|
* error: New QERR_DEVICE_MULTIPLE_BUSSESMarkus Armbruster2010-03-161-0/+3
|
* error: New QERR_BUS_NOT_FOUNDMarkus Armbruster2010-03-161-0/+3
|
* error: New QERR_PROPERTY_VALUE_NOT_FOUNDMarkus Armbruster2010-03-161-0/+3
|
* error: New QERR_PROPERTY_VALUE_IN_USEMarkus Armbruster2010-03-161-0/+3
|
* error: New QERR_PROPERTY_VALUE_BADMarkus Armbruster2010-03-161-0/+3
|
* error: New QERR_PROPERTY_NOT_FOUNDMarkus Armbruster2010-03-161-0/+3
|
* error: Polish human-readable error descriptionsMarkus Armbruster2010-03-161-7/+7
| | | | Also put error definitions in alphabetical order
* error: Infrastructure to track locations for error reportingMarkus Armbruster2010-03-161-1/+3
| | | | | | | | | | | | | | | | | | 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 accessors. Print it in error_report(). Store it in QError, and print it in qerror_print(). Store it in QemuOpt, for use by qemu_opts_foreach(). This makes error_report() do the right thing when it runs within qemu_opts_foreach(). We may still have to store it in other data structures holding user input for better error messages. Left for another day.
* Revert "QError: New QERR_INVALID_CPU_INDEX"Markus Armbruster2010-02-031-3/+0
| | | | | | | This reverts commit 64a34bb14c0e358a6b2f14805e59ef25bf62d6d5. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_INVALID_CPU_INDEXMarkus Armbruster2010-01-261-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_OPEN_FILE_FAILEDMarkus Armbruster2010-01-261-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fix recently added QERR_ definitionsMarkus Armbruster2009-12-121-4/+4
| | | | | | | | | Commits c7c338c4, 41471a23, 7a046f5f and a488be27 used lower_case_with_underscores for class values. Existing usage CamelCase. ChangeToThatForConsistency. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QMP: add human-readable description to error responseMarkus Armbruster2009-12-071-0/+2
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_TOO_MANY_FILESMarkus Armbruster2009-12-071-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* New QERR_INVALID_PARAMETERMarkus Armbruster2009-12-071-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_FD_NOT_SUPPLIEDMarkus Armbruster2009-12-071-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_FD_NOT_FOUNDMarkus Armbruster2009-12-071-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_VNC_SERVER_FAILEDMarkus Armbruster2009-12-071-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_SET_PASSWD_FAILEDMarkus Armbruster2009-12-071-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_INVALID_BLOCK_FORMATMarkus Armbruster2009-12-071-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_DEVICE_NOT_REMOVABLEMarkus Armbruster2009-12-071-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_DEVICE_LOCKEDMarkus Armbruster2009-12-071-0/+3
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: Put error definitions in alphabetical orderMarkus Armbruster2009-12-071-15/+15
| | | | | | | Also fix the odd typoe and clean up whitespace. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
OpenPOWER on IntegriCloud