kvm: libkvm: fix mmio callback signature mismatch
[kvm-userspace.git] / qemu / qemu-kvm.h
blobca3132a2cbced6408e626b7f64372ae5ccd42199
1 #ifndef QEMU_KVM_H
2 #define QEMU_KVM_H
4 #include "cpu.h"
5 #include "libkvm.h"
7 int kvm_main_loop(void);
8 int kvm_qemu_init(void);
9 int kvm_qemu_create_context(void);
10 int kvm_init_ap(void);
11 void kvm_qemu_destroy(void);
12 void kvm_load_registers(CPUState *env);
13 void kvm_save_registers(CPUState *env);
14 int kvm_cpu_exec(CPUState *env);
15 int kvm_update_debugger(CPUState *env);
16 int kvm_qemu_init_env(CPUState *env);
17 int kvm_qemu_check_extension(int ext);
18 void kvm_apic_init(CPUState *env);
20 int kvm_physical_memory_set_dirty_tracking(int enable);
21 int kvm_update_dirty_pages_log(void);
22 int kvm_get_phys_ram_page_bitmap(unsigned char *bitmap);
24 void qemu_kvm_call_with_env(void (*func)(void *), void *data, CPUState *env);
25 void qemu_kvm_cpuid_on_env(CPUState *env);
26 void kvm_update_after_sipi(CPUState *env);
27 void kvm_update_interrupt_request(CPUState *env);
28 void kvm_cpu_register_physical_memory(target_phys_addr_t start_addr,
29 unsigned long size,
30 unsigned long phys_offset);
31 int kvm_arch_qemu_create_context(void);
33 void kvm_arch_save_regs(CPUState *env);
34 void kvm_arch_load_regs(CPUState *env);
35 int kvm_arch_qemu_init_env(CPUState *cenv);
36 int kvm_arch_halt(void *opaque, int vcpu);
37 void kvm_arch_pre_kvm_run(void *opaque, int vcpu);
38 void kvm_arch_post_kvm_run(void *opaque, int vcpu);
39 int kvm_arch_has_work(CPUState *env);
40 int kvm_arch_try_push_interrupts(void *opaque);
41 void kvm_arch_update_regs_for_sipi(CPUState *env);
43 extern int kvm_allowed;
44 extern int kvm_irqchip;
46 void kvm_tpr_opt_setup(CPUState *env);
47 void kvm_tpr_access_report(CPUState *env, uint64_t rip, int is_write);
49 #define ALIGN(x, y) (((x)+(y)-1) & ~((y)-1))
50 #define BITMAP_SIZE(m) (ALIGN(((m)>>TARGET_PAGE_BITS), HOST_LONG_BITS) / 8)
53 #endif