qemu/target-ppc
David Gibson d67d40ea07 target-ppc: Add mechanism for synchronizing SPRs with KVM
Currently when runing under KVM on ppc, we synchronize a certain number of
vital SPRs to KVM through the SET_SREGS call.  This leaves out quite a lot
of important SPRs which are maintained in KVM.  It would be helpful to
have their contents in qemu for debugging purposes, and when we implement
migration it will be vital, since they include important guest state that
will need to be restored on the target.

This patch sets up for synchronization of any registers supported by the
KVM ONE_REG calls.  A new variant on spr_register() allows a ONE_REG id to
be stored with the SPR information.  When we set/get information to KVM
we also synchronize any SPRs so registered.

For now we set this mechanism up to synchronize a handful of important
registers that already have ONE_REG IDs, notably the DAR and DSISR.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
2013-03-08 21:04:52 +01:00
..
cpu-models.c target-ppc: Fix remaining microcontroller typos among models 2013-03-08 21:04:52 +01:00
cpu-models.h target-ppc: Split model definitions out of translate_init.c 2013-03-08 21:04:52 +01:00
cpu-qom.h target-ppc: Convert CPU definitions 2013-03-08 21:04:51 +01:00
cpu.h target-ppc: Add mechanism for synchronizing SPRs with KVM 2013-03-08 21:04:52 +01:00
excp_helper.c PPC: Bring EPR support closer to reality 2013-01-07 17:37:11 +01:00
fpu_helper.c ppc: Add missing break 2012-06-24 01:04:43 +02:00
helper_regs.h
helper.h target-ppc: Use mul*2 in mulh* insns 2013-02-23 17:25:30 +00:00
int_helper.c target-ppc: Split out SO, OV, CA fields from XER 2013-02-23 17:25:30 +00:00
kvm_ppc.c softmmu: move include files to include/sysemu/ 2012-12-19 08:32:45 +01:00
kvm_ppc.h PPC: KVM: Add support for EPR with KVM 2013-01-18 19:06:57 +01:00
kvm.c target-ppc: Add mechanism for synchronizing SPRs with KVM 2013-03-08 21:04:52 +01:00
machine.c target-ppc: Split out SO, OV, CA fields from XER 2013-02-23 17:25:30 +00:00
Makefile.objs target-ppc: Split model definitions out of translate_init.c 2013-03-08 21:04:52 +01:00
mem_helper.c PPC: Unify dcbzl code path 2013-02-01 01:52:02 +01:00
mfrom_table_gen.c
mfrom_table.c
misc_helper.c ppc: Move misc helpers from helper.c to misc_helper.c 2012-06-24 01:04:43 +02:00
mmu_helper.c target-ppc: Fix target_ulong vs. hwaddr format mismatches 2013-02-01 10:43:41 -06:00
STATUS
timebase_helper.c ppc: Avoid AREG0 for timebase helpers 2012-06-24 01:04:43 +02:00
translate_init.c target-ppc: Add mechanism for synchronizing SPRs with KVM 2013-03-08 21:04:52 +01:00
translate.c gen-icount.h: Rename gen_icount_start/end to gen_tb_start/end 2013-03-03 14:29:08 +00:00