- 15 Dec, 2011 1 commit
-
-
Kevin Wolf authored
This is a compatible extension to the snapshot header format that allows saving a 64 bit VM state size. Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
-
- 12 Dec, 2011 4 commits
-
-
Eduardo Habkost authored
This is what qemu_fclose() expects. Changes v1 -> v2: - Add braces to if statement to match coding style Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Eduardo Habkost authored
This is what qemu_fclose() expects. Changes v1 -> v2: - On success, keep returning pclose() return value, instead of always 0. Changes v2 -> v3: - Add braces on if statements to match coding style Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Eduardo Habkost authored
This will make sure no error will be missed as long as callers always check for qemu_fclose() return value. For reference, this is the complete list of qemu_fclose() callers: - exec_close(): already fixed to check for negative values, not -1 - migrate_fd_cleanup(): already fixed to consider only negative values as error, not any non-zero value - exec_accept_incoming_migration(): no return value check (yet) - fd_accept_incoming_migration(): no return value check (yet) - tcp_accept_incoming_migration(): no return value check (yet) - unix_accept_incoming_migration(): no return value check (yet) - do_savevm(): no return value check (yet) - load_vmstate(): no return value check (yet) Changes v1 -> v2: - Add small comment about the need to return previously-spotted errors Changes v2 -> v3: - Add braces to "if" statements to match coding style Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Eduardo Habkost authored
Some code uses qemu_file_set_error() already, so use it everywhere when setting last_error, for consistency. Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- 05 Dec, 2011 1 commit
-
-
Stefan Hajnoczi authored
Many places in QEMU call qemu_aio_flush() to complete all pending asynchronous I/O. Most of these places actually want to drain all block requests but there is no block layer API to do so. This patch introduces the bdrv_drain_all() API to wait for requests across all BlockDriverStates to complete. As a bonus we perform checks after qemu_aio_wait() to ensure that requests really have finished. Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
-
- 02 Dec, 2011 1 commit
-
-
Dong Xu Wang authored
Signed-off-by:
Dong Xu Wang <wdongxu@linux.vnet.ibm.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
- 21 Nov, 2011 1 commit
-
-
Anthony Liguori authored
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) Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- 01 Nov, 2011 1 commit
-
-
Juan Quintela authored
Signed-off-by:
Juan Quintela <quintela@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- 21 Oct, 2011 1 commit
-
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 20 Oct, 2011 11 commits
-
-
Juan Quintela authored
Make *save_live() return negative values when there is one error, and updates all callers to check for the error. Signed-off-by:
Juan Quintela <quintela@redhat.com>
-
Juan Quintela authored
Signed-off-by:
Juan Quintela <quintela@redhat.com>
-
Juan Quintela authored
Now the field contains the last error name, so rename acordingly. Signed-off-by:
Juan Quintela <quintela@redhat.com> Reviewed-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Juan Quintela authored
Now the function returned errno, so it is better the new name. Signed-off-by:
Juan Quintela <quintela@redhat.com> Reviewed-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Juan Quintela authored
make functions propagate errno, instead of just using -EIO. Add a comment about what are the return value of qemu_savevm_state_iterate(). Signed-off-by:
Juan Quintela <quintela@redhat.com>
-
Juan Quintela authored
We normally already have an errno value. When not, abuse EIO. Signed-off-by:
Juan Quintela <quintela@redhat.com>
-
Juan Quintela authored
This reverts commit eb60260d . Conflicts: savevm.c We changed qemu_peek_byte() prototype, just fixed the rejects. Signed-off-by: Juan Quintela<quintela@redhat.com> Reviewed-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Juan Quintela authored
We add qemu_peek_buffer, that is identical to qemu_get_buffer, just that it don't update f->buf_index. We add a paramenter to qemu_peek_byte() to be able to peek more than one byte. Once this is done, to see if we have a subsection we look: - 1st byte is QEMU_VM_SUBSECTION - 2nd byte is a length, and is bigger than section name - 3rd element is a string that starts with section_name So, we shouldn't have false positives (yes, content could still get us wrong but probabilities are really low). v2: - Alex Williamsom found that we could get negative values on index. - Rework code to fix that part. - Rewrite qemu_get_buffer() using qemu_peek_buffer() v3: - return "done" on error case v4: - fix qemu_file_skip() off by one. Signed-off-by:
Juan Quintela <quintela@redhat.com>
-
Juan Quintela authored
Signed-off-by: Juan Quintela<quintela@redhat.com>
-
Juan Quintela authored
This patch will make moving code on next patches and having checkpatch happy easier. Signed-off-by: Juan Quintela<quintela@redhat.com> Reviewed-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Juan Quintela authored
We will need on next patch to be able to lookahead on next patch v2: rename "used" to "pending" (Alex Williams) Signed-off-by: Juan Quintela<quintela@redhat.com> Reviewed-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- 19 Oct, 2011 1 commit
-
-
Luiz Capitulino authored
qemu_savevm_state() has some logic to stop the VM and to (or not to) resume it. But this seems to be a big noop, as qemu_savevm_state() is only called by do_savevm() when the VM is already stopped. So, let's drop qemu_savevm_state()'s stop VM logic. Reviewed-by:
Michael Roth <mdroth@linux.vnet.ibm.com> Reviewed-by:
Kevin Wolf <kwolf@redhat.com> Reviewed-by:
Juan Quintela <quintela@redhat.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com>
-
- 04 Oct, 2011 1 commit
-
-
Luiz Capitulino authored
Next commit will convert the query-status command to use the RunState type as generated by the QAPI. In order to "transparently" replace the current enum by the QAPI one, we have to make some changes to some enum values. As the changes are simple renames, I'll do them in one shot. The changes are: - Rename the prefix from RSTATE_ to RUN_STATE_ - RUN_STATE_SAVEVM to RUN_STATE_SAVE_VM - RUN_STATE_IN_MIGRATE to RUN_STATE_INMIGRATE - RUN_STATE_PANICKED to RUN_STATE_INTERNAL_ERROR - RUN_STATE_POST_MIGRATE to RUN_STATE_POSTMIGRATE - RUN_STATE_PRE_LAUNCH to RUN_STATE_PRELAUNCH - RUN_STATE_PRE_MIGRATE to RUN_STATE_PREMIGRATE - RUN_STATE_RESTORE to RUN_STATE_RESTORE_VM - RUN_STATE_PRE_MIGRATE to RUN_STATE_FINISH_MIGRATE Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com>
-
- 15 Sep, 2011 2 commits
-
-
Luiz Capitulino authored
Use runstate_is_running() instead, which is introduced by this commit. Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com>
-
Luiz Capitulino authored
Today, when notifying a VM state change with vm_state_notify(), we pass a VMSTOP macro as the 'reason' argument. This is not ideal because the VMSTOP macros tell why qemu stopped and not exactly what the current VM state is. One example to demonstrate this problem is that vm_start() calls vm_state_notify() with reason=0, which turns out to be VMSTOP_USER. This commit fixes that by replacing the VMSTOP macros with a proper state type called RunState. Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com>
-
- 06 Sep, 2011 1 commit
-
-
Markus Armbruster authored
savevm and loadvm silently ignore block devices with removable media, such as floppies and SD cards. Rolling back a VM to a previous checkpoint will *not* roll back writes to block devices with removable media. Moreover, bdrv_is_removable() is a confused mess, and wrong in at least one case: it considers "-drive if=xen,media=cdrom -M xenpv" removable. It'll be cleaned up later in this series. Read-only block devices are also ignored, but that's okay. Fix by ignoring only read-only block devices and empty block devices. Signed-off-by:
Markus Armbruster <armbru@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
-
- 21 Aug, 2011 1 commit
-
-
Anthony Liguori authored
qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- 25 Jul, 2011 1 commit
-
-
Blue Swirl authored
Avoid warnings like these by wrapping recv(): CC slirp/ip_icmp.o /src/qemu/slirp/ip_icmp.c: In function 'icmp_receive': /src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror] /usr/local/lib/gcc/i686-mingw32msvc/4.6.0/../../../../i686-mingw32msvc/include/winsock2.h:547:32: note: expected 'char *' but argument is of type 'struct icmp *' Remove also casts used to avoid warnings. Reviewed-by:
Anthony Liguori <aliguori@us.ibm.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
- 20 Jul, 2011 1 commit
-
-
Gerd Hoffmann authored
This allows to easily tag devices as non-migratable, so any attempt to migrate a virtual machine with the device in question active will make migration fail. Signed-off-by:
Gerd Hoffmann <kraxel@redhat.com>
-
- 16 Jun, 2011 1 commit
-
-
Jan Kiszka authored
In case we load the vmstate during incoming migration, we start from a clean, default machine state as we went through system reset before. But if we load from a snapshot, the machine can be in any state. That can cause troubles if loading an older image which does not carry all state information the executing QEMU requires. Hardly any device takes care of this scenario. However, fixing this is trivial. We just need to issue a system reset during loadvm as well. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com>
-
- 08 Jun, 2011 1 commit
-
-
Alexandre Raymond authored
This patch removes all references to signal.h when qemu-common.h is included as they become redundant. Signed-off-by:
Alexandre Raymond <cerbere@gmail.com> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
- 16 Apr, 2011 1 commit
-
-
Stefan Weil authored
helpfull -> helpful usefull -> useful cotrol -> control and a grammar fix. Signed-off-by:
Stefan Weil <weil@mail.berlios.de> Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-
- 15 Apr, 2011 1 commit
-
-
Blue Swirl authored
Move declarations of CPU related functions to cpus.h. Adjust the only user. Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
- 21 Mar, 2011 3 commits
-
-
Juan Quintela authored
commit 82fa39b7 only contains half of the fix. It forgots the save state fix for UINT8 indexes. Anthony, please apply, without this migration using hpet is broken. (only current user). Signed-off-by:
Juan Quintela <quintela@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Paolo Bonzini authored
This was done with: sed -i 's/qemu_get_clock\>/qemu_get_clock_ns/' \ $(git grep -l 'qemu_get_clock\>' ) sed -i 's/qemu_new_timer\>/qemu_new_timer_ns/' \ $(git grep -l 'qemu_new_timer\>' ) after checking that get_clock and new_timer never occur twice on the same line. There were no missed occurrences; however, even if there had been, they would have been caught by the compiler. There was exactly one false positive in qemu_run_timers: - current_time = qemu_get_clock (clock); + current_time = qemu_get_clock_ns (clock); which is of course not in this patch. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
This was done with: sed -i '/get_clock\>.*rt_clock/s/get_clock\>/get_clock_ms/' \ $(git grep -l 'get_clock\>.*rt_clock' ) sed -i '/new_timer\>.*rt_clock/s/new_timer\>/new_timer_ms/' \ $(git grep -l 'new_timer\>.*rt_clock' ) after checking that get_clock and new_timer never occur twice on the same line. There were no missed occurrences; however, even if there had been, they would have been caught by the compiler. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 15 Mar, 2011 1 commit
-
-
Kevin Wolf authored
It already fails, but it didn't tell the user why. Signed-off-by:
Kevin Wolf <kwolf@redhat.com> Reviewed-by:
Juan Quintela <quintela@redhat.com>
-
- 10 Mar, 2011 3 commits
-
-
Juan Quintela authored
Signed-off-by:
Juan Quintela <quintela@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Juan Quintela authored
Signed-off-by:
Juan Quintela <quintela@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Juan Quintela authored
Signed-off-by:
Juan Quintela <quintela@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-