Received: from eggs.gnu.org ([140.186.70.92]:41666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R27e8-0002S9-Cr for qemu-devel@nongnu.org; Fri, 09 Sep 2011 16:25:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R27e7-0001q1-4e for qemu-devel@nongnu.org; Fri, 09 Sep 2011 16:25:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R27e6-0001pw-PW for qemu-devel@nongnu.org; Fri, 09 Sep 2011 16:25:55 -0400 From: Luiz Capitulino Date: Fri, 9 Sep 2011 17:25:37 -0300 Message-Id: <1315599946-27081-1-git-send-email-lcapitulino@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v5 0/9]: Introduce the RunState type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, aliguori@us.ibm.com, jan.kiszka@siemens.com, armbru@redhat.com, amit.shah@redhat.com, vilanova@ac.upc.edu It replaces the VMSTOP macros and allows us to drop some global variables. Additionally, the problem with issuing 'cont' when the VM is in bad state is addressed and we make the current state available in QMP and HMP. ** IMPORTANT: patch 04/09 is a new addition, it needs careful review. This is breaking every few days due to changes in master, let's try to review and merge it ASAP. changelog --------- v5 o Rebase on top of latest master o Use the state transition table as suggested by Llu=C3=ADs Vilanova o Minor reorg in the code to accommodate the new tables v4 o Rebase on top of latest master o Fix qemu_system_vmstop_request() to take a RunState argument o Drop RSTATE_RESTORE_FAILED, it's not currently used o Check for valid transitions (will abort on invalid ones) v3 o Rebase on top of latest master o Fix a spice VM change state handler which hasn't been converted o Turn runstate_get() into runstate_check() o Rename vm_is_running() to runstate_is_running() o Other minor renames and log improvements v2 o Rename the new type from QemuState to RunState (also renames related functions) o Rename the enum values to contain proper word seperation o Redo patch 'Monitor: Don't allow cont on bad VM state' to not use a glo= bal variable o Make the current VM state also available in HMP o Improve some commit logs a bit audio/audio.c | 2 +- cpus.c | 20 +++--- cpus.h | 1 - gdbstub.c | 34 ++++++------ hw/etraxfs_dma.c | 2 +- hw/ide/ahci.c | 2 +- hw/ide/core.c | 4 +- hw/ide/internal.h | 3 +- hw/ide/pci.c | 2 +- hw/kvmclock.c | 5 +- hw/qxl.c | 5 +- hw/scsi-disk.c | 4 +- hw/virtio-blk.c | 5 +- hw/virtio.c | 4 +- hw/watchdog.c | 2 +- kvm-all.c | 2 +- migration.c | 14 +++-- monitor.c | 22 +++++-- qemu-timer.c | 9 ++- qerror.c | 4 + qerror.h | 3 + qmp-commands.hx | 19 ++++++- savevm.c | 8 +- sysemu.h | 42 +++++++++----- target-i386/kvm.c | 4 +- ui/sdl.c | 6 +- ui/spice-display.c | 3 +- ui/spice-display.h | 4 +- vl.c | 156 ++++++++++++++++++++++++++++++++++++++++++++++= ------ xen-all.c | 8 ++- 30 files changed, 290 insertions(+), 109 deletions(-)