]> git.proxmox.com Git - qemu.git/commit - exec.c
cpu: Register VMStateDescription through CPUState
authorAndreas Färber <afaerber@suse.de>
Sun, 20 Jan 2013 19:23:22 +0000 (20:23 +0100)
committerAndreas Färber <afaerber@suse.de>
Tue, 12 Mar 2013 09:35:54 +0000 (10:35 +0100)
commitb170fce3dd06372f7bfec9a780ebcb1fce6d57e4
tree2a182ba2a9ec97f929c90dbc2a674a59bc24511a
parentc71c3e99b8897323af8c2fe0b9851610cd148538
cpu: Register VMStateDescription through CPUState

In comparison to DeviceClass::vmsd, CPU VMState is split in two,
"cpu_common" and "cpu", and uses cpu_index as instance_id instead of -1.
Therefore add a CPU-specific CPUClass::vmsd field.

Unlike the legacy CPUArchState registration, rather register CPUState.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
exec.c
include/qom/cpu.h