Revision 97577fd4 include/sysemu/kvm.h

b/include/sysemu/kvm.h
270 270

  
271 271
uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function,
272 272
                                      uint32_t index, int reg);
273
void kvm_cpu_synchronize_state(CPUState *cpu);
274

  
275
/* generic hooks - to be moved/refactored once there are more users */
276

  
277
static inline void cpu_synchronize_state(CPUState *cpu)
278
{
279
    if (kvm_enabled()) {
280
        kvm_cpu_synchronize_state(cpu);
281
    }
282
}
283 273

  
284 274
#if !defined(CONFIG_USER_ONLY)
285 275
int kvm_physical_memory_addr_from_host(KVMState *s, void *ram_addr,
......
288 278

  
289 279
#endif /* NEED_CPU_H */
290 280

  
281
void kvm_cpu_synchronize_state(CPUState *cpu);
291 282
void kvm_cpu_synchronize_post_reset(CPUState *cpu);
292 283
void kvm_cpu_synchronize_post_init(CPUState *cpu);
293 284

  
285
/* generic hooks - to be moved/refactored once there are more users */
286

  
287
static inline void cpu_synchronize_state(CPUState *cpu)
288
{
289
    if (kvm_enabled()) {
290
        kvm_cpu_synchronize_state(cpu);
291
    }
292
}
293

  
294 294
static inline void cpu_synchronize_post_reset(CPUState *cpu)
295 295
{
296 296
    if (kvm_enabled()) {

Also available in: Unified diff