3 #include "config-host.h"
11 #include <sys/utsname.h>
14 extern kvm_context_t kvm_context
;
16 int kvm_arch_qemu_create_context(void)
21 void kvm_arch_load_regs(CPUState
*env
)
26 void kvm_arch_save_regs(CPUState
*env
)
30 int kvm_arch_qemu_init_env(CPUState
*cenv
)
35 int kvm_arch_halt(void *opaque
, int vcpu
)
37 CPUState
*env
= cpu_single_env
;
38 env
->hflags
|= HF_HALTED_MASK
;
39 env
->exception_index
= EXCP_HLT
;
43 void kvm_arch_pre_kvm_run(void *opaque
, int vcpu
)
47 void kvm_arch_post_kvm_run(void *opaque
, int vcpu
)
51 int kvm_arch_has_work(CPUState
*env
)
56 int kvm_arch_try_push_interrupts(void *opaque
)
61 void kvm_arch_update_regs_for_sipi(CPUState
*env
)
65 void kvm_arch_cpu_reset(CPUState
*env
)