The new interface starts unused, will start being used by the next patches. It provides methods for each accelerator to start a vcpu, kick a vcpu, synchronize state, get cpu virtual clock and elapsed ticks. In qemu_wait_io_event, make it clear that APC is used only for HAX on Windows. Signed-off-by: Claudio Fontana <cfontana@suse.de> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
		
			
				
	
	
		
			26 lines
		
	
	
		
			603 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			603 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * QEMU Hardware accelerators support
 | 
						|
 *
 | 
						|
 * Copyright 2016 Google, Inc.
 | 
						|
 *
 | 
						|
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
 | 
						|
 * See the COPYING file in the top-level directory.
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef QEMU_HW_ACCEL_H
 | 
						|
#define QEMU_HW_ACCEL_H
 | 
						|
 | 
						|
#include "hw/core/cpu.h"
 | 
						|
#include "sysemu/hax.h"
 | 
						|
#include "sysemu/kvm.h"
 | 
						|
#include "sysemu/hvf.h"
 | 
						|
#include "sysemu/whpx.h"
 | 
						|
 | 
						|
void cpu_synchronize_state(CPUState *cpu);
 | 
						|
void cpu_synchronize_post_reset(CPUState *cpu);
 | 
						|
void cpu_synchronize_post_init(CPUState *cpu);
 | 
						|
void cpu_synchronize_pre_loadvm(CPUState *cpu);
 | 
						|
 | 
						|
#endif /* QEMU_HW_ACCEL_H */
 |