kvm.h revision 4c37c32b924cb13b821f9d2e01f42cabbd3d9cf9
/*
* QEMU KVM support
*
* Copyright IBM, Corp. 2008
*
* Authors:
* Anthony Liguori <aliguori@us.ibm.com>
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*
*/
#ifndef QEMU_KVM_H
#define QEMU_KVM_H
#include "config.h"
#include "sys-queue.h"
#ifdef CONFIG_KVM
extern int kvm_allowed;
#define kvm_enabled() (kvm_allowed)
#else
#define kvm_enabled() (0)
#endif
struct kvm_run;
/* external API */
int kvm_set_migration_log(int enable);
int kvm_has_sync_mmu(void);
/* internal API */
struct KVMState;
/* Arch specific hooks */
struct kvm_guest_debug;
struct kvm_debug_exit_arch;
struct kvm_sw_breakpoint {
int use_count;
};
struct kvm_sw_breakpoint *bp);
struct kvm_sw_breakpoint *bp);
void kvm_arch_remove_all_hw_breakpoints(void);
int reg);
/* generic hooks - to be moved/refactored once there are more users */
{
if (kvm_enabled()) {
if (modified)
else
}
}
#endif