xref: /illumos-kvm-cmd/target-ia64/machine.c (revision 68396ea9)
1 #include "hw/hw.h"
2 #include "hw/boards.h"
3 
4 #include "exec-all.h"
5 #include "qemu-kvm.h"
6 
7 void kvm_arch_save_mpstate(CPUState *env);
8 void kvm_arch_load_mpstate(CPUState *env);
9 
cpu_save(QEMUFile * f,void * opaque)10 void cpu_save(QEMUFile *f, void *opaque)
11 {
12     CPUState *env = opaque;
13 
14     if (kvm_enabled()) {
15         kvm_arch_save_mpstate(env);
16     }
17 }
18 
cpu_load(QEMUFile * f,void * opaque,int version_id)19 int cpu_load(QEMUFile *f, void *opaque, int version_id)
20 {
21     CPUState *env = opaque;
22 
23     if (kvm_enabled()) {
24         kvm_arch_load_mpstate(env);
25     }
26     return 0;
27 }
28 
29 extern QEMUMachine ipf_machine;
30 
ipf_machine_init(void)31 static void ipf_machine_init(void)
32 {
33     qemu_register_machine(&ipf_machine);
34 }
35 
36 machine_init(ipf_machine_init);
37