qemu/hw/ide
Luiz Capitulino 1dfb4dd993 Replace the VMSTOP macros with a proper state type
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>
2011-09-15 16:39:32 -03:00
..
ahci.c Replace the VMSTOP macros with a proper state type 2011-09-15 16:39:32 -03:00
ahci.h ahci: Remove unused struct member 2011-09-12 15:17:22 +02:00
atapi.c ide/atapi: Don't fail eject when tray is already open 2011-09-12 15:17:21 +02:00
cmd646.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
core.c Replace the VMSTOP macros with a proper state type 2011-09-15 16:39:32 -03:00
ich.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
internal.h Replace the VMSTOP macros with a proper state type 2011-09-15 16:39:32 -03:00
isa.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
macio.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
microdrive.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
mmio.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
pci.c Replace the VMSTOP macros with a proper state type 2011-09-15 16:39:32 -03:00
pci.h ide: convert to memory API 2011-08-08 10:15:54 -05:00
piix.c xen: Clean up pci_piix3_xen_ide_unplug()'s test for "not a CD" 2011-09-06 11:24:07 +02:00
qdev.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
via.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00