linux/arch/x86/kvm/debugfs.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Kernel-based Virtual Machine driver for Linux
 *
 * Copyright 2016 Red Hat, Inc. and/or its affiliates.
 */
#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)
{}

/*
 * This covers statistics <1024 (11=log(1024)+1), which should be enough to
 * cover RMAP_RECYCLE_THRESHOLD.
 */
#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)
{}