#define pr_fmt(fmt) …
#include <linux/lockdep.h>
#include <linux/kvm_host.h>
#include <linux/rculist.h>
#include "mmu.h"
#include "mmu_internal.h"
#include "page_track.h"
static bool kvm_external_write_tracking_enabled(struct kvm *kvm)
{ … }
bool kvm_page_track_write_tracking_enabled(struct kvm *kvm)
{ … }
void kvm_page_track_free_memslot(struct kvm_memory_slot *slot)
{ … }
static int __kvm_page_track_write_tracking_alloc(struct kvm_memory_slot *slot,
unsigned long npages)
{ … }
int kvm_page_track_create_memslot(struct kvm *kvm,
struct kvm_memory_slot *slot,
unsigned long npages)
{ … }
int kvm_page_track_write_tracking_alloc(struct kvm_memory_slot *slot)
{ … }
static void update_gfn_write_track(struct kvm_memory_slot *slot, gfn_t gfn,
short count)
{ … }
void __kvm_write_track_add_gfn(struct kvm *kvm, struct kvm_memory_slot *slot,
gfn_t gfn)
{ … }
void __kvm_write_track_remove_gfn(struct kvm *kvm,
struct kvm_memory_slot *slot, gfn_t gfn)
{ … }
bool kvm_gfn_is_write_tracked(struct kvm *kvm,
const struct kvm_memory_slot *slot, gfn_t gfn)
{ … }
#ifdef CONFIG_KVM_EXTERNAL_WRITE_TRACKING
void kvm_page_track_cleanup(struct kvm *kvm)
{ … }
int kvm_page_track_init(struct kvm *kvm)
{ … }
static int kvm_enable_external_write_tracking(struct kvm *kvm)
{ … }
int kvm_page_track_register_notifier(struct kvm *kvm,
struct kvm_page_track_notifier_node *n)
{ … }
EXPORT_SYMBOL_GPL(…);
void kvm_page_track_unregister_notifier(struct kvm *kvm,
struct kvm_page_track_notifier_node *n)
{ … }
EXPORT_SYMBOL_GPL(…);
void __kvm_page_track_write(struct kvm *kvm, gpa_t gpa, const u8 *new, int bytes)
{ … }
void kvm_page_track_delete_slot(struct kvm *kvm, struct kvm_memory_slot *slot)
{ … }
int kvm_write_track_add_gfn(struct kvm *kvm, gfn_t gfn)
{ … }
EXPORT_SYMBOL_GPL(…);
int kvm_write_track_remove_gfn(struct kvm *kvm, gfn_t gfn)
{ … }
EXPORT_SYMBOL_GPL(…);
#endif