Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
book3s_hv.c File Reference
#include <linux/kvm_host.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/preempt.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/export.h>
#include <linux/fs.h>
#include <linux/anon_inodes.h>
#include <linux/cpumask.h>
#include <linux/spinlock.h>
#include <linux/page-flags.h>
#include <asm/reg.h>
#include <asm/cputable.h>
#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/kvm_ppc.h>
#include <asm/kvm_book3s.h>
#include <asm/mmu_context.h>
#include <asm/lppaca.h>
#include <asm/processor.h>
#include <asm/cputhreads.h>
#include <asm/page.h>
#include <asm/hvcall.h>
#include <asm/switch_to.h>
#include <linux/gfp.h>
#include <linux/vmalloc.h>
#include <linux/highmem.h>
#include <linux/hugetlb.h>

Go to the source code of this file.

Data Structures

struct  reg_vpa
 

Functions

void kvmppc_core_vcpu_load (struct kvm_vcpu *vcpu, int cpu)
 
void kvmppc_core_vcpu_put (struct kvm_vcpu *vcpu)
 
void kvmppc_set_msr (struct kvm_vcpu *vcpu, u64 msr)
 
void kvmppc_set_pvr (struct kvm_vcpu *vcpu, u32 pvr)
 
void kvmppc_dump_regs (struct kvm_vcpu *vcpu)
 
struct kvm_vcpukvmppc_find_vcpu (struct kvm *kvm, int id)
 
int kvmppc_pseries_do_hcall (struct kvm_vcpu *vcpu)
 
int kvm_arch_vcpu_ioctl_get_sregs (struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)
 
int kvm_arch_vcpu_ioctl_set_sregs (struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)
 
int kvm_vcpu_ioctl_get_one_reg (struct kvm_vcpu *vcpu, struct kvm_one_reg *reg)
 
int kvm_vcpu_ioctl_set_one_reg (struct kvm_vcpu *vcpu, struct kvm_one_reg *reg)
 
int kvmppc_core_check_processor_compat (void)
 
struct kvm_vcpukvmppc_core_vcpu_create (struct kvm *kvm, unsigned int id)
 
void kvmppc_core_vcpu_free (struct kvm_vcpu *vcpu)
 
int __kvmppc_vcore_entry (struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
 
void xics_wake_cpu (int cpu)
 
int kvmppc_vcpu_run (struct kvm_run *run, struct kvm_vcpu *vcpu)
 
long kvm_vm_ioctl_allocate_rma (struct kvm *kvm, struct kvm_allocate_rma *ret)
 
int kvm_vm_ioctl_get_smmu_info (struct kvm *kvm, struct kvm_ppc_smmu_info *info)
 
int kvm_vm_ioctl_get_dirty_log (struct kvm *kvm, struct kvm_dirty_log *log)
 
int kvmppc_core_prepare_memory_region (struct kvm *kvm, struct kvm_userspace_memory_region *mem)
 
void kvmppc_core_commit_memory_region (struct kvm *kvm, struct kvm_userspace_memory_region *mem)
 
int kvmppc_core_init_vm (struct kvm *kvm)
 
void kvmppc_core_destroy_vm (struct kvm *kvm)
 
void kvmppc_mmu_pte_pflush (struct kvm_vcpu *vcpu, ulong pa_start, ulong pa_end)
 
int kvmppc_core_emulate_op (struct kvm_run *run, struct kvm_vcpu *vcpu, unsigned int inst, int *advance)
 
int kvmppc_core_emulate_mtspr (struct kvm_vcpu *vcpu, int sprn, ulong spr_val)
 
int kvmppc_core_emulate_mfspr (struct kvm_vcpu *vcpu, int sprn, ulong *spr_val)
 
 module_init (kvmppc_book3s_hv_init)
 
 module_exit (kvmppc_book3s_hv_exit)
 

Function Documentation

int __kvmppc_vcore_entry ( struct kvm_run kvm_run,
struct kvm_vcpu vcpu 
)
int kvm_arch_vcpu_ioctl_get_sregs ( struct kvm_vcpu vcpu,
struct kvm_sregs sregs 
)

Definition at line 502 of file book3s_hv.c.

int kvm_arch_vcpu_ioctl_set_sregs ( struct kvm_vcpu vcpu,
struct kvm_sregs sregs 
)

Definition at line 518 of file book3s_hv.c.

int kvm_vcpu_ioctl_get_one_reg ( struct kvm_vcpu vcpu,
struct kvm_one_reg reg 
)

Definition at line 538 of file book3s_hv.c.

int kvm_vcpu_ioctl_set_one_reg ( struct kvm_vcpu vcpu,
struct kvm_one_reg reg 
)

Definition at line 553 of file book3s_hv.c.

long kvm_vm_ioctl_allocate_rma ( struct kvm kvm,
struct kvm_allocate_rma ret 
)

Definition at line 1204 of file book3s_hv.c.

int kvm_vm_ioctl_get_dirty_log ( struct kvm kvm,
struct kvm_dirty_log log 
)

Definition at line 1256 of file book3s_hv.c.

int kvm_vm_ioctl_get_smmu_info ( struct kvm kvm,
struct kvm_ppc_smmu_info info 
)

Definition at line 1235 of file book3s_hv.c.

int kvmppc_core_check_processor_compat ( void  )

Definition at line 574 of file book3s_hv.c.

void kvmppc_core_commit_memory_region ( struct kvm kvm,
struct kvm_userspace_memory_region mem 
)

Definition at line 1346 of file book3s_hv.c.

void kvmppc_core_destroy_vm ( struct kvm kvm)

Definition at line 1529 of file book3s_hv.c.

int kvmppc_core_emulate_mfspr ( struct kvm_vcpu vcpu,
int  sprn,
ulong spr_val 
)

Definition at line 1563 of file book3s_hv.c.

int kvmppc_core_emulate_mtspr ( struct kvm_vcpu vcpu,
int  sprn,
ulong  spr_val 
)

Definition at line 1558 of file book3s_hv.c.

int kvmppc_core_emulate_op ( struct kvm_run run,
struct kvm_vcpu vcpu,
unsigned int  inst,
int advance 
)

Definition at line 1552 of file book3s_hv.c.

int kvmppc_core_init_vm ( struct kvm kvm)

Definition at line 1488 of file book3s_hv.c.

int kvmppc_core_prepare_memory_region ( struct kvm kvm,
struct kvm_userspace_memory_region mem 
)

Definition at line 1302 of file book3s_hv.c.

struct kvm_vcpu* kvmppc_core_vcpu_create ( struct kvm kvm,
unsigned int  id 
)
read

Definition at line 581 of file book3s_hv.c.

void kvmppc_core_vcpu_free ( struct kvm_vcpu vcpu)

Definition at line 653 of file book3s_hv.c.

void kvmppc_core_vcpu_load ( struct kvm_vcpu vcpu,
int  cpu 
)

Definition at line 61 of file book3s_hv.c.

void kvmppc_core_vcpu_put ( struct kvm_vcpu vcpu)

Definition at line 71 of file book3s_hv.c.

void kvmppc_dump_regs ( struct kvm_vcpu vcpu)

Definition at line 90 of file book3s_hv.c.

struct kvm_vcpu* kvmppc_find_vcpu ( struct kvm kvm,
int  id 
)
read

Definition at line 123 of file book3s_hv.c.

void kvmppc_mmu_pte_pflush ( struct kvm_vcpu vcpu,
ulong  pa_start,
ulong  pa_end 
)

Definition at line 1547 of file book3s_hv.c.

int kvmppc_pseries_do_hcall ( struct kvm_vcpu vcpu)

Definition at line 364 of file book3s_hv.c.

void kvmppc_set_msr ( struct kvm_vcpu vcpu,
u64  msr 
)

Definition at line 79 of file book3s_hv.c.

void kvmppc_set_pvr ( struct kvm_vcpu vcpu,
u32  pvr 
)

Definition at line 85 of file book3s_hv.c.

int kvmppc_vcpu_run ( struct kvm_run run,
struct kvm_vcpu vcpu 
)

Definition at line 1090 of file book3s_hv.c.

module_exit ( kvmppc_book3s_hv_exit  )
module_init ( kvmppc_book3s_hv_init  )
void xics_wake_cpu ( int  cpu)