Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
book3s_hv_rm_mmu.c File Reference
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kvm.h>
#include <linux/kvm_host.h>
#include <linux/hugetlb.h>
#include <linux/module.h>
#include <asm/tlbflush.h>
#include <asm/kvm_ppc.h>
#include <asm/kvm_book3s.h>
#include <asm/mmu-hash64.h>
#include <asm/hvcall.h>
#include <asm/synch.h>
#include <asm/ppc-opcode.h>

Go to the source code of this file.

Macros

#define LOCK_TOKEN   (*(u32 *)(&get_paca()->lock_token))
 

Functions

void kvmppc_add_revmap_chain (struct kvm *kvm, struct revmap_entry *rev, unsigned long *rmap, long pte_index, int realmode)
 
 EXPORT_SYMBOL_GPL (kvmppc_add_revmap_chain)
 
long kvmppc_h_enter (struct kvm_vcpu *vcpu, unsigned long flags, long pte_index, unsigned long pteh, unsigned long ptel)
 
 EXPORT_SYMBOL_GPL (kvmppc_h_enter)
 
long kvmppc_h_remove (struct kvm_vcpu *vcpu, unsigned long flags, unsigned long pte_index, unsigned long avpn, unsigned long va)
 
long kvmppc_h_bulk_remove (struct kvm_vcpu *vcpu)
 
long kvmppc_h_protect (struct kvm_vcpu *vcpu, unsigned long flags, unsigned long pte_index, unsigned long avpn, unsigned long va)
 
long kvmppc_h_read (struct kvm_vcpu *vcpu, unsigned long flags, unsigned long pte_index)
 
void kvmppc_invalidate_hpte (struct kvm *kvm, unsigned long *hptep, unsigned long pte_index)
 
 EXPORT_SYMBOL_GPL (kvmppc_invalidate_hpte)
 
void kvmppc_clear_ref_hpte (struct kvm *kvm, unsigned long *hptep, unsigned long pte_index)
 
 EXPORT_SYMBOL_GPL (kvmppc_clear_ref_hpte)
 
long kvmppc_hv_find_lock_hpte (struct kvm *kvm, gva_t eaddr, unsigned long slb_v, unsigned long valid)
 
 EXPORT_SYMBOL (kvmppc_hv_find_lock_hpte)
 
long kvmppc_hpte_hv_fault (struct kvm_vcpu *vcpu, unsigned long addr, unsigned long slb_v, unsigned int status, bool data)
 

Macro Definition Documentation

#define LOCK_TOKEN   (*(u32 *)(&get_paca()->lock_token))

Definition at line 326 of file book3s_hv_rm_mmu.c.

Function Documentation

EXPORT_SYMBOL ( kvmppc_hv_find_lock_hpte  )
EXPORT_SYMBOL_GPL ( kvmppc_add_revmap_chain  )
EXPORT_SYMBOL_GPL ( kvmppc_h_enter  )
EXPORT_SYMBOL_GPL ( kvmppc_invalidate_hpte  )
EXPORT_SYMBOL_GPL ( kvmppc_clear_ref_hpte  )
void kvmppc_add_revmap_chain ( struct kvm kvm,
struct revmap_entry rev,
unsigned long rmap,
long  pte_index,
int  realmode 
)

Definition at line 42 of file book3s_hv_rm_mmu.c.

void kvmppc_clear_ref_hpte ( struct kvm kvm,
unsigned long hptep,
unsigned long  pte_index 
)

Definition at line 627 of file book3s_hv_rm_mmu.c.

long kvmppc_h_bulk_remove ( struct kvm_vcpu vcpu)

Definition at line 396 of file book3s_hv_rm_mmu.c.

long kvmppc_h_enter ( struct kvm_vcpu vcpu,
unsigned long  flags,
long  pte_index,
unsigned long  pteh,
unsigned long  ptel 
)

Definition at line 133 of file book3s_hv_rm_mmu.c.

long kvmppc_h_protect ( struct kvm_vcpu vcpu,
unsigned long  flags,
unsigned long  pte_index,
unsigned long  avpn,
unsigned long  va 
)

Definition at line 516 of file book3s_hv_rm_mmu.c.

long kvmppc_h_read ( struct kvm_vcpu vcpu,
unsigned long  flags,
unsigned long  pte_index 
)

Definition at line 579 of file book3s_hv_rm_mmu.c.

long kvmppc_h_remove ( struct kvm_vcpu vcpu,
unsigned long  flags,
unsigned long  pte_index,
unsigned long  avpn,
unsigned long  va 
)

Definition at line 346 of file book3s_hv_rm_mmu.c.

long kvmppc_hpte_hv_fault ( struct kvm_vcpu vcpu,
unsigned long  addr,
unsigned long  slb_v,
unsigned int  status,
bool  data 
)

Definition at line 744 of file book3s_hv_rm_mmu.c.

long kvmppc_hv_find_lock_hpte ( struct kvm kvm,
gva_t  eaddr,
unsigned long  slb_v,
unsigned long  valid 
)

Definition at line 653 of file book3s_hv_rm_mmu.c.

void kvmppc_invalidate_hpte ( struct kvm kvm,
unsigned long hptep,
unsigned long  pte_index 
)

Definition at line 610 of file book3s_hv_rm_mmu.c.