Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
powerpc.c File Reference
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/kvm_host.h>
#include <linux/vmalloc.h>
#include <linux/hrtimer.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <asm/cputable.h>
#include <asm/uaccess.h>
#include <asm/kvm_ppc.h>
#include <asm/tlbflush.h>
#include <asm/cputhreads.h>
#include "timing.h"
#include "../mm/mmu_decl.h"
#include "trace.h"

Go to the source code of this file.

Macros

#define CREATE_TRACE_POINTS
 

Functions

int kvm_arch_vcpu_runnable (struct kvm_vcpu *v)
 
int kvm_arch_vcpu_should_kick (struct kvm_vcpu *vcpu)
 
int kvmppc_kvm_pv (struct kvm_vcpu *vcpu)
 
int kvmppc_sanity_check (struct kvm_vcpu *vcpu)
 
int kvmppc_emulate_mmio (struct kvm_run *run, struct kvm_vcpu *vcpu)
 
int kvm_arch_hardware_enable (void *garbage)
 
void kvm_arch_hardware_disable (void *garbage)
 
int kvm_arch_hardware_setup (void)
 
void kvm_arch_hardware_unsetup (void)
 
void kvm_arch_check_processor_compat (void *rtn)
 
int kvm_arch_init_vm (struct kvm *kvm, unsigned long type)
 
void kvm_arch_destroy_vm (struct kvm *kvm)
 
void kvm_arch_sync_events (struct kvm *kvm)
 
int kvm_dev_ioctl_check_extension (long ext)
 
long kvm_arch_dev_ioctl (struct file *filp, unsigned int ioctl, unsigned long arg)
 
void kvm_arch_free_memslot (struct kvm_memory_slot *free, struct kvm_memory_slot *dont)
 
int kvm_arch_create_memslot (struct kvm_memory_slot *slot, unsigned long npages)
 
int kvm_arch_prepare_memory_region (struct kvm *kvm, struct kvm_memory_slot *memslot, struct kvm_memory_slot old, struct kvm_userspace_memory_region *mem, int user_alloc)
 
void kvm_arch_commit_memory_region (struct kvm *kvm, struct kvm_userspace_memory_region *mem, struct kvm_memory_slot old, int user_alloc)
 
void kvm_arch_flush_shadow_all (struct kvm *kvm)
 
void kvm_arch_flush_shadow_memslot (struct kvm *kvm, struct kvm_memory_slot *slot)
 
struct kvm_vcpukvm_arch_vcpu_create (struct kvm *kvm, unsigned int id)
 
void kvm_arch_vcpu_free (struct kvm_vcpu *vcpu)
 
void kvm_arch_vcpu_destroy (struct kvm_vcpu *vcpu)
 
int kvm_cpu_has_pending_timer (struct kvm_vcpu *vcpu)
 
enum hrtimer_restart kvmppc_decrementer_wakeup (struct hrtimer *timer)
 
int kvm_arch_vcpu_init (struct kvm_vcpu *vcpu)
 
void kvm_arch_vcpu_uninit (struct kvm_vcpu *vcpu)
 
void kvm_arch_vcpu_load (struct kvm_vcpu *vcpu, int cpu)
 
void kvm_arch_vcpu_put (struct kvm_vcpu *vcpu)
 
int kvm_arch_vcpu_ioctl_set_guest_debug (struct kvm_vcpu *vcpu, struct kvm_guest_debug *dbg)
 
int kvmppc_handle_load (struct kvm_run *run, struct kvm_vcpu *vcpu, unsigned int rt, unsigned int bytes, int is_bigendian)
 
int kvmppc_handle_loads (struct kvm_run *run, struct kvm_vcpu *vcpu, unsigned int rt, unsigned int bytes, int is_bigendian)
 
int kvmppc_handle_store (struct kvm_run *run, struct kvm_vcpu *vcpu, u64 val, unsigned int bytes, int is_bigendian)
 
int kvm_arch_vcpu_ioctl_run (struct kvm_vcpu *vcpu, struct kvm_run *run)
 
int kvm_vcpu_ioctl_interrupt (struct kvm_vcpu *vcpu, struct kvm_interrupt *irq)
 
int kvm_arch_vcpu_ioctl_get_mpstate (struct kvm_vcpu *vcpu, struct kvm_mp_state *mp_state)
 
int kvm_arch_vcpu_ioctl_set_mpstate (struct kvm_vcpu *vcpu, struct kvm_mp_state *mp_state)
 
long kvm_arch_vcpu_ioctl (struct file *filp, unsigned int ioctl, unsigned long arg)
 
int kvm_arch_vcpu_fault (struct kvm_vcpu *vcpu, struct vm_fault *vmf)
 
long kvm_arch_vm_ioctl (struct file *filp, unsigned int ioctl, unsigned long arg)
 
long kvmppc_alloc_lpid (void)
 
void kvmppc_claim_lpid (long lpid)
 
void kvmppc_free_lpid (long lpid)
 
void kvmppc_init_lpid (unsigned long nr_lpids_param)
 
int kvm_arch_init (void *opaque)
 
void kvm_arch_exit (void)
 

Macro Definition Documentation

#define CREATE_TRACE_POINTS

Definition at line 36 of file powerpc.c.

Function Documentation

void kvm_arch_check_processor_compat ( void rtn)

Definition at line 180 of file powerpc.c.

void kvm_arch_commit_memory_region ( struct kvm kvm,
struct kvm_userspace_memory_region mem,
struct kvm_memory_slot  old,
int  user_alloc 
)

Definition at line 329 of file powerpc.c.

int kvm_arch_create_memslot ( struct kvm_memory_slot slot,
unsigned long  npages 
)

Definition at line 311 of file powerpc.c.

void kvm_arch_destroy_vm ( struct kvm kvm)

Definition at line 193 of file powerpc.c.

long kvm_arch_dev_ioctl ( struct file filp,
unsigned int  ioctl,
unsigned long  arg 
)

Definition at line 296 of file powerpc.c.

void kvm_arch_exit ( void  )

Definition at line 896 of file powerpc.c.

void kvm_arch_flush_shadow_all ( struct kvm kvm)

Definition at line 337 of file powerpc.c.

void kvm_arch_flush_shadow_memslot ( struct kvm kvm,
struct kvm_memory_slot slot 
)

Definition at line 341 of file powerpc.c.

void kvm_arch_free_memslot ( struct kvm_memory_slot free,
struct kvm_memory_slot dont 
)

Definition at line 302 of file powerpc.c.

void kvm_arch_hardware_disable ( void garbage)

Definition at line 167 of file powerpc.c.

int kvm_arch_hardware_enable ( void garbage)

Definition at line 162 of file powerpc.c.

int kvm_arch_hardware_setup ( void  )

Definition at line 171 of file powerpc.c.

void kvm_arch_hardware_unsetup ( void  )

Definition at line 176 of file powerpc.c.

int kvm_arch_init ( void opaque)

Definition at line 891 of file powerpc.c.

int kvm_arch_init_vm ( struct kvm kvm,
unsigned long  type 
)

Definition at line 185 of file powerpc.c.

int kvm_arch_prepare_memory_region ( struct kvm kvm,
struct kvm_memory_slot memslot,
struct kvm_memory_slot  old,
struct kvm_userspace_memory_region mem,
int  user_alloc 
)

Definition at line 320 of file powerpc.c.

void kvm_arch_sync_events ( struct kvm kvm)

Definition at line 212 of file powerpc.c.

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

Definition at line 346 of file powerpc.c.

void kvm_arch_vcpu_destroy ( struct kvm_vcpu vcpu)

Definition at line 367 of file powerpc.c.

int kvm_arch_vcpu_fault ( struct kvm_vcpu vcpu,
struct vm_fault *  vmf 
)

Definition at line 747 of file powerpc.c.

void kvm_arch_vcpu_free ( struct kvm_vcpu vcpu)

Definition at line 357 of file powerpc.c.

int kvm_arch_vcpu_init ( struct kvm_vcpu vcpu)

Definition at line 391 of file powerpc.c.

long kvm_arch_vcpu_ioctl ( struct file filp,
unsigned int  ioctl,
unsigned long  arg 
)

Definition at line 688 of file powerpc.c.

int kvm_arch_vcpu_ioctl_get_mpstate ( struct kvm_vcpu vcpu,
struct kvm_mp_state mp_state 
)

Definition at line 676 of file powerpc.c.

int kvm_arch_vcpu_ioctl_run ( struct kvm_vcpu vcpu,
struct kvm_run run 
)

Definition at line 581 of file powerpc.c.

int kvm_arch_vcpu_ioctl_set_guest_debug ( struct kvm_vcpu vcpu,
struct kvm_guest_debug dbg 
)

Definition at line 435 of file powerpc.c.

int kvm_arch_vcpu_ioctl_set_mpstate ( struct kvm_vcpu vcpu,
struct kvm_mp_state mp_state 
)

Definition at line 682 of file powerpc.c.

void kvm_arch_vcpu_load ( struct kvm_vcpu vcpu,
int  cpu 
)

Definition at line 410 of file powerpc.c.

void kvm_arch_vcpu_put ( struct kvm_vcpu vcpu)

Definition at line 426 of file powerpc.c.

int kvm_arch_vcpu_runnable ( struct kvm_vcpu v)

Definition at line 39 of file powerpc.c.

int kvm_arch_vcpu_should_kick ( struct kvm_vcpu vcpu)

Definition at line 46 of file powerpc.c.

void kvm_arch_vcpu_uninit ( struct kvm_vcpu vcpu)

Definition at line 405 of file powerpc.c.

long kvm_arch_vm_ioctl ( struct file filp,
unsigned int  ioctl,
unsigned long  arg 
)

Definition at line 777 of file powerpc.c.

int kvm_cpu_has_pending_timer ( struct kvm_vcpu vcpu)

Definition at line 372 of file powerpc.c.

int kvm_dev_ioctl_check_extension ( long  ext)

Definition at line 216 of file powerpc.c.

int kvm_vcpu_ioctl_interrupt ( struct kvm_vcpu vcpu,
struct kvm_interrupt irq 
)

Definition at line 621 of file powerpc.c.

long kvmppc_alloc_lpid ( void  )

Definition at line 860 of file powerpc.c.

void kvmppc_claim_lpid ( long  lpid)

Definition at line 875 of file powerpc.c.

enum hrtimer_restart kvmppc_decrementer_wakeup ( struct hrtimer timer)

Definition at line 381 of file powerpc.c.

int kvmppc_emulate_mmio ( struct kvm_run run,
struct kvm_vcpu vcpu 
)

Definition at line 129 of file powerpc.c.

void kvmppc_free_lpid ( long  lpid)

Definition at line 880 of file powerpc.c.

int kvmppc_handle_load ( struct kvm_run run,
struct kvm_vcpu vcpu,
unsigned int  rt,
unsigned int  bytes,
int  is_bigendian 
)

Definition at line 512 of file powerpc.c.

int kvmppc_handle_loads ( struct kvm_run run,
struct kvm_vcpu vcpu,
unsigned int  rt,
unsigned int  bytes,
int  is_bigendian 
)

Definition at line 534 of file powerpc.c.

int kvmppc_handle_store ( struct kvm_run run,
struct kvm_vcpu vcpu,
u64  val,
unsigned int  bytes,
int  is_bigendian 
)

Definition at line 545 of file powerpc.c.

void kvmppc_init_lpid ( unsigned long  nr_lpids_param)

Definition at line 885 of file powerpc.c.

int kvmppc_kvm_pv ( struct kvm_vcpu vcpu)

Definition at line 51 of file powerpc.c.

int kvmppc_sanity_check ( struct kvm_vcpu vcpu)

Definition at line 99 of file powerpc.c.