3 #include "config-host.h"
5 extern int kvm_allowed
;
6 extern int kvm_irqchip
;
16 #include <sys/utsname.h>
19 extern kvm_context_t kvm_context
;
21 extern __thread CPUState
*vcpu_env
;
23 int kvm_arch_qemu_create_context(void)
28 void kvm_arch_load_regs(CPUState
*env
)
33 void kvm_arch_save_regs(CPUState
*env
)
37 int kvm_arch_qemu_init_env(CPUState
*cenv
)
42 int kvm_arch_halt(void *opaque
, int vcpu
)
44 CPUState
*env
= cpu_single_env
;
45 env
->hflags
|= HF_HALTED_MASK
;
46 env
->exception_index
= EXCP_HLT
;
50 void kvm_arch_pre_kvm_run(void *opaque
, int vcpu
)
54 void kvm_arch_post_kvm_run(void *opaque
, int vcpu
)
58 int kvm_arch_has_work(CPUState
*env
)
63 int kvm_arch_try_push_interrupts(void *opaque
)
68 void kvm_arch_update_regs_for_sipi(CPUState
*env
)