Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
pmu.c File Reference
#include <linux/types.h>
#include <linux/kvm_host.h>
#include <linux/perf_event.h>
#include "x86.h"
#include "cpuid.h"
#include "lapic.h"

Go to the source code of this file.

Data Structures

struct  kvm_arch_event_perf_mapping
 

Functions

void kvm_deliver_pmi (struct kvm_vcpu *vcpu)
 
bool kvm_pmu_msr (struct kvm_vcpu *vcpu, u32 msr)
 
int kvm_pmu_get_msr (struct kvm_vcpu *vcpu, u32 index, u64 *data)
 
int kvm_pmu_set_msr (struct kvm_vcpu *vcpu, u32 index, u64 data)
 
int kvm_pmu_read_pmc (struct kvm_vcpu *vcpu, unsigned pmc, u64 *data)
 
void kvm_pmu_cpuid_update (struct kvm_vcpu *vcpu)
 
void kvm_pmu_init (struct kvm_vcpu *vcpu)
 
void kvm_pmu_reset (struct kvm_vcpu *vcpu)
 
void kvm_pmu_destroy (struct kvm_vcpu *vcpu)
 
void kvm_handle_pmu_event (struct kvm_vcpu *vcpu)
 

Variables

int fixed_pmc_events [] = {1, 0, 7}
 

Function Documentation

void kvm_deliver_pmi ( struct kvm_vcpu vcpu)

Definition at line 89 of file pmu.c.

void kvm_handle_pmu_event ( struct kvm_vcpu vcpu)

Definition at line 519 of file pmu.c.

void kvm_pmu_cpuid_update ( struct kvm_vcpu vcpu)

Definition at line 434 of file pmu.c.

void kvm_pmu_destroy ( struct kvm_vcpu vcpu)

Definition at line 514 of file pmu.c.

int kvm_pmu_get_msr ( struct kvm_vcpu vcpu,
u32  index,
u64 data 
)

Definition at line 332 of file pmu.c.

void kvm_pmu_init ( struct kvm_vcpu vcpu)

Definition at line 475 of file pmu.c.

bool kvm_pmu_msr ( struct kvm_vcpu vcpu,
u32  msr 
)

Definition at line 311 of file pmu.c.

int kvm_pmu_read_pmc ( struct kvm_vcpu vcpu,
unsigned  pmc,
u64 data 
)

Definition at line 412 of file pmu.c.

void kvm_pmu_reset ( struct kvm_vcpu vcpu)

Definition at line 495 of file pmu.c.

int kvm_pmu_set_msr ( struct kvm_vcpu vcpu,
u32  index,
u64  data 
)

Definition at line 363 of file pmu.c.

Variable Documentation

int fixed_pmc_events[] = {1, 0, 7}

Definition at line 40 of file pmu.c.