Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
kvm-s390.c File Reference
#include <linux/compiler.h>
#include <linux/err.h>
#include <linux/fs.h>
#include <linux/hrtimer.h>
#include <linux/init.h>
#include <linux/kvm.h>
#include <linux/kvm_host.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/timer.h>
#include <asm/asm-offsets.h>
#include <asm/lowcore.h>
#include <asm/pgtable.h>
#include <asm/nmi.h>
#include <asm/switch_to.h>
#include <asm/sclp.h>
#include "kvm-s390.h"
#include "gaccess.h"
#include "trace.h"
#include "trace-s390.h"

Go to the source code of this file.

Macros

#define CREATE_TRACE_POINTS
 
#define VCPU_STAT(x)   offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU
 

Functions

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 (void *opaque)
 
void kvm_arch_exit (void)
 
long kvm_arch_dev_ioctl (struct file *filp, unsigned int ioctl, unsigned long arg)
 
int kvm_dev_ioctl_check_extension (long ext)
 
int kvm_vm_ioctl_get_dirty_log (struct kvm *kvm, struct kvm_dirty_log *log)
 
long kvm_arch_vm_ioctl (struct file *filp, unsigned int ioctl, unsigned long arg)
 
int kvm_arch_init_vm (struct kvm *kvm, unsigned long type)
 
void kvm_arch_vcpu_destroy (struct kvm_vcpu *vcpu)
 
void kvm_arch_sync_events (struct kvm *kvm)
 
void kvm_arch_destroy_vm (struct kvm *kvm)
 
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_setup (struct kvm_vcpu *vcpu)
 
struct kvm_vcpukvm_arch_vcpu_create (struct kvm *kvm, unsigned int id)
 
int kvm_arch_vcpu_runnable (struct kvm_vcpu *vcpu)
 
int kvm_arch_vcpu_should_kick (struct kvm_vcpu *vcpu)
 
int kvm_arch_vcpu_ioctl_set_regs (struct kvm_vcpu *vcpu, struct kvm_regs *regs)
 
int kvm_arch_vcpu_ioctl_get_regs (struct kvm_vcpu *vcpu, struct kvm_regs *regs)
 
int kvm_arch_vcpu_ioctl_set_sregs (struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)
 
int kvm_arch_vcpu_ioctl_get_sregs (struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)
 
int kvm_arch_vcpu_ioctl_set_fpu (struct kvm_vcpu *vcpu, struct kvm_fpu *fpu)
 
int kvm_arch_vcpu_ioctl_get_fpu (struct kvm_vcpu *vcpu, struct kvm_fpu *fpu)
 
int kvm_arch_vcpu_ioctl_translate (struct kvm_vcpu *vcpu, struct kvm_translation *tr)
 
int kvm_arch_vcpu_ioctl_set_guest_debug (struct kvm_vcpu *vcpu, struct kvm_guest_debug *dbg)
 
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)
 
int kvm_arch_vcpu_ioctl_run (struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
 
int kvm_s390_vcpu_store_status (struct kvm_vcpu *vcpu, unsigned long addr)
 
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)
 
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)
 
 module_init (kvm_s390_init)
 
 module_exit (kvm_s390_exit)
 

Variables

struct kvm_stats_debugfs_item debugfs_entries []
 

Macro Definition Documentation

#define CREATE_TRACE_POINTS

Definition at line 35 of file kvm-s390.c.

#define VCPU_STAT (   x)    offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU

Definition at line 39 of file kvm-s390.c.

Function Documentation

void kvm_arch_check_processor_compat ( void rtn)

Definition at line 108 of file kvm-s390.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 957 of file kvm-s390.c.

int kvm_arch_create_memslot ( struct kvm_memory_slot slot,
unsigned long  npages 
)

Definition at line 920 of file kvm-s390.c.

void kvm_arch_destroy_vm ( struct kvm kvm)

Definition at line 287 of file kvm-s390.c.

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

Definition at line 122 of file kvm-s390.c.

void kvm_arch_exit ( void  )

Definition at line 117 of file kvm-s390.c.

void kvm_arch_flush_shadow_all ( struct kvm kvm)

Definition at line 972 of file kvm-s390.c.

void kvm_arch_flush_shadow_memslot ( struct kvm kvm,
struct kvm_memory_slot slot 
)

Definition at line 976 of file kvm-s390.c.

void kvm_arch_free_memslot ( struct kvm_memory_slot free,
struct kvm_memory_slot dont 
)

Definition at line 915 of file kvm-s390.c.

void kvm_arch_hardware_disable ( void garbage)

Definition at line 95 of file kvm-s390.c.

int kvm_arch_hardware_enable ( void garbage)

Definition at line 89 of file kvm-s390.c.

int kvm_arch_hardware_setup ( void  )

Definition at line 99 of file kvm-s390.c.

void kvm_arch_hardware_unsetup ( void  )

Definition at line 104 of file kvm-s390.c.

int kvm_arch_init ( void opaque)

Definition at line 112 of file kvm-s390.c.

int kvm_arch_init_vm ( struct kvm kvm,
unsigned long  type 
)

Definition at line 192 of file kvm-s390.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 926 of file kvm-s390.c.

void kvm_arch_sync_events ( struct kvm kvm)

Definition at line 283 of file kvm-s390.c.

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

Definition at line 375 of file kvm-s390.c.

void kvm_arch_vcpu_destroy ( struct kvm_vcpu vcpu)

Definition at line 246 of file kvm-s390.c.

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

Definition at line 902 of file kvm-s390.c.

int kvm_arch_vcpu_init ( struct kvm_vcpu vcpu)

Definition at line 297 of file kvm-s390.c.

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

Definition at line 810 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_get_fpu ( struct kvm_vcpu vcpu,
struct kvm_fpu fpu 
)

Definition at line 551 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_get_mpstate ( struct kvm_vcpu vcpu,
struct kvm_mp_state mp_state 
)

Definition at line 583 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_get_regs ( struct kvm_vcpu vcpu,
struct kvm_regs regs 
)

Definition at line 520 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_get_sregs ( struct kvm_vcpu vcpu,
struct kvm_sregs sregs 
)

Definition at line 535 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_run ( struct kvm_vcpu vcpu,
struct kvm_run kvm_run 
)

Definition at line 640 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_set_fpu ( struct kvm_vcpu vcpu,
struct kvm_fpu fpu 
)

Definition at line 543 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_set_guest_debug ( struct kvm_vcpu vcpu,
struct kvm_guest_debug dbg 
)

Definition at line 577 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_set_mpstate ( struct kvm_vcpu vcpu,
struct kvm_mp_state mp_state 
)

Definition at line 589 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_set_regs ( struct kvm_vcpu vcpu,
struct kvm_regs regs 
)

Definition at line 514 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_set_sregs ( struct kvm_vcpu vcpu,
struct kvm_sregs sregs 
)

Definition at line 526 of file kvm-s390.c.

int kvm_arch_vcpu_ioctl_translate ( struct kvm_vcpu vcpu,
struct kvm_translation tr 
)

Definition at line 571 of file kvm-s390.c.

void kvm_arch_vcpu_load ( struct kvm_vcpu vcpu,
int  cpu 
)

Definition at line 319 of file kvm-s390.c.

void kvm_arch_vcpu_put ( struct kvm_vcpu vcpu)

Definition at line 330 of file kvm-s390.c.

int kvm_arch_vcpu_runnable ( struct kvm_vcpu vcpu)

Definition at line 436 of file kvm-s390.c.

int kvm_arch_vcpu_setup ( struct kvm_vcpu vcpu)

Definition at line 358 of file kvm-s390.c.

int kvm_arch_vcpu_should_kick ( struct kvm_vcpu vcpu)

Definition at line 443 of file kvm-s390.c.

void kvm_arch_vcpu_uninit ( struct kvm_vcpu vcpu)

Definition at line 314 of file kvm-s390.c.

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

Definition at line 168 of file kvm-s390.c.

int kvm_dev_ioctl_check_extension ( long  ext)

Definition at line 130 of file kvm-s390.c.

int kvm_s390_vcpu_store_status ( struct kvm_vcpu vcpu,
unsigned long  addr 
)

Definition at line 748 of file kvm-s390.c.

int kvm_vm_ioctl_get_dirty_log ( struct kvm kvm,
struct kvm_dirty_log log 
)

Definition at line 162 of file kvm-s390.c.

module_exit ( kvm_s390_exit  )
module_init ( kvm_s390_init  )

Variable Documentation

struct kvm_stats_debugfs_item debugfs_entries[]

Definition at line 41 of file kvm-s390.c.