qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] target-mips: port MIPS CPU to VMState
@ 2015-02-20 13:07 Leon Alrae
  2015-02-20 13:07 ` [Qemu-devel] [PATCH v2 1/2] target-mips: replace cpu_save/cpu_load with VMStateDescription Leon Alrae
  2015-02-20 13:07 ` [Qemu-devel] [PATCH v2 2/2] target-mips: add missing MSACSR and restore fp_status and hflags Leon Alrae
  0 siblings, 2 replies; 4+ messages in thread
From: Leon Alrae @ 2015-02-20 13:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: quintela, rth7680, macro, amit.shah, afaerber, aurelien

Hi,

This small patchset converts MIPS CPU to use VMStateDescription:
[1/2]: ports all the MIPS CPU fields to new VMStateDescription structure
[2/2]: adds MSACSR and uses post_load() to restore *fp_status from *CSR
       registers. These changes include ported Maciej's updates made for old
       cpu_load/cpu_save sent some time ago.

I tested them by just checking whether the restored guest system still works
after savevm/loadvm and migrate commands.

This series applies on top of the pending mips-next pull request:
http://patchwork.ozlabs.org/patch/439769/

Comments and suggestions are welcome.

Thanks,
Leon

v2:
* use cc->vmsd rather than dc->vmsd (Andreas Faerber)
* avoid saving TCG-related state (Richard Henderson)

Leon Alrae (2):
  target-mips: replace cpu_save/cpu_load with VMStateDescription
  target-mips: add missing MSACSR and restore fp_status and hflags

 target-mips/cpu-qom.h        |   4 +
 target-mips/cpu.c            |   1 +
 target-mips/cpu.h            |  19 +-
 target-mips/machine.c        | 571 ++++++++++++++++++++-----------------------
 target-mips/msa_helper.c     |  12 +-
 target-mips/translate_init.c |  10 +-
 6 files changed, 288 insertions(+), 329 deletions(-)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-20 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-20 13:07 [Qemu-devel] [PATCH v2 0/2] target-mips: port MIPS CPU to VMState Leon Alrae
2015-02-20 13:07 ` [Qemu-devel] [PATCH v2 1/2] target-mips: replace cpu_save/cpu_load with VMStateDescription Leon Alrae
2015-02-20 13:07 ` [Qemu-devel] [PATCH v2 2/2] target-mips: add missing MSACSR and restore fp_status and hflags Leon Alrae
2015-02-20 15:38   ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).