Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
book3s_emulate.c File Reference
#include <asm/kvm_ppc.h>
#include <asm/disassemble.h>
#include <asm/kvm_book3s.h>
#include <asm/reg.h>
#include <asm/switch_to.h>

Go to the source code of this file.

Macros

#define OP_19_XOP_RFID   18
 
#define OP_19_XOP_RFI   50
 
#define OP_31_XOP_MFMSR   83
 
#define OP_31_XOP_MTMSR   146
 
#define OP_31_XOP_MTMSRD   178
 
#define OP_31_XOP_MTSR   210
 
#define OP_31_XOP_MTSRIN   242
 
#define OP_31_XOP_TLBIEL   274
 
#define OP_31_XOP_TLBIE   306
 
#define OP_31_XOP_SLBMTE   402
 
#define OP_31_XOP_SLBIE   434
 
#define OP_31_XOP_SLBIA   498
 
#define OP_31_XOP_MFSR   595
 
#define OP_31_XOP_MFSRIN   659
 
#define OP_31_XOP_DCBA   758
 
#define OP_31_XOP_SLBMFEV   851
 
#define OP_31_XOP_EIOIO   854
 
#define OP_31_XOP_SLBMFEE   915
 
#define OP_31_XOP_DCBZ   1010
 
#define OP_LFS   48
 
#define OP_LFD   50
 
#define OP_STFS   52
 
#define OP_STFD   54
 
#define SPRN_GQR0   912
 
#define SPRN_GQR1   913
 
#define SPRN_GQR2   914
 
#define SPRN_GQR3   915
 
#define SPRN_GQR4   916
 
#define SPRN_GQR5   917
 
#define SPRN_GQR6   918
 
#define SPRN_GQR7   919
 

Enumerations

enum  priv_level { PRIV_PROBLEM = 0, PRIV_SUPER = 1, PRIV_HYPER = 2 }
 

Functions

int kvmppc_core_emulate_op (struct kvm_run *run, struct kvm_vcpu *vcpu, unsigned int inst, int *advance)
 
void kvmppc_set_bat (struct kvm_vcpu *vcpu, struct kvmppc_bat *bat, bool upper, u32 val)
 
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)
 
u32 kvmppc_alignment_dsisr (struct kvm_vcpu *vcpu, unsigned int inst)
 
ulong kvmppc_alignment_dar (struct kvm_vcpu *vcpu, unsigned int inst)
 

Macro Definition Documentation

#define OP_19_XOP_RFI   50

Definition at line 27 of file book3s_emulate.c.

#define OP_19_XOP_RFID   18

Definition at line 26 of file book3s_emulate.c.

#define OP_31_XOP_DCBA   758

Definition at line 41 of file book3s_emulate.c.

#define OP_31_XOP_DCBZ   1010

Definition at line 47 of file book3s_emulate.c.

#define OP_31_XOP_EIOIO   854

Definition at line 43 of file book3s_emulate.c.

#define OP_31_XOP_MFMSR   83

Definition at line 29 of file book3s_emulate.c.

#define OP_31_XOP_MFSR   595

Definition at line 39 of file book3s_emulate.c.

#define OP_31_XOP_MFSRIN   659

Definition at line 40 of file book3s_emulate.c.

#define OP_31_XOP_MTMSR   146

Definition at line 30 of file book3s_emulate.c.

#define OP_31_XOP_MTMSRD   178

Definition at line 31 of file book3s_emulate.c.

#define OP_31_XOP_MTSR   210

Definition at line 32 of file book3s_emulate.c.

#define OP_31_XOP_MTSRIN   242

Definition at line 33 of file book3s_emulate.c.

#define OP_31_XOP_SLBIA   498

Definition at line 38 of file book3s_emulate.c.

#define OP_31_XOP_SLBIE   434

Definition at line 37 of file book3s_emulate.c.

#define OP_31_XOP_SLBMFEE   915

Definition at line 44 of file book3s_emulate.c.

#define OP_31_XOP_SLBMFEV   851

Definition at line 42 of file book3s_emulate.c.

#define OP_31_XOP_SLBMTE   402

Definition at line 36 of file book3s_emulate.c.

#define OP_31_XOP_TLBIE   306

Definition at line 35 of file book3s_emulate.c.

#define OP_31_XOP_TLBIEL   274

Definition at line 34 of file book3s_emulate.c.

#define OP_LFD   50

Definition at line 50 of file book3s_emulate.c.

#define OP_LFS   48

Definition at line 49 of file book3s_emulate.c.

#define OP_STFD   54

Definition at line 52 of file book3s_emulate.c.

#define OP_STFS   52

Definition at line 51 of file book3s_emulate.c.

#define SPRN_GQR0   912

Definition at line 54 of file book3s_emulate.c.

#define SPRN_GQR1   913

Definition at line 55 of file book3s_emulate.c.

#define SPRN_GQR2   914

Definition at line 56 of file book3s_emulate.c.

#define SPRN_GQR3   915

Definition at line 57 of file book3s_emulate.c.

#define SPRN_GQR4   916

Definition at line 58 of file book3s_emulate.c.

#define SPRN_GQR5   917

Definition at line 59 of file book3s_emulate.c.

#define SPRN_GQR6   918

Definition at line 60 of file book3s_emulate.c.

#define SPRN_GQR7   919

Definition at line 61 of file book3s_emulate.c.

Enumeration Type Documentation

enum priv_level
Enumerator:
PRIV_PROBLEM 
PRIV_SUPER 
PRIV_HYPER 

Definition at line 67 of file book3s_emulate.c.

Function Documentation

ulong kvmppc_alignment_dar ( struct kvm_vcpu vcpu,
unsigned int  inst 
)

Definition at line 568 of file book3s_emulate.c.

u32 kvmppc_alignment_dsisr ( struct kvm_vcpu vcpu,
unsigned int  inst 
)

Definition at line 526 of file book3s_emulate.c.

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

Definition at line 435 of file book3s_emulate.c.

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

Definition at line 321 of file book3s_emulate.c.

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

Definition at line 86 of file book3s_emulate.c.

void kvmppc_set_bat ( struct kvm_vcpu vcpu,
struct kvmppc_bat bat,
bool  upper,
u32  val 
)

Definition at line 276 of file book3s_emulate.c.