History | View | Annotate | Download (135.6 kB)
ui: move files to ui/ and include/ui/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
net: reorganize headers
Move public headers to include/net, and leave private headers in net/.Put the virtio headers in include/net/tap.h, removing the multiple copiesthat existed. Leave include/net/tap.h as the interface for NICs, andnet/tap_int.h as the interface for OS-specific parts of the tap backend....
build: kill libdis, move disassemblers to disas/
pci: update all users to look in pci/
update all users so we can remove the makefile hack.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
target-i386: Pass X86CPU to cpu_x86_inject_mce()
Needed for changing run_on_cpu() argument to CPUState.
Signed-off-by: Andreas Färber <afaerber@suse.de>
monitor: Allow add-fd to any specified fd set
The first call to add an fd to an fd set was previously notallowed to choose the fd set ID. The ID was generated asthe first available and ensuing calls could add more fds byspecifying the fd set ID. This change allows users to...
monitor: Enable adding an inherited fd to an fd set
qmp_add_fd() gets an fd that was received over a socket withSCM_RIGHTS and adds it to an fd set. This patch adds supportthat will enable adding an fd that was inherited on thecommand line to an fd set....
monitor: Prevent removing fd from set during init
If an fd is added to an fd set via the command line, and it is notreferenced by another command line option (ie. -drive), then cleanit up after QEMU initialization is complete.
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>...
block: introduce BLOCK_JOB_READY event
Even for jobs that need to be manually completed, management may wantto take care itself of the completion, not requiring the user to issuea command to terminate the job. In this case we want to avoid thatthey poll us continuously, waiting for completion to become available....
Rename target_phys_addr_t to hwaddr
target_phys_addr_t is unwieldly, violates the C standard (_t suffixes arereserved) and its purpose doesn't match the name (most target_phys_addr_taddresses are not target specific). Replace it with a finger-friendly,...
cpu_dump_state: move DUMP_FPU and DUMP_CCOP flags from x86-only to generic
Move the DUMP_FPU and DUMP_CCOP flags for cpu_dump_state() from beingx86-specific flags to being generic ones. This allows us to drop someTARGET_I386 ifdefs in various places, and means that we can (potentially)...
Merge remote-tracking branch 'kwolf/for-anthony' into staging
Merge remote-tracking branch 'qmp/queue/qmp' into staging
Make target_phys_addr_t 64 bits unconditionally
The hassle and compile time overhead of maintaining both 32-bit and 64-bitcapable source isn't worth the tiny performance advantage which is seen ona minority of configurations. Switch to compiling libhw only once, with...
block: introduce block job error
The following behaviors are possible:
'report': The behavior is the same as in 1.1. An I/O error,respectively during a read or a write, will complete the job immediatelywith an error code.
'ignore': An I/O error, respectively during a read or a write, will be...
monitor: add Error * argument to monitor_get_fd
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>
qapi: convert add_client
Also fixes a few issues while there:
1. The fd returned by monitor_get_fd() leaks in most error conditions 2. monitor_get_fd() return value is not checked. Best case we get an error that is not correctly reported, worse case one of the...
Merge remote-tracking branch 'mst/tags/for_anthony' into staging
Merge branch 'spice.v59' of git://anongit.freedesktop.org/spice/qemu
monitor: Rename+move net_handle_fd_param -> monitor_handle_fd_param
This patch renames+moves the net_handle_fd_param() caller used toobtain a file descriptor from either qemu_parse_fd() (the normal case)or from monitor_get_fd() (migration case) into a generically prefixed...
qapi: convert sendkey
Convert 'sendkey' to use QAPI.
QAPI passes key's index of mapping table to qmp_send_key(),not keycode. So we use help functions to convert key/code toindex of key_defs, and 'index' will be converted to 'keycode'inside qmp_send_key()....
qapi: convert screendump
Next commits will update devices to propagate errors.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
monitor: rename keyname '<' to 'less'
There are many maps of keycode 0x56 in pc-bios/keymaps/* pc-bios/keymaps/common:less 0x56 pc-bios/keymaps/common:greater 0x56 shift pc-bios/keymaps/common:bar 0x56 altgr pc-bios/keymaps/common:brokenbar 0x56 shift altgr...
hmp: rename arguments
Rename 'string' to 'keys', rename 'hold_time' to 'hold-time'.
Signed-off-by: Amos Kong <akong@redhat.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
monitor: move key_defs[] table and introduce two help functions
This patch added two help functions to convert key/code to index ofmapping table, those functions will return Q_KEY_CODE_MAX if thecode/key is invalid.
Patch also moved key_defs[] to input.c, and removed useless KeyDef struct....
spice migration: add QEVENT_SPICE_MIGRATE_COMPLETED
When migrating, libvirt queries the migration status, and upon migrationcompletions, it closes the migration src. On the other hand, whenmigration is completed, spice transfers data from the src to destination...
monitor: don't try to initialize json parser when monitor is HMP
Reported-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor: move json init from OPEN event to init
At some point in the past, the OPEN event was changed to be issued from abottom half. This creates a small window whereas a data callback registered ininit may be invoked before the OPEN event has been issued....
monitor: avoid declaring unused variables
Some variables are only used on !win32, declarethem only when used.
This avoids a warning in mingw32 build: CC i386-softmmu/monitor.o/src/qemu/monitor.c: In function 'monitor_fdset_get_fd':/src/qemu/monitor.c:2575: warning: unused variable 'mon_fd_flags'...
block: Enable qemu_open/close to work with fd sets
When qemu_open is passed a filename of the "/dev/fdset/nnn" format (where nnn is the fdset ID), an fd with matching accessmode flags will be searched for within the specified monitorfd set. If the fd is found, a dup of the fd will be returned...
monitor: Clean up fd sets on monitor disconnect
Fd sets are shared by all monitor connections. Fd sets are consideredto be in use while at least one monitor is connected. When the lastmonitor disconnects, all fds that are members of an fd set with no...
qapi: Introduce add-fd, remove-fd, query-fdsets
This patch adds support that enables passing of file descriptorsto the QEMU monitor where they will be stored in specified filedescriptor sets.
A file descriptor set can be used by a client like libvirt to...
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....
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 simplererror format introduced by previous commits.
There are two important (and mostly incompatible) changes:...
monitor: drop unused monitor debug code
In the old QMP days, this code was used to find out QMP commands thatmight be calling monitor_printf() down its call chain.
This is almost impossible to happen today, because the qapi convertedcommands don't even have a monitor object. Besides, it's been more than...
Add migrate_set_cache_size command
Change XBZRLE cache size in bytes (the size should be a power of 2, it will berounded 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...
Add migration capabilities
The management can query the current migration capabilities usingquery-migrate-capabilities QMP command.The user can use 'info migrate_capabilities' HMP command.Currently only XBZRLE capability is available.
Signed-off-by: Orit Wasserman <owasserm@redhat.com>...
monitor: remove unused do_info_trace
Going forward with simpletrace v2 variable size trace records, we cannothave a generic function to print trace event info and therefore thisinterface becomes invalid.
As per Stefan Hajnoczi:
"This command is only available from the human monitor. It's not very...
monitor: Use TARGET_PRI*PHYS to avoid TARGET_PHYS_ADDR_BITS ifdef
Now we have TARGET_PRI*PHYS for printing target_phys_addr_t values,we can use them in monitor.c rather than having duplicate codein two arms of a TARGET_PHYS_ADDR_BITS ifdef.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
qapi: Convert getfd and closefd
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Add rate limiting of RTC_CHANGE, BALLOON_CHANGE & WATCHDOG events
Allow certain event types to be rate limited to avoid floodingmonitor clients. The monitor_protocol_event() method is changedsuch that instead of immediately emitting the event to Monitor...
Add event notification for guest balloon changes
After setting a balloon target value, applications have tocontinually poll 'query-balloon' to determine whether theguest has reacted to this request. The virtio-balloon backendknows exactly when the guest has reacted though, and thus it...
Add 'query-events' command to QMP to query async events
Sometimes it is neccessary for an application to determinewhether a particular QMP event is available, so they candecide whether to use compatibility code instead. Thisintroduces a new 'query-events' command to QMP to do just...
hmp: expr_unary(): check for overflow in strtoul()/strtoull()
It's not checked currently, so something like:
(qemu) balloon -100000000000001111114334234 (qemu)
Will just "work" (in this case the balloon command will get a randomvalue).
Fix it by checking if strtoul()/strtoull() overflowed....
hmp: fix bad value conversion for M type
The M type converts from megabytes to bytes. However, the value can benegative before the conversion, which will lead to a flawed conversion.
For example, this:
(qemu) balloon -1000000000000011 (qemu)
Just "works", but the value passed by the balloon command will be...
qmp: add and use q type specifier
"O" is being used by the transaction and qom-set commands to mean "anyQObject", but it really means "do not validate the argument list".Add a new specifier with the correct meaning.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
monitor: fix client_migrate_info error handling
Report QERR_MISSING_PARAMETER when port is missing. OtherwiseQERR_UNDEFINED_ERROR will occur.
rhbz #795652
Signed-off-by: Yonit Halperin <yhalperi@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
monitor: Remove unused bool field 'qapi' in mon_cmd_t struct
Some minor code cleanup: the 'qapi' bool field in mon_cmd_t isunused, and can be removed.
Signed-off-by: Jeff Cody <jcody@redhat.com>Acked-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Rename CPUState -> CPUArchState
Scripted conversion: for file in .[hc] hw/.[hc] hw/kvm/*.[hc] linux-user/*.[hc] linux-user/m68k/*.[hc] bsd-user/*.[hc] darwin-user/*.[hc] tcg/*/*.[hc] target-*/cpu.h; do sed -i "s/CPUState/CPUArchState/g" $file done...
monitor: Don't access registers through CPUState
Use CPUX86State etc. instead (hand-converted).
Signed-off-by: Andreas Färber <afaerber@suse.de>Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Merge branch 'xtensa' of git://jcmvbkbc.spb.ru/dumb/qemu-xtensa
suspend: add qmp events
Send qmp events on suspend and wakeup so libvirthas a chance to track the vm state.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qmp: add DEVICE_TRAY_MOVED event
It's emitted whenever the tray is moved by the guest or by HMP/QMPcommands.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>Acked-by: Kevin Wolf <kwolf@redhat.com>
Add SPICE support to add_client monitor command
With the acceptance of some new APIs to libspice-server.so itis possible to add support for SPICE to the 'add_client'monitor command, bringing parity with VNC. Since SPICE canuse TLS or plain connections, the command also gains a new...
target-xtensa: implement info tlb monitor command
Command dumps valid ITLB and DTLB entries.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
qmp: add block_job_cancel command
Add block_job_cancel, which stops an active block streaming operation.When the operation has been cancelled the new BLOCK_JOB_CANCELLED eventis emitted.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Acked-by: Luiz Capitulino <lcapitulino@redhat.com>...
qmp: add query-block-jobs
Add query-block-jobs, which shows the progress of ongoing block deviceoperations.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Acked-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qmp: add block_stream command
Add the block_stream command, which starts copy backing file contentsinto the image file. Also add the BLOCK_JOB_COMPLETED QMP event whichis emitted when image streaming completes. Later patches add controlover the background copy speed, cancelation, and querying running...
monitor: expose readline state
HMP is now implemented in terms of QMP. The monitor has a bunch of logic todeal with HMP right now like readline support. Export it from the monitor sowe can consume it in hmp.c.
In short time, hmp.c will take over all of the readline bits....
qerror: Extend QERR_DEVICE_ENCRYPTED
Include the name of the encrypted file.
qapi: Convert change
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
vnc: Simplify vnc_display_password()
Drop the qerror_report() call from it and let its callers set the errorthemselves. This also allows for dropping the 'ret' variable.
qapi: Convert set_password
qapi: Convert expire_password
qapi: Convert pmemsave
qapi: Convert cont
qapi: Convert inject-nmi
qapi: Convert human-monitor-command
qapi: Complete system_powerdown conversion
Commit 5bc465e4b1b6f4582a400c0a7033a1c841744278 converted onlythe HMP part of the system_powerdown command to the QAPI, thiscommit completes it by converting the QMP part too.
qapi: Convert memsave
Please, note that the QMP command has a new 'cpu-index' parameter.
monitor: Fix file_completion() to check for stat() failure
stat() can fail for a file name just read with readdir(). Easiest wayto trigger is a dangling symbolic link --- look ma, no race! When itfails, file_completion() uses sb.st_mode uninitialized. If the...
Sort the help info shown in monitor at runtime
This patch would try sort the command list in monitor at runtime. As a result,command help and help info would show a more friendly sorted command list.For eg:(qemu)helpacl_addacl_policyacl_removeacl_reset...
Conflicts: ui/spice-core.c
Merge remote-tracking branch 'spice/spice.v45' into staging
qapi: Convert query-cpus
qapi: Convert query-block
qapi: Convert query-blockstats
qapi: Convert query-vnc
There are three important remarks in relation to the non-qapi command:
1. This commit also fixes the behavior of the 'query-vnc' and 'info vnc' commands to return an error when qemu is built without VNC support (ie. --disable-vnc). The non-qapi command would return the OK...
qapi: Convert query-spice
qapi: Convert query-balloon
Please, note that some of the code supporting memory statistics isstill around (eg. virtio_balloon_receive_stats() and reset_stats()).
Also, the qmp_query_balloon() function is synchronous and thus doesn'tmake any use of the (not fully working) monitor's asynchronous command...
qapi: Convert query-pci
This also fixes a bug with the old version: QMP would invert device idand vendor id. This would look ok on HMP because it was printing"device:vendor" instead of "vendor:device".
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>...
QMP: Drop the query commands dispatch table
Because QMP development originated in the monitor, it hasinherited the monitor's distinction between query- andnon-query commands.
However, previous commits unified both commands and thedistinction is gone. This commit drops the query commands...
Monitor: do_info(): Drop QMP command handling code
Previous commits converted all existing QMP commands to the QAPI,now each info command does its own QMP call.
Let's then drop all QMP command handling code from do_info().
qapi: Convert query-mice
qapi: Convert query-migrate
Monitor: Make mon_set_cpu() public
Also rename it to monitor_set_cpu().
Monitor: Introduce monitor_get_cpu_index()
Returns 'cur_mons's CPU index. A future commit will use it.
qapi: Convert the cpu command
target-sparc: Change fpr representation to doubles.
This allows a more efficient representation for 64-bit hosts.It should be about the same for 32-bit hosts, as we can stillaccess the individual pieces of the double.
Signed-off-by: Richard Henderson <rth@twiddle.net>
spice: turn client_migrate_info to async
RHBZ 737921Spice client is required to connect to the migration target before/as migrationstarts. Since after migration starts, the target qemu is blocked and cannot accept new spice clientwe trigger the connection to the target upon client_migrate_info command....
monitor: Restrict pic/irq_info to supporting targets
This allows to drop various stubs and move the i8359 into hwlib.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
block: Keep track of devices' I/O status
This commit adds support to the BlockDriverState type to keep trackof devices' I/O status.
There are three possible status: BDRV_IOS_OK (no error), BDRV_IOS_ENOSPC(no space error) and BDRV_IOS_FAILED (any other error). The distinction...
Merge branch 'tracing' of git://repo.or.cz/qemu/stefanha
ppc: booke206: add "info tlb" support
Signed-off-by: Scott Wood <scottwood@freescale.com>Signed-off-by: Alexander Graf <agraf@suse.de>
qapi: Convert stop
qapi: Convert system_reset