#define pr_fmt(fmt) …
#include <linux/kvm_host.h>
#include <linux/debugfs.h>
#include "lapic.h"
#include "mmu.h"
#include "mmu/mmu_internal.h"
static int vcpu_get_timer_advance_ns(void *data, u64 *val)
{ … }
DEFINE_SIMPLE_ATTRIBUTE(…);
static int vcpu_get_guest_mode(void *data, u64 *val)
{ … }
DEFINE_SIMPLE_ATTRIBUTE(…);
static int vcpu_get_tsc_offset(void *data, u64 *val)
{ … }
DEFINE_SIMPLE_ATTRIBUTE(…);
static int vcpu_get_tsc_scaling_ratio(void *data, u64 *val)
{ … }
DEFINE_SIMPLE_ATTRIBUTE(…);
static int vcpu_get_tsc_scaling_frac_bits(void *data, u64 *val)
{ … }
DEFINE_SIMPLE_ATTRIBUTE(…);
void kvm_arch_create_vcpu_debugfs(struct kvm_vcpu *vcpu, struct dentry *debugfs_dentry)
{ … }
#define RMAP_LOG_SIZE …
static const char *kvm_lpage_str[KVM_NR_PAGE_SIZES] = …;
static int kvm_mmu_rmaps_stat_show(struct seq_file *m, void *v)
{ … }
static int kvm_mmu_rmaps_stat_open(struct inode *inode, struct file *file)
{ … }
static int kvm_mmu_rmaps_stat_release(struct inode *inode, struct file *file)
{ … }
static const struct file_operations mmu_rmaps_stat_fops = …;
void kvm_arch_create_vm_debugfs(struct kvm *kvm)
{ … }