Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cpuid.c File Reference
#include <linux/kvm_host.h>
#include <linux/module.h>
#include <linux/vmalloc.h>
#include <linux/uaccess.h>
#include <asm/user.h>
#include <asm/xsave.h>
#include "cpuid.h"
#include "lapic.h"
#include "mmu.h"
#include "trace.h"

Go to the source code of this file.

Data Structures

struct  kvm_cpuid_param
 

Macros

#define F(x)   bit(X86_FEATURE_##x)
 

Functions

void kvm_update_cpuid (struct kvm_vcpu *vcpu)
 
int kvm_vcpu_ioctl_set_cpuid (struct kvm_vcpu *vcpu, struct kvm_cpuid *cpuid, struct kvm_cpuid_entry __user *entries)
 
int kvm_vcpu_ioctl_set_cpuid2 (struct kvm_vcpu *vcpu, struct kvm_cpuid2 *cpuid, struct kvm_cpuid_entry2 __user *entries)
 
int kvm_vcpu_ioctl_get_cpuid2 (struct kvm_vcpu *vcpu, struct kvm_cpuid2 *cpuid, struct kvm_cpuid_entry2 __user *entries)
 
int kvm_dev_ioctl_get_supported_cpuid (struct kvm_cpuid2 *cpuid, struct kvm_cpuid_entry2 __user *entries)
 
struct kvm_cpuid_entry2kvm_find_cpuid_entry (struct kvm_vcpu *vcpu, u32 function, u32 index)
 
 EXPORT_SYMBOL_GPL (kvm_find_cpuid_entry)
 
int cpuid_maxphyaddr (struct kvm_vcpu *vcpu)
 
void kvm_cpuid (struct kvm_vcpu *vcpu, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx)
 
void kvm_emulate_cpuid (struct kvm_vcpu *vcpu)
 
 EXPORT_SYMBOL_GPL (kvm_emulate_cpuid)
 

Macro Definition Documentation

#define F (   x)    bit(X86_FEATURE_##x)

Definition at line 188 of file cpuid.c.

Function Documentation

int cpuid_maxphyaddr ( struct kvm_vcpu vcpu)

Definition at line 609 of file cpuid.c.

EXPORT_SYMBOL_GPL ( kvm_find_cpuid_entry  )
EXPORT_SYMBOL_GPL ( kvm_emulate_cpuid  )
void kvm_cpuid ( struct kvm_vcpu vcpu,
u32 eax,
u32 ebx,
u32 ecx,
u32 edx 
)

Definition at line 644 of file cpuid.c.

int kvm_dev_ioctl_get_supported_cpuid ( struct kvm_cpuid2 cpuid,
struct kvm_cpuid_entry2 __user entries 
)

Definition at line 495 of file cpuid.c.

void kvm_emulate_cpuid ( struct kvm_vcpu vcpu)

Definition at line 663 of file cpuid.c.

struct kvm_cpuid_entry2* kvm_find_cpuid_entry ( struct kvm_vcpu vcpu,
u32  function,
u32  index 
)
read

Definition at line 588 of file cpuid.c.

void kvm_update_cpuid ( struct kvm_vcpu vcpu)

Definition at line 26 of file cpuid.c.

int kvm_vcpu_ioctl_get_cpuid2 ( struct kvm_vcpu vcpu,
struct kvm_cpuid2 cpuid,
struct kvm_cpuid_entry2 __user entries 
)

Definition at line 146 of file cpuid.c.

int kvm_vcpu_ioctl_set_cpuid ( struct kvm_vcpu vcpu,
struct kvm_cpuid cpuid,
struct kvm_cpuid_entry __user entries 
)

Definition at line 80 of file cpuid.c.

int kvm_vcpu_ioctl_set_cpuid2 ( struct kvm_vcpu vcpu,
struct kvm_cpuid2 cpuid,
struct kvm_cpuid_entry2 __user entries 
)

Definition at line 123 of file cpuid.c.