Sync ia64 instruction cache after DMA memory access
[qemu-kvm/fedora.git] / qemu-kvm-ia64.c
blob0029a43f03dffa4396c47d36be0562853c51da9c
2 #include "config.h"
3 #include "config-host.h"
5 extern int kvm_allowed;
6 extern int kvm_irqchip;
8 #ifdef USE_KVM
10 #include <string.h>
11 #include "vl.h"
13 #include "qemu-kvm.h"
14 #include <libkvm.h>
15 #include <pthread.h>
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)
25 return 0;
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)
39 return 0;
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;
47 return 1;
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)
60 return 1;
63 int kvm_arch_try_push_interrupts(void *opaque)
65 return 1;
68 void kvm_arch_update_regs_for_sipi(CPUState *env)
71 #endif