X-Git-Url: http://git.maemo.org/git/?p=qemu;a=blobdiff_plain;f=kvm.h;fp=kvm.h;h=560aef38725322617b693264a7c28e4c35a64b1f;hp=0ea24266be2ac65e0371d8115442055b4e11c76d;hb=a03c3bde4e288e790eccfb8cd45abd8ecbf467dc;hpb=e2ffa1bf065fa199f27d661d495573e9d6059bf1 diff --git a/kvm.h b/kvm.h index 0ea2426..560aef3 100644 --- a/kvm.h +++ b/kvm.h @@ -40,11 +40,12 @@ void kvm_set_phys_mem(target_phys_addr_t start_addr, ram_addr_t size, ram_addr_t phys_offset); -void kvm_physical_sync_dirty_bitmap(target_phys_addr_t start_addr, - target_phys_addr_t end_addr); +int kvm_physical_sync_dirty_bitmap(target_phys_addr_t start_addr, + target_phys_addr_t end_addr); int kvm_log_start(target_phys_addr_t phys_addr, ram_addr_t size); int kvm_log_stop(target_phys_addr_t phys_addr, ram_addr_t size); +int kvm_set_migration_log(int enable); int kvm_has_sync_mmu(void); @@ -71,6 +72,9 @@ int kvm_vm_ioctl(KVMState *s, int type, ...); int kvm_vcpu_ioctl(CPUState *env, int type, ...); +int kvm_get_mp_state(CPUState *env); +int kvm_put_mp_state(CPUState *env); + /* Arch specific hooks */ int kvm_arch_post_run(CPUState *env, struct kvm_run *run); @@ -118,6 +122,11 @@ void kvm_arch_remove_all_hw_breakpoints(void); void kvm_arch_update_guest_debug(CPUState *env, struct kvm_guest_debug *dbg); +int kvm_check_extension(KVMState *s, unsigned int extension); + +uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function, + int reg); + /* generic hooks - to be moved/refactored once there are more users */ static inline void cpu_synchronize_state(CPUState *env, int modified)