Revision ea375f9a kvm.h

b/kvm.h
82 82

  
83 83
int kvm_arch_get_registers(CPUState *env);
84 84

  
85
int kvm_arch_put_registers(CPUState *env);
85
/* state subset only touched by the VCPU itself during runtime */
86
#define KVM_PUT_RUNTIME_STATE   1
87
/* state subset modified during VCPU reset */
88
#define KVM_PUT_RESET_STATE     2
89
/* full state set, modified during initialization or on vmload */
90
#define KVM_PUT_FULL_STATE      3
91

  
92
int kvm_arch_put_registers(CPUState *env, int level);
86 93

  
87 94
int kvm_arch_init(KVMState *s, int smp_cpus);
88 95

  
......
126 133
uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function,
127 134
                                      int reg);
128 135
void kvm_cpu_synchronize_state(CPUState *env);
136
void kvm_cpu_synchronize_post_reset(CPUState *env);
137
void kvm_cpu_synchronize_post_init(CPUState *env);
129 138

  
130 139
/* generic hooks - to be moved/refactored once there are more users */
131 140

  
......
136 145
    }
137 146
}
138 147

  
148
static inline void cpu_synchronize_post_reset(CPUState *env)
149
{
150
    if (kvm_enabled()) {
151
        kvm_cpu_synchronize_post_reset(env);
152
    }
153
}
154

  
155
static inline void cpu_synchronize_post_init(CPUState *env)
156
{
157
    if (kvm_enabled()) {
158
        kvm_cpu_synchronize_post_init(env);
159
    }
160
}
161

  
139 162
#endif

Also available in: Unified diff